poly_belongs_to 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/poly_belongs_to/core.rb +1 -1
- data/lib/poly_belongs_to/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +766 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a15819e53f8f962178a7dd8157bd12b81a5fcfb2
|
4
|
+
data.tar.gz: 938d92a2b99ef933513433446e36df470a8511ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f14d4ac30c9bfb4644c155ab3d7d8a4665be9861733e4e2802a0215843d9d23e9bcb064db6a15be9a153a5872c6625d89efee6410197ea774a89cf0d3d0ed389
|
7
|
+
data.tar.gz: 9611c73889a26589ec4080953c1e2698143d472d75b6dcfc486de33d2838312c326027682f941d1ef9b5a649ea30e4b9c002bb8c8f3efba95f8cb5edcf2180b1
|
data/lib/poly_belongs_to/core.rb
CHANGED
@@ -52,7 +52,7 @@ module PolyBelongsTo
|
|
52
52
|
if self.poly?
|
53
53
|
# self.where(["#{self.pbt_id_sym} NOT IN (?) AND #{self.pbt_type_sym} = (?)", type.constantize.pluck(:id), type])
|
54
54
|
accumalitive = nil
|
55
|
-
self.pluck(self.pbt_type_sym).uniq.each do |type|
|
55
|
+
self.pluck(self.pbt_type_sym).uniq.delete_if {|i| !i.constantize.respond_to?(:pluck)}.each do |type|
|
56
56
|
arel_part = self.arel_table[self.pbt_id_sym].not_in(type.constantize.pluck(:id)).and(self.arel_table[self.pbt_type_sym].eq(type))
|
57
57
|
accumalitive = accumalitive.present? ? accumalitive.or(arel_part) : arel_part
|
58
58
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -328715,3 +328715,769 @@ PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil
|
|
328715
328715
|
[1m[35mSQL (0.2ms)[0m DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]
|
328716
328716
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
328717
328717
|
[1m[35m (0.1ms)[0m rollback transaction
|
328718
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
328719
|
+
[1m[35m (0.1ms)[0m begin transaction
|
328720
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2015-05-02 01:17:37.423172"], ["updated_at", "2015-05-02 01:17:37.423172"]]
|
328721
|
+
[1m[35m (12.4ms)[0m commit transaction
|
328722
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
328723
|
+
[1m[35mSQL (0.2ms)[0m 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"]]
|
328724
|
+
[1m[36m (12.3ms)[0m [1mcommit transaction[0m
|
328725
|
+
[1m[35m (0.1ms)[0m begin transaction
|
328726
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["beta_id", 149], ["created_at", "2015-05-02 01:17:37.486147"], ["updated_at", "2015-05-02 01:17:37.486147"]]
|
328727
|
+
[1m[35m (16.9ms)[0m commit transaction
|
328728
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
328729
|
+
[1m[35mSQL (0.4ms)[0m 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"]]
|
328730
|
+
[1m[36m (19.9ms)[0m [1mcommit transaction[0m
|
328731
|
+
[1m[35m (0.1ms)[0m begin transaction
|
328732
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ?[0m [["delta_id", 149], ["updated_at", "2015-05-02 01:17:37.539480"], ["id", 149]]
|
328733
|
+
[1m[35m (17.3ms)[0m commit transaction
|
328734
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
328735
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "squishies"
|
328736
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328737
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328738
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328739
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328740
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328741
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328742
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "addresses"[0m
|
328743
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328744
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328745
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328746
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "photos"[0m
|
328747
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328748
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328749
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328750
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "profiles"[0m
|
328751
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328752
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328753
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328754
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "tires"[0m
|
328755
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328756
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328757
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328758
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328759
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "geo_locations"
|
328760
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328761
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328762
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328763
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "phones"
|
328764
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328765
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328766
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328767
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
328768
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:17:37', '2015-05-02 01:17:37', 902541635)[0m
|
328769
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:17:37', '2015-05-02 01:17:37', 380377255)
|
328770
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:17:37', '2015-05-02 01:17:37', 619379998)[0m
|
328771
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "cars"
|
328772
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328773
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "tags"
|
328774
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328775
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328776
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328777
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "ssns"
|
328778
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328779
|
+
[1m[35mFixture Insert (0.1ms)[0m 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)
|
328780
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
328781
|
+
[1m[35m (18.7ms)[0m commit transaction
|
328782
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
328783
|
+
-------------------------------------------------------------------------------------------------------
|
328784
|
+
PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle
|
328785
|
+
-------------------------------------------------------------------------------------------------------
|
328786
|
+
[1m[35mDelta Load (0.3ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]]
|
328787
|
+
[1m[36mAlpha Load (0.3ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 149]]
|
328788
|
+
[1m[35mBeta Load (0.1ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]]
|
328789
|
+
[1m[36mCapa Load (0.1ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 149]]
|
328790
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
328791
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
328792
|
+
----------------------------------------------------------------------------------------------------------------------------------------
|
328793
|
+
PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference
|
328794
|
+
----------------------------------------------------------------------------------------------------------------------------------------
|
328795
|
+
[1m[35mCapa Load (0.2ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 149]]
|
328796
|
+
[1m[36mDelta Load (0.2ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ?[0m [["capa_id", 149]]
|
328797
|
+
[1m[35mAlpha Load (0.1ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 149]]
|
328798
|
+
[1m[36mBeta Load (0.1ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ?[0m [["alpha_id", 149]]
|
328799
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
328800
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
328801
|
+
----------------------------------------------------------------
|
328802
|
+
PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child
|
328803
|
+
----------------------------------------------------------------
|
328804
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
328805
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
328806
|
+
[1m[35m (0.1ms)[0m begin transaction
|
328807
|
+
---------------------------------------------------------------------
|
328808
|
+
PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items
|
328809
|
+
---------------------------------------------------------------------
|
328810
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
328811
|
+
[1m[35mAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["addressable_id", 261299535], ["addressable_type", "Profile"]]
|
328812
|
+
[1m[36mGeoLocation Load (0.1ms)[0m [1mSELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1[0m [["address_id", 761411935]]
|
328813
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
328814
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
328815
|
+
--------------------------------------------------------------------------
|
328816
|
+
PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes
|
328817
|
+
--------------------------------------------------------------------------
|
328818
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
328819
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
328820
|
+
[1m[35m (0.0ms)[0m begin transaction
|
328821
|
+
---------------------------------------------------------------------------
|
328822
|
+
PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations
|
328823
|
+
---------------------------------------------------------------------------
|
328824
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 966629572]]
|
328825
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
328826
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
328827
|
+
-------------------------------------------------------------------------------------------------------------
|
328828
|
+
PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances
|
328829
|
+
-------------------------------------------------------------------------------------------------------------
|
328830
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
328831
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
328832
|
+
------------------------------------------------------------
|
328833
|
+
PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command
|
328834
|
+
------------------------------------------------------------
|
328835
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
328836
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
328837
|
+
[1m[35m (0.0ms)[0m begin transaction
|
328838
|
+
---------------------------------------------------------------------------------
|
328839
|
+
PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes
|
328840
|
+
---------------------------------------------------------------------------------
|
328841
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
328842
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]
|
328843
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
328844
|
+
[1m[35m (0.1ms)[0m begin transaction
|
328845
|
+
-------------------------------------------------------------
|
328846
|
+
PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness
|
328847
|
+
-------------------------------------------------------------
|
328848
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
328849
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
328850
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
328851
|
+
---------------------------------------------------------------------------------
|
328852
|
+
PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships
|
328853
|
+
---------------------------------------------------------------------------------
|
328854
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
328855
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
328856
|
+
[1m[35m (0.1ms)[0m begin transaction
|
328857
|
+
---------------------------------------------------------------
|
328858
|
+
PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness
|
328859
|
+
---------------------------------------------------------------
|
328860
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 478996145]]
|
328861
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
328862
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
328863
|
+
--------------------------------------------------------------------------------
|
328864
|
+
PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy
|
328865
|
+
--------------------------------------------------------------------------------
|
328866
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
328867
|
+
[1m[36mAddress Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1[0m [["addressable_id", 261299535], ["addressable_type", "Profile"]]
|
328868
|
+
[1m[35mGeoLocation Load (0.1ms)[0m SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]
|
328869
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
328870
|
+
[1m[35m (0.0ms)[0m begin transaction
|
328871
|
+
---------------------------------------------------------------------------------------------------------
|
328872
|
+
PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy
|
328873
|
+
---------------------------------------------------------------------------------------------------------
|
328874
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
328875
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
328876
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
328877
|
+
---------------------------------------------------------------------------
|
328878
|
+
PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name
|
328879
|
+
---------------------------------------------------------------------------
|
328880
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]
|
328881
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
328882
|
+
[1m[35m (0.1ms)[0m begin transaction
|
328883
|
+
--------------------------------------------------------------------------------------
|
328884
|
+
PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class
|
328885
|
+
--------------------------------------------------------------------------------------
|
328886
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
328887
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328888
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328889
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
328890
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
328891
|
+
------------------------------------------------------------------------
|
328892
|
+
PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly
|
328893
|
+
------------------------------------------------------------------------
|
328894
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
328895
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328896
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328897
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
328898
|
+
[1m[35m (0.0ms)[0m begin transaction
|
328899
|
+
------------------------------------------------------------
|
328900
|
+
PolyBelongsTo::FakedCollection: test_0009_#first is the item
|
328901
|
+
------------------------------------------------------------
|
328902
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
328903
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328904
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328905
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
328906
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
328907
|
+
------------------------------------------------------------------------------------
|
328908
|
+
PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object
|
328909
|
+
------------------------------------------------------------------------------------
|
328910
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
328911
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328912
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328913
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
328914
|
+
[1m[35m (0.0ms)[0m begin transaction
|
328915
|
+
--------------------------------------------------------------------------------
|
328916
|
+
PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object
|
328917
|
+
--------------------------------------------------------------------------------
|
328918
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
328919
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328920
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328921
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
328922
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
328923
|
+
---------------------------------------------------------------------
|
328924
|
+
PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately
|
328925
|
+
---------------------------------------------------------------------
|
328926
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
328927
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328928
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328929
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
328930
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]
|
328931
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
328932
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
328933
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
328934
|
+
----------------------------------------------------------
|
328935
|
+
PolyBelongsTo::FakedCollection: test_0004_#all is an Array
|
328936
|
+
----------------------------------------------------------
|
328937
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
328938
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328939
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328940
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
328941
|
+
[1m[35m (0.0ms)[0m begin transaction
|
328942
|
+
--------------------------------------------------------------
|
328943
|
+
PolyBelongsTo::FakedCollection: test_0008_works with #presence
|
328944
|
+
--------------------------------------------------------------
|
328945
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
328946
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328947
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328948
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
328949
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
328950
|
+
------------------------------------------------------------------------------------
|
328951
|
+
PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor
|
328952
|
+
------------------------------------------------------------------------------------
|
328953
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
328954
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328955
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328956
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
328957
|
+
[1m[35m (0.0ms)[0m begin transaction
|
328958
|
+
--------------------------------------------------------------------------
|
328959
|
+
PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method
|
328960
|
+
--------------------------------------------------------------------------
|
328961
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
328962
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328963
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328964
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
328965
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
328966
|
+
----------------------------------------------------------------------
|
328967
|
+
PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid?
|
328968
|
+
----------------------------------------------------------------------
|
328969
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
328970
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328971
|
+
[1m[35mPhoto Load (0.1ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328972
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
328973
|
+
[1m[35m (0.0ms)[0m begin transaction
|
328974
|
+
------------------------------------------------------------------------------------------------
|
328975
|
+
PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection
|
328976
|
+
------------------------------------------------------------------------------------------------
|
328977
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
328978
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
328979
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
328980
|
+
-----------------------------------------------------------
|
328981
|
+
PolyBelongsTo::FakedCollection: test_0010_#last is the item
|
328982
|
+
-----------------------------------------------------------
|
328983
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
328984
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328985
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328986
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
328987
|
+
[1m[35m (0.0ms)[0m begin transaction
|
328988
|
+
---------------------------------------------------------------------------
|
328989
|
+
PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0
|
328990
|
+
---------------------------------------------------------------------------
|
328991
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
328992
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
328993
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
328994
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
328995
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
328996
|
+
-------------------------------------------------------------------------
|
328997
|
+
PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many
|
328998
|
+
-------------------------------------------------------------------------
|
328999
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
329000
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329001
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329002
|
+
-------------------------------------------------------------------------
|
329003
|
+
PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil
|
329004
|
+
-------------------------------------------------------------------------
|
329005
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
329006
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
329007
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
329008
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
329009
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "photos" WHERE "photos"."id" = ?[0m [["id", 971855462]]
|
329010
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
329011
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
329012
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329013
|
+
-----------------------------------------------------------------------
|
329014
|
+
PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last
|
329015
|
+
-----------------------------------------------------------------------
|
329016
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
329017
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
329018
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
329019
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
329020
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329021
|
+
-----------------------------------------------------------------------------
|
329022
|
+
PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object
|
329023
|
+
-----------------------------------------------------------------------------
|
329024
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
329025
|
+
[1m[36mProfile Load (0.1ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
329026
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
329027
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329028
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329029
|
+
-------------------------------------------------------------------
|
329030
|
+
PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately
|
329031
|
+
-------------------------------------------------------------------
|
329032
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
329033
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
329034
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
329035
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
329036
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329037
|
+
--------------------------------------------------------------------------------------
|
329038
|
+
PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls
|
329039
|
+
--------------------------------------------------------------------------------------
|
329040
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
329041
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
329042
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
329043
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329044
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329045
|
+
-------------------------------------------------------------------
|
329046
|
+
PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id
|
329047
|
+
-------------------------------------------------------------------
|
329048
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1[0m [["id", 971855462]]
|
329049
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
329050
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
329051
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
329052
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
329053
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329054
|
+
--------------------------------------------------------------------------
|
329055
|
+
PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass
|
329056
|
+
--------------------------------------------------------------------------
|
329057
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329058
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329059
|
+
-----------------------------------------------------------
|
329060
|
+
PolyBelongsTo::FakedCollection: test_0005_checks if #empty?
|
329061
|
+
-----------------------------------------------------------
|
329062
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
329063
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 380377255], ["profileable_type", "User"]]
|
329064
|
+
[1m[36mPhoto Load (0.0ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
329065
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329066
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
329067
|
+
--------------------------------------------------------------------------
|
329068
|
+
PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present?
|
329069
|
+
--------------------------------------------------------------------------
|
329070
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]
|
329071
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1[0m [["profileable_id", 380377255], ["profileable_type", "User"]]
|
329072
|
+
[1m[35mPhoto Load (0.0ms)[0m SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]
|
329073
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329074
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329075
|
+
------------------------------------------------------------
|
329076
|
+
PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build
|
329077
|
+
------------------------------------------------------------
|
329078
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
329079
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329080
|
+
------------------------------------------------------------------------------
|
329081
|
+
PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes
|
329082
|
+
------------------------------------------------------------------------------
|
329083
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
329084
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]
|
329085
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
329086
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329087
|
+
--------------------------------------------------------------------------------------
|
329088
|
+
PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes
|
329089
|
+
--------------------------------------------------------------------------------------
|
329090
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 380377255]]
|
329091
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
329092
|
+
[1m[36mPhoto Load (0.1ms)[0m [1mSELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1[0m [["photoable_id", 261299535], ["photoable_type", "Profile"]]
|
329093
|
+
[1m[35mPhone Load (0.2ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]]
|
329094
|
+
[1m[36mSquishy Load (0.1ms)[0m [1mSELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1[0m [["squishable_id", 1053526200], ["squishable_type", "Phone"]]
|
329095
|
+
[1m[35mAddress Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]
|
329096
|
+
[1m[36mGeoLocation Load (0.1ms)[0m [1mSELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1[0m [["address_id", 761411935]]
|
329097
|
+
[1m[35mSquishy Load (0.1ms)[0m SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]]
|
329098
|
+
[1m[36mSquishy Load (0.1ms)[0m [1mSELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ?[0m [["squishable_id", 761411935], ["squishable_type", "Address"]]
|
329099
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
329100
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329101
|
+
-------------------------------------------------------
|
329102
|
+
PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build
|
329103
|
+
-------------------------------------------------------
|
329104
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
329105
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
329106
|
+
------------------------------------------------------------------------
|
329107
|
+
PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable
|
329108
|
+
------------------------------------------------------------------------
|
329109
|
+
[1m[35mPhone Load (0.2ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
329110
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329111
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329112
|
+
------------------------------------------------------------------------------------
|
329113
|
+
PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id
|
329114
|
+
------------------------------------------------------------------------------------
|
329115
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
329116
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329117
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329118
|
+
--------------------------------------------------------------------------------------------------
|
329119
|
+
PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type
|
329120
|
+
--------------------------------------------------------------------------------------------------
|
329121
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
329122
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329123
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329124
|
+
----------------------------------------------------------------------
|
329125
|
+
PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user
|
329126
|
+
----------------------------------------------------------------------
|
329127
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
329128
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
329129
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:17:37.853704"], ["updated_at", "2015-05-02 01:17:37.853704"]]
|
329130
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
329131
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
329132
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
329133
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329134
|
+
--------------------------------------------------------------------------------------------
|
329135
|
+
PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id
|
329136
|
+
--------------------------------------------------------------------------------------------
|
329137
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
329138
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329139
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329140
|
+
-------------------------------------------------------------------------------------------------------------------------
|
329141
|
+
PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first
|
329142
|
+
-------------------------------------------------------------------------------------------------------------------------
|
329143
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
329144
|
+
[1m[35mSQL (0.2ms)[0m 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"]]
|
329145
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
329146
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
329147
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["alpha_id", 150], ["created_at", "2015-05-02 01:17:37.859360"], ["updated_at", "2015-05-02 01:17:37.859360"]]
|
329148
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
329149
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
329150
|
+
[1m[35mSQL (0.1ms)[0m 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"]]
|
329151
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
329152
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
329153
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["capa_id", 150], ["created_at", "2015-05-02 01:17:37.863256"], ["updated_at", "2015-05-02 01:17:37.863256"]]
|
329154
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
329155
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329156
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
|
329157
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329158
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
|
329159
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 150]]
|
329160
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
|
329161
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 150]]
|
329162
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
|
329163
|
+
[1m[36mAlpha Load (0.1ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329164
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
|
329165
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
329166
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329167
|
+
----------------------------------------------------------------------------------------------
|
329168
|
+
PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship
|
329169
|
+
----------------------------------------------------------------------------------------------
|
329170
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
329171
|
+
[1m[35mSQL (0.2ms)[0m 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"]]
|
329172
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
329173
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
329174
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329175
|
+
-----------------------------------------------------------------
|
329176
|
+
PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user
|
329177
|
+
-----------------------------------------------------------------
|
329178
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
329179
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329180
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329181
|
+
---------------------------------------------------------------------
|
329182
|
+
PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents
|
329183
|
+
---------------------------------------------------------------------
|
329184
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ?[0m [["user_id", 1]]
|
329185
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
329186
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["id", 1], ["created_at", "2015-05-02 01:17:37.879736"], ["updated_at", "2015-05-02 01:17:37.879736"]]
|
329187
|
+
[1m[35mSQL (0.1ms)[0m 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"]]
|
329188
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 01:17:37.881870"], ["updated_at", "2015-05-02 01:17:37.881870"]]
|
329189
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
329190
|
+
[1m[36mTire Load (0.1ms)[0m [1mSELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1[0m [["car_id", 421646739]]
|
329191
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
329192
|
+
[1m[36mCar Load (0.1ms)[0m [1mSELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1[0m [["id", 421646739]]
|
329193
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
329194
|
+
[1m[36mSsn Load (0.1ms)[0m [1mSELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1[0m [["user_id", 1]]
|
329195
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]]
|
329196
|
+
[1m[36mContact Load (0.1ms)[0m [1mSELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ?[0m [["user_id", 1]]
|
329197
|
+
[1m[35mProfile Load (0.1ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]]
|
329198
|
+
[1m[36mTire Load (0.1ms)[0m [1mSELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ?[0m [["car_id", 421646739]]
|
329199
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]]
|
329200
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "cars" WHERE "cars"."id" = ?[0m [["id", 421646739]]
|
329201
|
+
[1m[35mTire Load (0.1ms)[0m SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]]
|
329202
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
329203
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
329204
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
329205
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329206
|
+
-------------------------------------------------------------------
|
329207
|
+
PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil
|
329208
|
+
-------------------------------------------------------------------
|
329209
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
329210
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329211
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329212
|
+
---------------------------------------------------------------------
|
329213
|
+
PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id
|
329214
|
+
---------------------------------------------------------------------
|
329215
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
329216
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329217
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329218
|
+
------------------------------------------------------------------------------------
|
329219
|
+
PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil
|
329220
|
+
------------------------------------------------------------------------------------
|
329221
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
329222
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329223
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329224
|
+
--------------------------------------------------------------------
|
329225
|
+
PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil
|
329226
|
+
--------------------------------------------------------------------
|
329227
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
329228
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329229
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329230
|
+
---------------------------------------------------------------------------------
|
329231
|
+
PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil
|
329232
|
+
---------------------------------------------------------------------------------
|
329233
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
329234
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329235
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329236
|
+
------------------------------------------------------------------
|
329237
|
+
PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil
|
329238
|
+
------------------------------------------------------------------
|
329239
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
329240
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329241
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329242
|
+
---------------------------------------------------------------------------------------------
|
329243
|
+
PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object
|
329244
|
+
---------------------------------------------------------------------------------------------
|
329245
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
329246
|
+
[1m[35mSQL (0.2ms)[0m 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"]]
|
329247
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
329248
|
+
[1m[35m (0.1ms)[0m SELECT "squishies"."squishable_type" FROM "squishies"
|
329249
|
+
[1m[36m (0.1ms)[0m [1mSELECT "phones"."id" FROM "phones"[0m
|
329250
|
+
[1m[35m (0.1ms)[0m SELECT "geo_locations"."id" FROM "geo_locations"
|
329251
|
+
[1m[36m (0.1ms)[0m [1mSELECT "addresses"."id" FROM "addresses"[0m
|
329252
|
+
[1m[35mSquishy Load (0.2ms)[0m 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')
|
329253
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
329254
|
+
[1m[35mSQL (0.1ms)[0m 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"]]
|
329255
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
329256
|
+
[1m[35m (0.1ms)[0m SELECT "squishies"."squishable_type" FROM "squishies"
|
329257
|
+
[1m[36m (0.1ms)[0m [1mSELECT "addresses"."id" FROM "addresses"[0m
|
329258
|
+
[1m[35m (0.1ms)[0m SELECT "phones"."id" FROM "phones"
|
329259
|
+
[1m[36m (0.1ms)[0m [1mSELECT "geo_locations"."id" FROM "geo_locations"[0m
|
329260
|
+
[1m[35mSquishy Load (0.2ms)[0m 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')
|
329261
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
329262
|
+
[1m[35mSQL (0.1ms)[0m 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"]]
|
329263
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
329264
|
+
[1m[35m (0.4ms)[0m SELECT "alphas"."id" FROM "alphas"
|
329265
|
+
[1m[36mBeta Load (0.4ms)[0m [1mSELECT "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))[0m
|
329266
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
329267
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329268
|
+
-------------------------------------------------------------
|
329269
|
+
PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic
|
329270
|
+
-------------------------------------------------------------
|
329271
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
329272
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329273
|
+
[1m[35m (0.1ms)[0m begin transaction
|
329274
|
+
-----------------------------------------------------------------------
|
329275
|
+
PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile
|
329276
|
+
-----------------------------------------------------------------------
|
329277
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
329278
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
329279
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:17:37.916149"], ["updated_at", "2015-05-02 01:17:37.916149"]]
|
329280
|
+
[1m[35mSQL (0.1ms)[0m 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"]]
|
329281
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
329282
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]
|
329283
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
329284
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329285
|
+
---------------------------------------------------------------------------
|
329286
|
+
PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance
|
329287
|
+
---------------------------------------------------------------------------
|
329288
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
329289
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
329290
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329291
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329292
|
+
-----------------------------------------------------------------------
|
329293
|
+
PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag
|
329294
|
+
-----------------------------------------------------------------------
|
329295
|
+
[1m[36mTag Load (0.1ms)[0m [1mSELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1[0m [["id", 884173432]]
|
329296
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329297
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329298
|
+
------------------------------------------------------------
|
329299
|
+
PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic
|
329300
|
+
------------------------------------------------------------
|
329301
|
+
[1m[35mTag Load (0.1ms)[0m SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]
|
329302
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329303
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329304
|
+
-------------------------------------------------------------------------------
|
329305
|
+
PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id
|
329306
|
+
-------------------------------------------------------------------------------
|
329307
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
329308
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329309
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329310
|
+
----------------------------------------------------------------------
|
329311
|
+
PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic
|
329312
|
+
----------------------------------------------------------------------
|
329313
|
+
[1m[35mAddress Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]]
|
329314
|
+
[1m[36mProfile Load (0.0ms)[0m [1mSELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1[0m [["id", 261299535]]
|
329315
|
+
[1m[35mProfile Load (0.0ms)[0m SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]
|
329316
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329317
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329318
|
+
----------------------------------------------------------
|
329319
|
+
PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic
|
329320
|
+
----------------------------------------------------------
|
329321
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
329322
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329323
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329324
|
+
---------------------------------------------------------------------------
|
329325
|
+
PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile'
|
329326
|
+
---------------------------------------------------------------------------
|
329327
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
329328
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329329
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329330
|
+
-----------------------------------------------------
|
329331
|
+
PolyBelongsTo::Core: test_0008_#pbts multiple parents
|
329332
|
+
-----------------------------------------------------
|
329333
|
+
[1m[36mTire Load (0.1ms)[0m [1mSELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1[0m [["id", 438300604]]
|
329334
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329335
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329336
|
+
---------------------------------------------------------------------------------------
|
329337
|
+
PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes
|
329338
|
+
---------------------------------------------------------------------------------------
|
329339
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]
|
329340
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329341
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329342
|
+
--------------------------------------------------------------------------------------
|
329343
|
+
PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone
|
329344
|
+
--------------------------------------------------------------------------------------
|
329345
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 1053526200]]
|
329346
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329347
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329348
|
+
-------------------------------------------------------------------------------------
|
329349
|
+
PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil
|
329350
|
+
-------------------------------------------------------------------------------------
|
329351
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
329352
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329353
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329354
|
+
-----------------------------------------------------------------------------------
|
329355
|
+
PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records
|
329356
|
+
-----------------------------------------------------------------------------------
|
329357
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
329358
|
+
[1m[35mSQL (0.2ms)[0m 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"]]
|
329359
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
329360
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
329361
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329362
|
+
------------------------------------------
|
329363
|
+
PolyBelongsTo::Core: test_0001_is a module
|
329364
|
+
------------------------------------------
|
329365
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329366
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329367
|
+
----------------------------------------------------------------
|
329368
|
+
PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil
|
329369
|
+
----------------------------------------------------------------
|
329370
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
329371
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329372
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329373
|
+
------------------------------------------------------------------------------------------
|
329374
|
+
PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat
|
329375
|
+
------------------------------------------------------------------------------------------
|
329376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
329377
|
+
[1m[35mSQL (0.2ms)[0m 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"]]
|
329378
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
329379
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
329380
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["alpha_id", 150], ["created_at", "2015-05-02 01:17:37.938582"], ["updated_at", "2015-05-02 01:17:37.938582"]]
|
329381
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
329382
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
329383
|
+
[1m[35mSQL (0.1ms)[0m 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"]]
|
329384
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
329385
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
329386
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["capa_id", 150], ["created_at", "2015-05-02 01:17:37.942553"], ["updated_at", "2015-05-02 01:17:37.942553"]]
|
329387
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
329388
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
329389
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 150], ["updated_at", "2015-05-02 01:17:37.943825"], ["id", 150]]
|
329390
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
329391
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
|
329392
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329393
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
|
329394
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329395
|
+
[1m[35mBeta Load (0.1ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
|
329396
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 150]]
|
329397
|
+
[1m[35mBeta Load (0.1ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
|
329398
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329399
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
|
329400
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329401
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
|
329402
|
+
[1m[36mDelta Load (0.1ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 150]]
|
329403
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
|
329404
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 150]]
|
329405
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
|
329406
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329407
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
|
329408
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329409
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
|
329410
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 150]]
|
329411
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
|
329412
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329413
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
|
329414
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329415
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
|
329416
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329417
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
|
329418
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 150]]
|
329419
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
|
329420
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329421
|
+
[1m[35mCapa Load (0.0ms)[0m SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]
|
329422
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329423
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
|
329424
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 150]]
|
329425
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
|
329426
|
+
[1m[36mBeta Load (0.0ms)[0m [1mSELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1[0m [["id", 150]]
|
329427
|
+
[1m[35mBeta Load (0.0ms)[0m SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]]
|
329428
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329429
|
+
[1m[35mAlpha Load (0.0ms)[0m SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]
|
329430
|
+
[1m[36mAlpha Load (0.0ms)[0m [1mSELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329431
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
|
329432
|
+
[1m[36mDelta Load (0.0ms)[0m [1mSELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1[0m [["id", 150]]
|
329433
|
+
[1m[35mDelta Load (0.0ms)[0m SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]]
|
329434
|
+
[1m[36mCapa Load (0.0ms)[0m [1mSELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1[0m [["id", 150]]
|
329435
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
329436
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
329437
|
+
-------------------------------------------------------------------------
|
329438
|
+
PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user
|
329439
|
+
-------------------------------------------------------------------------
|
329440
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
329441
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329442
|
+
[1m[35m (0.1ms)[0m begin transaction
|
329443
|
+
----------------------------------------------------------------
|
329444
|
+
PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil
|
329445
|
+
----------------------------------------------------------------
|
329446
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
329447
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
329448
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329449
|
+
------------------------------------------------------------------------
|
329450
|
+
PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name
|
329451
|
+
------------------------------------------------------------------------
|
329452
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
329453
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
329454
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329455
|
+
-------------------------------------------------------------------
|
329456
|
+
PolyBelongsTo::SingletonSet: test_0004_can tell you what's included
|
329457
|
+
-------------------------------------------------------------------
|
329458
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
329459
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329460
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
329461
|
+
------------------------------------------------------
|
329462
|
+
PolyBelongsTo::SingletonSet: test_0002_adds with :add?
|
329463
|
+
------------------------------------------------------
|
329464
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
329465
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
329466
|
+
[1m[35m (0.0ms)[0m begin transaction
|
329467
|
+
-----------------------------------------------------------------------------------------------------------
|
329468
|
+
PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name
|
329469
|
+
-----------------------------------------------------------------------------------------------------------
|
329470
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
329471
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
329472
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
329473
|
+
--------------------------------------------------------
|
329474
|
+
PolyBelongsTo::SingletonSet: test_0005_flags a duplicate
|
329475
|
+
--------------------------------------------------------
|
329476
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]
|
329477
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329478
|
+
[1m[35m (0.1ms)[0m begin transaction
|
329479
|
+
---------------------------------------------------------------------
|
329480
|
+
PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items
|
329481
|
+
---------------------------------------------------------------------
|
329482
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 902541635]]
|
329483
|
+
[1m[35m (0.0ms)[0m rollback transaction
|