manage_cache 0.0.1 → 0.0.2
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/manage_cache/version.rb +1 -1
- data/lib/manage_cache.rb +3 -3
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +614 -0
- data/test/dummy/log/test.log +2247 -0
- data/test/dummy/test/controllers/users_controller_test.rb +11 -5
- data/test/dummy/tmp/cache/2CC/2D0/views%2F +2 -0
- data/test/dummy/tmp/cache/527/491/views%2Fspec-row_name%2Fuser-1%2Fupdated_at-2016-01-14+10%3A20%3A57+UTC +2 -0
- data/test/dummy/tmp/cache/528/731/views%2Fspec-row_name%2Fuser-2%2Fupdated_at-2016-01-14+10%3A20%3A57+UTC +2 -0
- data/test/dummy/tmp/cache/529/781/views%2Fspec-row_name%2Fuser-2%2Fupdated_at-2016-01-14+10%3A20%3A58+UTC +2 -0
- data/test/dummy/tmp/cache/52D/8B1/views%2Fspec-row_name%2Fuser-1%2Fupdated_at-2016-01-14+10%3A19%3A28+UTC +2 -0
- data/test/dummy/tmp/cache/96B/891/views%2Fspec-users_shoes%2Fuser-1%2Flast_updated_shoe-2016-01-14+10%3A15%3A40+UTC +2 -0
- data/test/dummy/tmp/cache/96F/8B1/views%2Fspec-users_shoes%2Fuser-1%2Flast_updated_shoe-2016-01-14+10%3A20%3A57+UTC +2 -0
- data/test/dummy/tmp/cache/970/901/views%2Fspec-users_shoes%2Fuser-1%2Flast_updated_shoe-2016-01-14+10%3A20%3A58+UTC +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/09_lxM-eb2oUZWnlGLaq4F_i5h92ZObg36ae6gKq1i4.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/2sW6NMnj6fqDuDeMj9N8u0O_kfcyACbGT_bxWVLBSZ0.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/8Lqz2M_JZndvJcmnZET75uPOyo75Jv4B3i0ZQImFJlM.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/9MxgZ11k1FnO5lx1r1HHNz5GnkAF3P5DOpS8p2oMyZQ.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/9d-nHTd-aCK04uRrii3hSfpYzj5iP2Ob1d-_qWKjCek.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/CRKJnPJGBJ_Dy0-QfKhF5WPh6Gj5skuy0TXmBjMTSnQ.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/Dl-NUisCUKKISrWE7M2oFXVpPFicurw2Va50_nNMy3k.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/GYYAJ3FkbQM0cLSTLqUzVyuWYL1B1AWg4FCEmXXUG9U.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/GkLvvxrkyX0_w9FNcSslwfEV_JzAAtRlVKM3dZAxI18.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/IcrjOgrUk68EJPgCdByEHzKfEKryUjeyKSWq-PEGf2E.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/K1DTLxe-bgF1wVbSJm2QUY_CMGj5J3FUTtHsoxl1EQc.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/K4HSx9qgV9xEpmTXd6xgKL4fYHWKC4MU_RY6n7TFk9Q.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/NwJZbK1pDbU-pMc7IsK2Rx1MwN4EaXyDMUKuzQCHPCw.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/SXVHiwpmgcQmM4FyGzKKwKiM3jCMr8EGhSJpQiC9wcQ.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/UBbOS5C2oSAcdKvW_Z-oEtU6_8rnuMx9M2G3o_5QN6s.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/Uviw7jE916HhqccasMRdQ5CTXoBqH7dxweEg_bsm3K0.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/VPOhaapUo-sv4VGkt6by3qUT2B4T2kSjaHb89uicvYU.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/a9sNeDvMqAwAX-rnnfZrdNjSIz_Ak1KVT1kNS8SeGas.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/eZXj2eM6sa6zSFHhekBC5TX_Pddob3sO7hyhYVAb0fg.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/evilMWS_uDxgvUtMe_HRyK3ZfZo7bBegojhsvLdjcKw.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/eyQ1Iet2dzYcWDsu5qBemC0D5l3jdLLgchA4fkh5nnc.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/g5ekayFy2lyNSg0qaf9pHIi9AUYJ8eKcPfhsV0yqkPU.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/iDTnVSbZnIij5Xm4jkwCyIXAPDn8RwaRe5Ja8YPKibw.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/iHYDh87b9nTCgd6e7YCtB9CqNPhoxyyqir0EhBx1-Rk.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/kyugOtp1okMz23E1fAOMqsyMHj1vAxVX-UWy0S4ZEAg.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/mXy3FNW22ItExIRbbqYnT6XBDj9QYoqBC8ZzyFWncGs.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/oiA-NPgVz4-xBX3Ri3o3lAS3l-EKuTmQ7OdbfrVdtAc.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/ovnZOq_jVOpE2KrlsIEIX-KoxHk-acnpn9KcSJbfkfw.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/r-A0ga7LeDzW9Vsra2ECnPQdYszihD4iU_kddis_m9c.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/rtcJ_islohXm8x0bqaTIpW2nOttNweCIQw0qzQkEabo.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/tI6TANdxXMulmZuDkMCGk02plL26Vj9VGCuNvCZ8SyY.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/tbLteZ12v3ZDVzL-ACWn314an41wFJYQx3GCldsqR-w.cache +1 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/vftuHuDXEagG2jsCk15VnJkFiSbkIBPZ59tyv5e0XRo.cache +0 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/ydw-EtO01i7QnaD3kHyY0f5ol82z0etd9JYXcNRT0SA.cache +2 -0
- data/test/dummy/tmp/cache/sprockets/v3.0/zehql4552SVo4rZUU8Bpz_cxFIk74U7tZNmhhxX89ew.cache +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- metadata +106 -2
data/test/dummy/log/test.log
CHANGED
@@ -1612,3 +1612,2250 @@ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.5ms)
|
|
1612
1612
|
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1613
1613
|
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1614
1614
|
[1m[35m (0.1ms)[0m rollback transaction
|
1615
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1616
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1617
|
+
---------------------------
|
1618
|
+
ManageCacheTest: test_truth
|
1619
|
+
---------------------------
|
1620
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1621
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1622
|
+
--------------------------------------------------------
|
1623
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
1624
|
+
--------------------------------------------------------
|
1625
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1626
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:29:14.812752"], ["updated_at", "2016-01-13 19:29:14.812752"]]
|
1627
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1628
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1629
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1630
|
+
----------------------------------------------------------------------------------------
|
1631
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
1632
|
+
----------------------------------------------------------------------------------------
|
1633
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1634
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 19:29:14.859345"], ["updated_at", "2016-01-13 19:29:14.859345"]]
|
1635
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1636
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1637
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 19:29:14.860716"], ["updated_at", "2016-01-13 19:29:14.860716"]]
|
1638
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1639
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1640
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 19:29:14.867531"], ["updated_at", "2016-01-13 19:29:14.867531"]]
|
1641
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1642
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1643
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1644
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1645
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 19:29:14.883089"], ["updated_at", "2016-01-13 19:29:14.883089"]]
|
1646
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1647
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1648
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1649
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1650
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 19:29:14.885206"], ["updated_at", "2016-01-13 19:29:14.885206"]]
|
1651
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1652
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1653
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1654
|
+
Processing by UsersController#index as HTML
|
1655
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
1656
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:29:14 UTC (0.1ms)
|
1657
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:29:14 UTC (1.0ms)
|
1658
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1659
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1660
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:29:14 UTC (0.0ms)
|
1661
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1662
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:29:14 UTC (0.4ms)
|
1663
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:29:14 UTC (0.0ms)
|
1664
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:29:14 UTC (0.4ms)
|
1665
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
1666
|
+
Read fragment views/ (0.0ms)
|
1667
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
|
1668
|
+
Write fragment views/ (0.4ms)
|
1669
|
+
Rendered users/index.html.erb within layouts/application (8.9ms)
|
1670
|
+
Completed 200 OK in 179ms (Views: 177.9ms | ActiveRecord: 0.4ms)
|
1671
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1672
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:29:15.067928"], ["id", 1]]
|
1673
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1674
|
+
Processing by UsersController#index as HTML
|
1675
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
1676
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:29:15 UTC (0.0ms)
|
1677
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:29:15 UTC (0.3ms)
|
1678
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1679
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1680
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:29:14 UTC (0.1ms)
|
1681
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:29:14 UTC (0.1ms)
|
1682
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
1683
|
+
Read fragment views/ (0.1ms)
|
1684
|
+
Rendered users/index.html.erb within layouts/application (3.5ms)
|
1685
|
+
Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.6ms)
|
1686
|
+
Processing by UsersController#index as HTML
|
1687
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
1688
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:29:15 UTC (0.1ms)
|
1689
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1690
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1691
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:29:14 UTC (0.1ms)
|
1692
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:29:14 UTC (0.1ms)
|
1693
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
1694
|
+
Read fragment views/ (0.1ms)
|
1695
|
+
Rendered users/index.html.erb within layouts/application (2.6ms)
|
1696
|
+
Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.7ms)
|
1697
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1698
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1699
|
+
-------------------------------------------------------------------------------------------
|
1700
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
1701
|
+
-------------------------------------------------------------------------------------------
|
1702
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1703
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 19:29:15.082854"], ["updated_at", "2016-01-13 19:29:15.082854"]]
|
1704
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1705
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1706
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 19:29:15.083995"], ["updated_at", "2016-01-13 19:29:15.083995"]]
|
1707
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1708
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1709
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 19:29:15.085134"], ["updated_at", "2016-01-13 19:29:15.085134"]]
|
1710
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1711
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1712
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1713
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1714
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 19:29:15.087004"], ["updated_at", "2016-01-13 19:29:15.087004"]]
|
1715
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1716
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1717
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1718
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1719
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 19:29:15.088761"], ["updated_at", "2016-01-13 19:29:15.088761"]]
|
1720
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1721
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1722
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1723
|
+
Processing by UsersController#index as HTML
|
1724
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
1725
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:29:15 UTC (0.1ms)
|
1726
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:29:15 UTC (0.4ms)
|
1727
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1728
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1729
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:29:15 UTC (0.1ms)
|
1730
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1731
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:29:15 UTC (0.4ms)
|
1732
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:29:15 UTC (0.0ms)
|
1733
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:29:15 UTC (0.3ms)
|
1734
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
1735
|
+
Read fragment views/ (0.0ms)
|
1736
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
|
1737
|
+
Write fragment views/ (0.4ms)
|
1738
|
+
Rendered users/index.html.erb within layouts/application (5.1ms)
|
1739
|
+
Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.2ms)
|
1740
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1741
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1742
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1743
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 19:29:15.098356"], ["id", 1]]
|
1744
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1745
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1746
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1747
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1748
|
+
Processing by UsersController#index as HTML
|
1749
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
1750
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:29:15 UTC (0.1ms)
|
1751
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1752
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1753
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:29:15 UTC (0.0ms)
|
1754
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1755
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:29:15 UTC (0.4ms)
|
1756
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:29:15 UTC (0.1ms)
|
1757
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
1758
|
+
Read fragment views/ (0.1ms)
|
1759
|
+
Rendered users/index.html.erb within layouts/application (3.4ms)
|
1760
|
+
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.4ms)
|
1761
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1762
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1763
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1764
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1765
|
+
------------------------------------------------------------------------------
|
1766
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
1767
|
+
------------------------------------------------------------------------------
|
1768
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1769
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 19:29:15.107095"], ["updated_at", "2016-01-13 19:29:15.107095"]]
|
1770
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1771
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1772
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 19:29:15.108220"], ["updated_at", "2016-01-13 19:29:15.108220"]]
|
1773
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1774
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1775
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 19:29:15.109739"], ["updated_at", "2016-01-13 19:29:15.109739"]]
|
1776
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1777
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1778
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1779
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1780
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 19:29:15.112070"], ["updated_at", "2016-01-13 19:29:15.112070"]]
|
1781
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1782
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1783
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1784
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1785
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 19:29:15.114082"], ["updated_at", "2016-01-13 19:29:15.114082"]]
|
1786
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1787
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1788
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1789
|
+
Processing by UsersController#show as HTML
|
1790
|
+
Parameters: {"id"=>"1"}
|
1791
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1792
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-13 19:29:15 UTC (0.1ms)
|
1793
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-13 19:29:15 UTC (0.4ms)
|
1794
|
+
Rendered users/show.html.erb within layouts/application (1.0ms)
|
1795
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
|
1796
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1797
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-13 19:29:15.119574"], ["id", 1]]
|
1798
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1799
|
+
Processing by UsersController#show as HTML
|
1800
|
+
Parameters: {"id"=>"1"}
|
1801
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1802
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-13 19:29:15 UTC (0.1ms)
|
1803
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-13 19:29:15 UTC (0.3ms)
|
1804
|
+
Rendered users/show.html.erb within layouts/application (0.6ms)
|
1805
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
1806
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1807
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1808
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1809
|
+
--------------------------------------------------------
|
1810
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
1811
|
+
--------------------------------------------------------
|
1812
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1813
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:30:40.121612"], ["updated_at", "2016-01-13 19:30:40.121612"]]
|
1814
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1815
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1816
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1817
|
+
-------------------------------------------------------------------------------------------
|
1818
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
1819
|
+
-------------------------------------------------------------------------------------------
|
1820
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1821
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 19:30:40.156123"], ["updated_at", "2016-01-13 19:30:40.156123"]]
|
1822
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1823
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1824
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 19:30:40.157337"], ["updated_at", "2016-01-13 19:30:40.157337"]]
|
1825
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1826
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1827
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 19:30:40.162835"], ["updated_at", "2016-01-13 19:30:40.162835"]]
|
1828
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1829
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1830
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1831
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1832
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 19:30:40.173357"], ["updated_at", "2016-01-13 19:30:40.173357"]]
|
1833
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1834
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1835
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1836
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1837
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 19:30:40.175777"], ["updated_at", "2016-01-13 19:30:40.175777"]]
|
1838
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1839
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1840
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1841
|
+
Processing by UsersController#index as HTML
|
1842
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
1843
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:30:40 UTC (0.1ms)
|
1844
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:30:40 UTC (0.5ms)
|
1845
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1846
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1847
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:30:40 UTC (0.0ms)
|
1848
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1849
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:30:40 UTC (0.4ms)
|
1850
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:30:40 UTC (0.1ms)
|
1851
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:30:40 UTC (0.3ms)
|
1852
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
1853
|
+
Read fragment views/ (0.1ms)
|
1854
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
|
1855
|
+
Write fragment views/ (0.3ms)
|
1856
|
+
Rendered users/index.html.erb within layouts/application (6.8ms)
|
1857
|
+
Completed 200 OK in 149ms (Views: 148.8ms | ActiveRecord: 0.4ms)
|
1858
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1859
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1860
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1861
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 19:30:40.330032"], ["id", 1]]
|
1862
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1863
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1864
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1865
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1866
|
+
Processing by UsersController#index as HTML
|
1867
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
1868
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:30:40 UTC (0.1ms)
|
1869
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1870
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1871
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:30:40 UTC (0.0ms)
|
1872
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1873
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:30:40 UTC (0.4ms)
|
1874
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:30:40 UTC (0.1ms)
|
1875
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
1876
|
+
Read fragment views/ (0.1ms)
|
1877
|
+
Rendered users/index.html.erb within layouts/application (3.1ms)
|
1878
|
+
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.5ms)
|
1879
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1880
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1881
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1882
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1883
|
+
----------------------------------------------------------------------------------------
|
1884
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
1885
|
+
----------------------------------------------------------------------------------------
|
1886
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1887
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 19:30:40.339815"], ["updated_at", "2016-01-13 19:30:40.339815"]]
|
1888
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1889
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1890
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 19:30:40.340947"], ["updated_at", "2016-01-13 19:30:40.340947"]]
|
1891
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1892
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1893
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 19:30:40.342059"], ["updated_at", "2016-01-13 19:30:40.342059"]]
|
1894
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1895
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1896
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1897
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1898
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 19:30:40.343873"], ["updated_at", "2016-01-13 19:30:40.343873"]]
|
1899
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1900
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1901
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1902
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1903
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 19:30:40.345461"], ["updated_at", "2016-01-13 19:30:40.345461"]]
|
1904
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1905
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1906
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1907
|
+
Processing by UsersController#index as HTML
|
1908
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
1909
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:30:40 UTC (0.0ms)
|
1910
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:30:40 UTC (0.4ms)
|
1911
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1912
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1913
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:30:40 UTC (0.0ms)
|
1914
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1915
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:30:40 UTC (0.5ms)
|
1916
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:30:40 UTC (0.0ms)
|
1917
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:30:40 UTC (0.3ms)
|
1918
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
1919
|
+
Read fragment views/ (0.1ms)
|
1920
|
+
Rendered users/index.html.erb within layouts/application (4.2ms)
|
1921
|
+
Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.2ms)
|
1922
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1923
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-13 19:30:40.352882"], ["id", 1]]
|
1924
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1925
|
+
Processing by UsersController#index as HTML
|
1926
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
1927
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:30:40 UTC (0.0ms)
|
1928
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:30:40 UTC (0.4ms)
|
1929
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1930
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1931
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:30:40 UTC (0.1ms)
|
1932
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:30:40 UTC (0.1ms)
|
1933
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
1934
|
+
Read fragment views/ (0.1ms)
|
1935
|
+
Rendered users/index.html.erb within layouts/application (2.9ms)
|
1936
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms)
|
1937
|
+
Processing by UsersController#index as HTML
|
1938
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
1939
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:30:40 UTC (0.1ms)
|
1940
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1941
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1942
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:30:40 UTC (0.1ms)
|
1943
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:30:40 UTC (0.1ms)
|
1944
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
1945
|
+
Read fragment views/ (0.1ms)
|
1946
|
+
Rendered users/index.html.erb within layouts/application (2.3ms)
|
1947
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.5ms)
|
1948
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1949
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1950
|
+
------------------------------------------------------------------------------
|
1951
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
1952
|
+
------------------------------------------------------------------------------
|
1953
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1954
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:30:40.362105"], ["updated_at", "2016-01-13 19:30:40.362105"]]
|
1955
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1956
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1957
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 19:30:40.363313"], ["updated_at", "2016-01-13 19:30:40.363313"]]
|
1958
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1959
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1960
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 19:30:40.364440"], ["updated_at", "2016-01-13 19:30:40.364440"]]
|
1961
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1962
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1963
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1964
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1965
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 19:30:40.366895"], ["updated_at", "2016-01-13 19:30:40.366895"]]
|
1966
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1967
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1968
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1969
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1970
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 19:30:40.369312"], ["updated_at", "2016-01-13 19:30:40.369312"]]
|
1971
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1972
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1973
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1974
|
+
Processing by UsersController#show as HTML
|
1975
|
+
Parameters: {"id"=>"1"}
|
1976
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1977
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-13 19:30:40 UTC (0.1ms)
|
1978
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-13 19:30:40 UTC (0.4ms)
|
1979
|
+
Rendered users/show.html.erb within layouts/application (1.0ms)
|
1980
|
+
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
|
1981
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1982
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:30:40.374235"], ["id", 1]]
|
1983
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1984
|
+
Processing by UsersController#show as HTML
|
1985
|
+
Parameters: {"id"=>"1"}
|
1986
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1987
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-13 19:30:40 UTC (0.0ms)
|
1988
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-13 19:30:40 UTC (0.3ms)
|
1989
|
+
Rendered users/show.html.erb within layouts/application (0.6ms)
|
1990
|
+
Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.1ms)
|
1991
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1992
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1993
|
+
---------------------------
|
1994
|
+
ManageCacheTest: test_truth
|
1995
|
+
---------------------------
|
1996
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1997
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1998
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1999
|
+
---------------------------
|
2000
|
+
ManageCacheTest: test_truth
|
2001
|
+
---------------------------
|
2002
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2003
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2004
|
+
----------------------------------------------------------------------------------------
|
2005
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
2006
|
+
----------------------------------------------------------------------------------------
|
2007
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2008
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:36:20.570453"], ["updated_at", "2016-01-13 19:36:20.570453"]]
|
2009
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2010
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2011
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 19:36:20.572985"], ["updated_at", "2016-01-13 19:36:20.572985"]]
|
2012
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2013
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2014
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 19:36:20.578302"], ["updated_at", "2016-01-13 19:36:20.578302"]]
|
2015
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2016
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2017
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2018
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2019
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 19:36:20.588592"], ["updated_at", "2016-01-13 19:36:20.588592"]]
|
2020
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2021
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2022
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2023
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2024
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 19:36:20.590408"], ["updated_at", "2016-01-13 19:36:20.590408"]]
|
2025
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2026
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2027
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2028
|
+
Processing by UsersController#index as HTML
|
2029
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2030
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:36:20 UTC (0.1ms)
|
2031
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:36:20 UTC (0.5ms)
|
2032
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2033
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2034
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:36:20 UTC (0.1ms)
|
2035
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2036
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:36:20 UTC (0.3ms)
|
2037
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:36:20 UTC (0.0ms)
|
2038
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:36:20 UTC (0.3ms)
|
2039
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
2040
|
+
Read fragment views/ (0.1ms)
|
2041
|
+
Rendered users/index.html.erb within layouts/application (6.2ms)
|
2042
|
+
Completed 200 OK in 141ms (Views: 140.3ms | ActiveRecord: 0.3ms)
|
2043
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2044
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:36:20.735100"], ["id", 1]]
|
2045
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2046
|
+
Processing by UsersController#index as HTML
|
2047
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2048
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:36:20 UTC (0.0ms)
|
2049
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:36:20 UTC (0.4ms)
|
2050
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2051
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2052
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:36:20 UTC (0.1ms)
|
2053
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:36:20 UTC (0.1ms)
|
2054
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2055
|
+
Read fragment views/ (0.1ms)
|
2056
|
+
Rendered users/index.html.erb within layouts/application (3.2ms)
|
2057
|
+
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.4ms)
|
2058
|
+
Processing by UsersController#index as HTML
|
2059
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2060
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:36:20 UTC (0.1ms)
|
2061
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2062
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2063
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:36:20 UTC (0.1ms)
|
2064
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:36:20 UTC (0.1ms)
|
2065
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2066
|
+
Read fragment views/ (0.1ms)
|
2067
|
+
Rendered users/index.html.erb within layouts/application (2.4ms)
|
2068
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.6ms)
|
2069
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2070
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2071
|
+
-------------------------------------------------------------------------------------------
|
2072
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
2073
|
+
-------------------------------------------------------------------------------------------
|
2074
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2075
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 19:36:20.746803"], ["updated_at", "2016-01-13 19:36:20.746803"]]
|
2076
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2077
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2078
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 19:36:20.748050"], ["updated_at", "2016-01-13 19:36:20.748050"]]
|
2079
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2080
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2081
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 19:36:20.749206"], ["updated_at", "2016-01-13 19:36:20.749206"]]
|
2082
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2083
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2084
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2085
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2086
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 19:36:20.751021"], ["updated_at", "2016-01-13 19:36:20.751021"]]
|
2087
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2088
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2089
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2090
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2091
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 19:36:20.752600"], ["updated_at", "2016-01-13 19:36:20.752600"]]
|
2092
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2093
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2094
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2095
|
+
Processing by UsersController#index as HTML
|
2096
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2097
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:36:20 UTC (0.1ms)
|
2098
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:36:20 UTC (0.4ms)
|
2099
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2100
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2101
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:36:20 UTC (0.1ms)
|
2102
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2103
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:36:20 UTC (0.5ms)
|
2104
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:36:20 UTC (0.0ms)
|
2105
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:36:20 UTC (0.3ms)
|
2106
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2107
|
+
Read fragment views/ (0.1ms)
|
2108
|
+
Rendered users/index.html.erb within layouts/application (4.4ms)
|
2109
|
+
Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.2ms)
|
2110
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2111
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2112
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2113
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-13 19:36:20.760989"], ["id", 1]]
|
2114
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2115
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2116
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2117
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2118
|
+
Processing by UsersController#index as HTML
|
2119
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2120
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:36:20 UTC (0.1ms)
|
2121
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2122
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2123
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:36:20 UTC (0.0ms)
|
2124
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2125
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:36:20 UTC (0.3ms)
|
2126
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:36:20 UTC (0.1ms)
|
2127
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
2128
|
+
Read fragment views/ (0.1ms)
|
2129
|
+
Rendered users/index.html.erb within layouts/application (3.0ms)
|
2130
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)
|
2131
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2132
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2133
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2134
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2135
|
+
------------------------------------------------------------------------------
|
2136
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
2137
|
+
------------------------------------------------------------------------------
|
2138
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2139
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:36:20.768493"], ["updated_at", "2016-01-13 19:36:20.768493"]]
|
2140
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2141
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2142
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 19:36:20.769625"], ["updated_at", "2016-01-13 19:36:20.769625"]]
|
2143
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2144
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2145
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 19:36:20.770772"], ["updated_at", "2016-01-13 19:36:20.770772"]]
|
2146
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2147
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2148
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2149
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2150
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 19:36:20.773272"], ["updated_at", "2016-01-13 19:36:20.773272"]]
|
2151
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2152
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2153
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2154
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2155
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 19:36:20.775289"], ["updated_at", "2016-01-13 19:36:20.775289"]]
|
2156
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2157
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2158
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2159
|
+
Processing by UsersController#show as HTML
|
2160
|
+
Parameters: {"id"=>"1"}
|
2161
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2162
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-13 19:36:20 UTC (0.0ms)
|
2163
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-13 19:36:20 UTC (0.5ms)
|
2164
|
+
Rendered users/show.html.erb within layouts/application (1.0ms)
|
2165
|
+
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
|
2166
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2167
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:36:20.780719"], ["id", 1]]
|
2168
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2169
|
+
Processing by UsersController#show as HTML
|
2170
|
+
Parameters: {"id"=>"1"}
|
2171
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2172
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-13 19:36:20 UTC (0.0ms)
|
2173
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-13 19:36:20 UTC (0.3ms)
|
2174
|
+
Rendered users/show.html.erb within layouts/application (0.6ms)
|
2175
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
2176
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2177
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2178
|
+
--------------------------------------------------------
|
2179
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
2180
|
+
--------------------------------------------------------
|
2181
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2182
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:36:20.784582"], ["updated_at", "2016-01-13 19:36:20.784582"]]
|
2183
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2184
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2185
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2186
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2187
|
+
--------------------------------------------------------
|
2188
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
2189
|
+
--------------------------------------------------------
|
2190
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2191
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:38:12.834103"], ["updated_at", "2016-01-13 19:38:12.834103"]]
|
2192
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2193
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2194
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2195
|
+
---------------------------
|
2196
|
+
ManageCacheTest: test_truth
|
2197
|
+
---------------------------
|
2198
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2200
|
+
------------------------------------------------------------------------------
|
2201
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
2202
|
+
------------------------------------------------------------------------------
|
2203
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2204
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 19:38:12.868375"], ["updated_at", "2016-01-13 19:38:12.868375"]]
|
2205
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2206
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2207
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 19:38:12.869601"], ["updated_at", "2016-01-13 19:38:12.869601"]]
|
2208
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2209
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2210
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 19:38:12.874981"], ["updated_at", "2016-01-13 19:38:12.874981"]]
|
2211
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2212
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2213
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2214
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2215
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 19:38:12.885475"], ["updated_at", "2016-01-13 19:38:12.885475"]]
|
2216
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2217
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2218
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2219
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2220
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 19:38:12.887346"], ["updated_at", "2016-01-13 19:38:12.887346"]]
|
2221
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2222
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2223
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2224
|
+
Processing by UsersController#show as HTML
|
2225
|
+
Parameters: {"id"=>"1"}
|
2226
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2227
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-13 19:38:12 UTC (0.1ms)
|
2228
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-13 19:38:12 UTC (0.5ms)
|
2229
|
+
Rendered users/show.html.erb within layouts/application (1.6ms)
|
2230
|
+
Completed 200 OK in 142ms (Views: 139.7ms | ActiveRecord: 0.1ms)
|
2231
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2232
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-13 19:38:13.032619"], ["id", 1]]
|
2233
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2234
|
+
Processing by UsersController#show as HTML
|
2235
|
+
Parameters: {"id"=>"1"}
|
2236
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2237
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-13 19:38:13 UTC (0.0ms)
|
2238
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-13 19:38:13 UTC (0.4ms)
|
2239
|
+
Rendered users/show.html.erb within layouts/application (0.8ms)
|
2240
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
2241
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2242
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2243
|
+
----------------------------------------------------------------------------------------
|
2244
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
2245
|
+
----------------------------------------------------------------------------------------
|
2246
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2247
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 19:38:13.037256"], ["updated_at", "2016-01-13 19:38:13.037256"]]
|
2248
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2249
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2250
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 19:38:13.038442"], ["updated_at", "2016-01-13 19:38:13.038442"]]
|
2251
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2252
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2253
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 19:38:13.039503"], ["updated_at", "2016-01-13 19:38:13.039503"]]
|
2254
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2255
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2256
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2257
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2258
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 19:38:13.041250"], ["updated_at", "2016-01-13 19:38:13.041250"]]
|
2259
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2260
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2261
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2262
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2263
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 19:38:13.042841"], ["updated_at", "2016-01-13 19:38:13.042841"]]
|
2264
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2265
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2266
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2267
|
+
Processing by UsersController#index as HTML
|
2268
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2269
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:38:13 UTC (0.0ms)
|
2270
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:38:13 UTC (0.4ms)
|
2271
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2272
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2273
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:38:13 UTC (0.1ms)
|
2274
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2275
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:38:13 UTC (0.4ms)
|
2276
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:38:13 UTC (0.0ms)
|
2277
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:38:13 UTC (0.3ms)
|
2278
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2279
|
+
Read fragment views/ (0.0ms)
|
2280
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
|
2281
|
+
Write fragment views/ (0.3ms)
|
2282
|
+
Rendered users/index.html.erb within layouts/application (6.0ms)
|
2283
|
+
Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.4ms)
|
2284
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2285
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:38:13.052361"], ["id", 1]]
|
2286
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2287
|
+
Processing by UsersController#index as HTML
|
2288
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2289
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:38:13 UTC (0.0ms)
|
2290
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:38:13 UTC (0.3ms)
|
2291
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2292
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2293
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:38:13 UTC (0.1ms)
|
2294
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:38:13 UTC (0.1ms)
|
2295
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2296
|
+
Read fragment views/ (0.1ms)
|
2297
|
+
Rendered users/index.html.erb within layouts/application (2.8ms)
|
2298
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)
|
2299
|
+
Processing by UsersController#index as HTML
|
2300
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2301
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:38:13 UTC (0.1ms)
|
2302
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2303
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2304
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:38:13 UTC (0.1ms)
|
2305
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:38:13 UTC (0.1ms)
|
2306
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2307
|
+
Read fragment views/ (0.1ms)
|
2308
|
+
Rendered users/index.html.erb within layouts/application (2.4ms)
|
2309
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.7ms)
|
2310
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2311
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2312
|
+
-------------------------------------------------------------------------------------------
|
2313
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
2314
|
+
-------------------------------------------------------------------------------------------
|
2315
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2316
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 19:38:13.061626"], ["updated_at", "2016-01-13 19:38:13.061626"]]
|
2317
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2318
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2319
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 19:38:13.063262"], ["updated_at", "2016-01-13 19:38:13.063262"]]
|
2320
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2321
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2322
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 19:38:13.064846"], ["updated_at", "2016-01-13 19:38:13.064846"]]
|
2323
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2324
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2325
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2326
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2327
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 19:38:13.067399"], ["updated_at", "2016-01-13 19:38:13.067399"]]
|
2328
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2329
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2330
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2331
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2332
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 19:38:13.069002"], ["updated_at", "2016-01-13 19:38:13.069002"]]
|
2333
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2334
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2335
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2336
|
+
Processing by UsersController#index as HTML
|
2337
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2338
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:38:13 UTC (0.0ms)
|
2339
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:38:13 UTC (0.4ms)
|
2340
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2341
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2342
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:38:13 UTC (0.0ms)
|
2343
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2344
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:38:13 UTC (0.3ms)
|
2345
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:38:13 UTC (0.0ms)
|
2346
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:38:13 UTC (0.3ms)
|
2347
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2348
|
+
Read fragment views/ (0.1ms)
|
2349
|
+
Rendered users/index.html.erb within layouts/application (4.0ms)
|
2350
|
+
Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.2ms)
|
2351
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2352
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2353
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2354
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-13 19:38:13.076983"], ["id", 1]]
|
2355
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2356
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2357
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2358
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2359
|
+
Processing by UsersController#index as HTML
|
2360
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2361
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:38:13 UTC (0.1ms)
|
2362
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2363
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2364
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:38:13 UTC (0.0ms)
|
2365
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2366
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 19:38:13 UTC (0.3ms)
|
2367
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 19:38:13 UTC (0.1ms)
|
2368
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
2369
|
+
Read fragment views/ (0.1ms)
|
2370
|
+
Rendered users/index.html.erb within layouts/application (3.0ms)
|
2371
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)
|
2372
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2373
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2374
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2375
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2376
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2377
|
+
---------------------------
|
2378
|
+
ManageCacheTest: test_truth
|
2379
|
+
---------------------------
|
2380
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2381
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2382
|
+
--------------------------------------------------------
|
2383
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
2384
|
+
--------------------------------------------------------
|
2385
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2386
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 20:03:49.390816"], ["updated_at", "2016-01-13 20:03:49.390816"]]
|
2387
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2388
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2389
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2390
|
+
------------------------------------------------------------------------------
|
2391
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
2392
|
+
------------------------------------------------------------------------------
|
2393
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2394
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 20:03:49.428357"], ["updated_at", "2016-01-13 20:03:49.428357"]]
|
2395
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2396
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2397
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 20:03:49.429844"], ["updated_at", "2016-01-13 20:03:49.429844"]]
|
2398
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2399
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2400
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 20:03:49.435962"], ["updated_at", "2016-01-13 20:03:49.435962"]]
|
2401
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2402
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2403
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2404
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2405
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 20:03:49.446905"], ["updated_at", "2016-01-13 20:03:49.446905"]]
|
2406
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2407
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2408
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2409
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2410
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 20:03:49.448842"], ["updated_at", "2016-01-13 20:03:49.448842"]]
|
2411
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2412
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2413
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2414
|
+
Processing by UsersController#show as HTML
|
2415
|
+
Parameters: {"id"=>"1"}
|
2416
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2417
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-13 20:03:49 UTC (0.1ms)
|
2418
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-13 20:03:49 UTC (0.5ms)
|
2419
|
+
Rendered users/show.html.erb within layouts/application (1.6ms)
|
2420
|
+
Completed 200 OK in 150ms (Views: 148.6ms | ActiveRecord: 0.0ms)
|
2421
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2422
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-13 20:03:49.603333"], ["id", 1]]
|
2423
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2424
|
+
Processing by UsersController#show as HTML
|
2425
|
+
Parameters: {"id"=>"1"}
|
2426
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2427
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-13 20:03:49 UTC (0.0ms)
|
2428
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-13 20:03:49 UTC (0.4ms)
|
2429
|
+
Rendered users/show.html.erb within layouts/application (0.7ms)
|
2430
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
2431
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2432
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2433
|
+
----------------------------------------------------------------------------------------
|
2434
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
2435
|
+
----------------------------------------------------------------------------------------
|
2436
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2437
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 20:03:49.608169"], ["updated_at", "2016-01-13 20:03:49.608169"]]
|
2438
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2439
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2440
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 20:03:49.609393"], ["updated_at", "2016-01-13 20:03:49.609393"]]
|
2441
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2442
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2443
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 20:03:49.610426"], ["updated_at", "2016-01-13 20:03:49.610426"]]
|
2444
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2445
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2446
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2447
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2448
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 20:03:49.612214"], ["updated_at", "2016-01-13 20:03:49.612214"]]
|
2449
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2450
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2451
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2452
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2453
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 20:03:49.613788"], ["updated_at", "2016-01-13 20:03:49.613788"]]
|
2454
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2455
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2456
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2457
|
+
Processing by UsersController#index as HTML
|
2458
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2459
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:03:49 UTC (0.0ms)
|
2460
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:03:49 UTC (0.4ms)
|
2461
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2462
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2463
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:03:49 UTC (0.1ms)
|
2464
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2465
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:03:49 UTC (0.4ms)
|
2466
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:03:49 UTC (0.0ms)
|
2467
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:03:49 UTC (0.3ms)
|
2468
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2469
|
+
Read fragment views/ (0.0ms)
|
2470
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
|
2471
|
+
Write fragment views/ (0.3ms)
|
2472
|
+
Rendered users/index.html.erb within layouts/application (6.0ms)
|
2473
|
+
Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.3ms)
|
2474
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2475
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 20:03:49.623342"], ["id", 1]]
|
2476
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2477
|
+
Processing by UsersController#index as HTML
|
2478
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2479
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:03:49 UTC (0.0ms)
|
2480
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:03:49 UTC (0.3ms)
|
2481
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2482
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2483
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:03:49 UTC (0.1ms)
|
2484
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:03:49 UTC (0.1ms)
|
2485
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2486
|
+
Read fragment views/ (0.1ms)
|
2487
|
+
Rendered users/index.html.erb within layouts/application (2.8ms)
|
2488
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)
|
2489
|
+
Processing by UsersController#index as HTML
|
2490
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2491
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:03:49 UTC (0.1ms)
|
2492
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2493
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2494
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:03:49 UTC (0.1ms)
|
2495
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:03:49 UTC (0.1ms)
|
2496
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2497
|
+
Read fragment views/ (0.1ms)
|
2498
|
+
Rendered users/index.html.erb within layouts/application (2.4ms)
|
2499
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.6ms)
|
2500
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2501
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2502
|
+
-------------------------------------------------------------------------------------------
|
2503
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
2504
|
+
-------------------------------------------------------------------------------------------
|
2505
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2506
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 20:03:49.632641"], ["updated_at", "2016-01-13 20:03:49.632641"]]
|
2507
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2508
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2509
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 20:03:49.634114"], ["updated_at", "2016-01-13 20:03:49.634114"]]
|
2510
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2511
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2512
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 20:03:49.635751"], ["updated_at", "2016-01-13 20:03:49.635751"]]
|
2513
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2514
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2515
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2516
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2517
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 20:03:49.638276"], ["updated_at", "2016-01-13 20:03:49.638276"]]
|
2518
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2519
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2520
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2521
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2522
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 20:03:49.639987"], ["updated_at", "2016-01-13 20:03:49.639987"]]
|
2523
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2524
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2525
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2526
|
+
Processing by UsersController#index as HTML
|
2527
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2528
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:03:49 UTC (0.0ms)
|
2529
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:03:49 UTC (0.4ms)
|
2530
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2531
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2532
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:03:49 UTC (0.0ms)
|
2533
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2534
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:03:49 UTC (0.3ms)
|
2535
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:03:49 UTC (0.0ms)
|
2536
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:03:49 UTC (0.3ms)
|
2537
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2538
|
+
Read fragment views/ (0.1ms)
|
2539
|
+
Rendered users/index.html.erb within layouts/application (4.0ms)
|
2540
|
+
Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.2ms)
|
2541
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2542
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2543
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2544
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-13 20:03:49.648217"], ["id", 1]]
|
2545
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2546
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2547
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2548
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2549
|
+
Processing by UsersController#index as HTML
|
2550
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2551
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:03:49 UTC (0.1ms)
|
2552
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2553
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2554
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:03:49 UTC (0.0ms)
|
2555
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2556
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:03:49 UTC (0.3ms)
|
2557
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:03:49 UTC (0.1ms)
|
2558
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
2559
|
+
Read fragment views/ (0.1ms)
|
2560
|
+
Rendered users/index.html.erb within layouts/application (3.0ms)
|
2561
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.4ms)
|
2562
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2563
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2564
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2565
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2566
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2567
|
+
--------------------------------------------------------
|
2568
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
2569
|
+
--------------------------------------------------------
|
2570
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2571
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 20:07:00.113722"], ["updated_at", "2016-01-13 20:07:00.113722"]]
|
2572
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2573
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2574
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2575
|
+
---------------------------
|
2576
|
+
ManageCacheTest: test_truth
|
2577
|
+
---------------------------
|
2578
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2579
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2580
|
+
----------------------------------------------------------------------------------------
|
2581
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
2582
|
+
----------------------------------------------------------------------------------------
|
2583
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2584
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 20:07:00.151654"], ["updated_at", "2016-01-13 20:07:00.151654"]]
|
2585
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2586
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2587
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 20:07:00.153161"], ["updated_at", "2016-01-13 20:07:00.153161"]]
|
2588
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2589
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2590
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 20:07:00.158873"], ["updated_at", "2016-01-13 20:07:00.158873"]]
|
2591
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2592
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2593
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2594
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2595
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 20:07:00.169706"], ["updated_at", "2016-01-13 20:07:00.169706"]]
|
2596
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2597
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2598
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2599
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2600
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 20:07:00.171557"], ["updated_at", "2016-01-13 20:07:00.171557"]]
|
2601
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2602
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2603
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2604
|
+
Processing by UsersController#index as HTML
|
2605
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2606
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:07:00 UTC (0.1ms)
|
2607
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:07:00 UTC (0.5ms)
|
2608
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2609
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2610
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:07:00 UTC (0.0ms)
|
2611
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2612
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:07:00 UTC (0.4ms)
|
2613
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:07:00 UTC (0.0ms)
|
2614
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:07:00 UTC (0.3ms)
|
2615
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2616
|
+
Read fragment views/ (0.0ms)
|
2617
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
|
2618
|
+
Write fragment views/ (0.4ms)
|
2619
|
+
Rendered users/index.html.erb within layouts/application (6.7ms)
|
2620
|
+
Completed 200 OK in 152ms (Views: 151.0ms | ActiveRecord: 0.3ms)
|
2621
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2622
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 20:07:00.326781"], ["id", 1]]
|
2623
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2624
|
+
Processing by UsersController#index as HTML
|
2625
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2626
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:07:00 UTC (0.0ms)
|
2627
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:07:00 UTC (0.5ms)
|
2628
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2629
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2630
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:07:00 UTC (0.1ms)
|
2631
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:07:00 UTC (0.1ms)
|
2632
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2633
|
+
Read fragment views/ (0.1ms)
|
2634
|
+
Rendered users/index.html.erb within layouts/application (3.1ms)
|
2635
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.5ms)
|
2636
|
+
Processing by UsersController#index as HTML
|
2637
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2638
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:07:00 UTC (0.1ms)
|
2639
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2640
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2641
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:07:00 UTC (0.1ms)
|
2642
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:07:00 UTC (0.1ms)
|
2643
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2644
|
+
Read fragment views/ (0.1ms)
|
2645
|
+
Rendered users/index.html.erb within layouts/application (2.3ms)
|
2646
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.6ms)
|
2647
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2648
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2649
|
+
-------------------------------------------------------------------------------------------
|
2650
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
2651
|
+
-------------------------------------------------------------------------------------------
|
2652
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2653
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 20:07:00.338432"], ["updated_at", "2016-01-13 20:07:00.338432"]]
|
2654
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2655
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2656
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 20:07:00.339694"], ["updated_at", "2016-01-13 20:07:00.339694"]]
|
2657
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2658
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2659
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 20:07:00.340804"], ["updated_at", "2016-01-13 20:07:00.340804"]]
|
2660
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2661
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2662
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2663
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2664
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 20:07:00.342613"], ["updated_at", "2016-01-13 20:07:00.342613"]]
|
2665
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2666
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2667
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2668
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2669
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 20:07:00.344216"], ["updated_at", "2016-01-13 20:07:00.344216"]]
|
2670
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2671
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2672
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2673
|
+
Processing by UsersController#index as HTML
|
2674
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2675
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:07:00 UTC (0.0ms)
|
2676
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:07:00 UTC (0.5ms)
|
2677
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2678
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2679
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:07:00 UTC (0.0ms)
|
2680
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2681
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:07:00 UTC (0.5ms)
|
2682
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:07:00 UTC (0.0ms)
|
2683
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:07:00 UTC (0.3ms)
|
2684
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2685
|
+
Read fragment views/ (0.1ms)
|
2686
|
+
Rendered users/index.html.erb within layouts/application (4.2ms)
|
2687
|
+
Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.2ms)
|
2688
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2689
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2690
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2691
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-13 20:07:00.352448"], ["id", 1]]
|
2692
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2693
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2694
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2695
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2696
|
+
Processing by UsersController#index as HTML
|
2697
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2698
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 20:07:00 UTC (0.1ms)
|
2699
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2700
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2701
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:07:00 UTC (0.0ms)
|
2702
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2703
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 20:07:00 UTC (0.3ms)
|
2704
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 20:07:00 UTC (0.1ms)
|
2705
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
2706
|
+
Read fragment views/ (0.1ms)
|
2707
|
+
Rendered users/index.html.erb within layouts/application (3.2ms)
|
2708
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms)
|
2709
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2710
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2711
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2712
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2713
|
+
------------------------------------------------------------------------------
|
2714
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
2715
|
+
------------------------------------------------------------------------------
|
2716
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2717
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 20:07:00.360148"], ["updated_at", "2016-01-13 20:07:00.360148"]]
|
2718
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2719
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2720
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 20:07:00.361270"], ["updated_at", "2016-01-13 20:07:00.361270"]]
|
2721
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2722
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2723
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 20:07:00.362396"], ["updated_at", "2016-01-13 20:07:00.362396"]]
|
2724
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2725
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2726
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2727
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2728
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 20:07:00.364526"], ["updated_at", "2016-01-13 20:07:00.364526"]]
|
2729
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2730
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2731
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2732
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2733
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 20:07:00.367018"], ["updated_at", "2016-01-13 20:07:00.367018"]]
|
2734
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2735
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2736
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2737
|
+
Processing by UsersController#show as HTML
|
2738
|
+
Parameters: {"id"=>"1"}
|
2739
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2740
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-13 20:07:00 UTC (0.1ms)
|
2741
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-13 20:07:00 UTC (0.4ms)
|
2742
|
+
Rendered users/show.html.erb within layouts/application (1.1ms)
|
2743
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
|
2744
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2745
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 20:07:00.372791"], ["id", 1]]
|
2746
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2747
|
+
Processing by UsersController#show as HTML
|
2748
|
+
Parameters: {"id"=>"1"}
|
2749
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2750
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-13 20:07:00 UTC (0.0ms)
|
2751
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-13 20:07:00 UTC (0.3ms)
|
2752
|
+
Rendered users/show.html.erb within layouts/application (0.6ms)
|
2753
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
2754
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2755
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2756
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2757
|
+
--------------------------------------------------------
|
2758
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
2759
|
+
--------------------------------------------------------
|
2760
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2761
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:27:45.288875"], ["updated_at", "2016-01-14 09:27:45.288875"]]
|
2762
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2763
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2764
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2765
|
+
-------------------------------------------------------------------------------------------
|
2766
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
2767
|
+
-------------------------------------------------------------------------------------------
|
2768
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2769
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-14 09:27:45.325249"], ["updated_at", "2016-01-14 09:27:45.325249"]]
|
2770
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2771
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2772
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:27:45.326650"], ["updated_at", "2016-01-14 09:27:45.326650"]]
|
2773
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2774
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2775
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:27:45.332342"], ["updated_at", "2016-01-14 09:27:45.332342"]]
|
2776
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2777
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2778
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2779
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2780
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:27:45.343189"], ["updated_at", "2016-01-14 09:27:45.343189"]]
|
2781
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2782
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2783
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2784
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2785
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:27:45.345228"], ["updated_at", "2016-01-14 09:27:45.345228"]]
|
2786
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2787
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2788
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2789
|
+
Processing by UsersController#index as HTML
|
2790
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2791
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:27:45 UTC (0.1ms)
|
2792
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:27:45 UTC (0.5ms)
|
2793
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2794
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2795
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:27:45 UTC (0.0ms)
|
2796
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2797
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:27:45 UTC (0.4ms)
|
2798
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:27:45 UTC (0.0ms)
|
2799
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:27:45 UTC (0.3ms)
|
2800
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2801
|
+
Read fragment views/ (0.0ms)
|
2802
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
|
2803
|
+
Write fragment views/ (0.4ms)
|
2804
|
+
Rendered users/index.html.erb within layouts/application (7.2ms)
|
2805
|
+
Completed 200 OK in 148ms (Views: 147.0ms | ActiveRecord: 0.3ms)
|
2806
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2807
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2808
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2809
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-14 09:27:45.498601"], ["id", 1]]
|
2810
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2811
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2812
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2813
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2814
|
+
Processing by UsersController#index as HTML
|
2815
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2816
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:27:45 UTC (0.1ms)
|
2817
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2818
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2819
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:27:45 UTC (0.0ms)
|
2820
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2821
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:27:45 UTC (0.4ms)
|
2822
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:27:45 UTC (0.1ms)
|
2823
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2824
|
+
Read fragment views/ (0.1ms)
|
2825
|
+
Rendered users/index.html.erb within layouts/application (3.4ms)
|
2826
|
+
Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.5ms)
|
2827
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2828
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2829
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2830
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2831
|
+
------------------------------------------------------------------------------
|
2832
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
2833
|
+
------------------------------------------------------------------------------
|
2834
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2835
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-14 09:27:45.509076"], ["updated_at", "2016-01-14 09:27:45.509076"]]
|
2836
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2837
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2838
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:27:45.510297"], ["updated_at", "2016-01-14 09:27:45.510297"]]
|
2839
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2840
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2841
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:27:45.511501"], ["updated_at", "2016-01-14 09:27:45.511501"]]
|
2842
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2843
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2844
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2845
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2846
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:27:45.513638"], ["updated_at", "2016-01-14 09:27:45.513638"]]
|
2847
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2848
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2849
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2850
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2851
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:27:45.515388"], ["updated_at", "2016-01-14 09:27:45.515388"]]
|
2852
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2853
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2854
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2855
|
+
Processing by UsersController#show as HTML
|
2856
|
+
Parameters: {"id"=>"1"}
|
2857
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2858
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-14 09:27:45 UTC (0.1ms)
|
2859
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-14 09:27:45 UTC (0.5ms)
|
2860
|
+
Rendered users/show.html.erb within layouts/application (1.1ms)
|
2861
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
|
2862
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2863
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-14 09:27:45.520671"], ["id", 1]]
|
2864
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2865
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2866
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2867
|
+
----------------------------------------------------------------------------------------
|
2868
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
2869
|
+
----------------------------------------------------------------------------------------
|
2870
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2871
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:27:45.522561"], ["updated_at", "2016-01-14 09:27:45.522561"]]
|
2872
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2873
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2874
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-14 09:27:45.523587"], ["updated_at", "2016-01-14 09:27:45.523587"]]
|
2875
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2876
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2877
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:27:45.524650"], ["updated_at", "2016-01-14 09:27:45.524650"]]
|
2878
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2879
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2880
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2881
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2882
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:27:45.526425"], ["updated_at", "2016-01-14 09:27:45.526425"]]
|
2883
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2884
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2885
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2886
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2887
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:27:45.528177"], ["updated_at", "2016-01-14 09:27:45.528177"]]
|
2888
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2889
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2890
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2891
|
+
Processing by UsersController#index as HTML
|
2892
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2893
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:27:45 UTC (0.0ms)
|
2894
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:27:45 UTC (0.4ms)
|
2895
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2896
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2897
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:27:45 UTC (0.0ms)
|
2898
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2899
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:27:45 UTC (0.4ms)
|
2900
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:27:45 UTC (0.0ms)
|
2901
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:27:45 UTC (0.3ms)
|
2902
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
2903
|
+
Read fragment views/ (0.1ms)
|
2904
|
+
Rendered users/index.html.erb within layouts/application (4.1ms)
|
2905
|
+
Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.2ms)
|
2906
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2907
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:27:45.535985"], ["id", 1]]
|
2908
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2909
|
+
Processing by UsersController#index as HTML
|
2910
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2911
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:27:45 UTC (0.0ms)
|
2912
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:27:45 UTC (0.4ms)
|
2913
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2914
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2915
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:27:45 UTC (0.1ms)
|
2916
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:27:45 UTC (0.1ms)
|
2917
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2918
|
+
Read fragment views/ (0.1ms)
|
2919
|
+
Rendered users/index.html.erb within layouts/application (3.4ms)
|
2920
|
+
Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.4ms)
|
2921
|
+
Processing by UsersController#index as HTML
|
2922
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2923
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:27:45 UTC (0.1ms)
|
2924
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2925
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2926
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:27:45 UTC (0.1ms)
|
2927
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:27:45 UTC (0.1ms)
|
2928
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
2929
|
+
Read fragment views/ (0.1ms)
|
2930
|
+
Rendered users/index.html.erb within layouts/application (2.8ms)
|
2931
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.5ms)
|
2932
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2933
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2934
|
+
---------------------------
|
2935
|
+
ManageCacheTest: test_truth
|
2936
|
+
---------------------------
|
2937
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2938
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2939
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2940
|
+
----------------------------------------------------------------------------------------
|
2941
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
2942
|
+
----------------------------------------------------------------------------------------
|
2943
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2944
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:30:28.348180"], ["updated_at", "2016-01-14 09:30:28.348180"]]
|
2945
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2946
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2947
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-14 09:30:28.350630"], ["updated_at", "2016-01-14 09:30:28.350630"]]
|
2948
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2949
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2950
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:30:28.356207"], ["updated_at", "2016-01-14 09:30:28.356207"]]
|
2951
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2952
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2953
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2954
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2955
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:30:28.366552"], ["updated_at", "2016-01-14 09:30:28.366552"]]
|
2956
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2957
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2958
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2959
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2960
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:30:28.368328"], ["updated_at", "2016-01-14 09:30:28.368328"]]
|
2961
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2962
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2963
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2964
|
+
Processing by UsersController#index as HTML
|
2965
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2966
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:30:28 UTC (0.1ms)
|
2967
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:30:28 UTC (0.5ms)
|
2968
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
2969
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
2970
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:30:28 UTC (0.0ms)
|
2971
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2972
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:30:28 UTC (0.4ms)
|
2973
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:30:28 UTC (0.0ms)
|
2974
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:30:28 UTC (0.3ms)
|
2975
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
2976
|
+
Read fragment views/ (0.1ms)
|
2977
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 2]]
|
2978
|
+
Write fragment views/ (0.3ms)
|
2979
|
+
Rendered users/index.html.erb within layouts/application (6.4ms)
|
2980
|
+
Completed 200 OK in 112ms (Views: 111.5ms | ActiveRecord: 0.3ms)
|
2981
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2982
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-14 09:30:28.483976"], ["id", 1]]
|
2983
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2984
|
+
Processing by UsersController#index as HTML
|
2985
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2986
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:30:28 UTC (0.0ms)
|
2987
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:30:28 UTC (0.4ms)
|
2988
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
2989
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
2990
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:30:28 UTC (0.1ms)
|
2991
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:30:28 UTC (0.1ms)
|
2992
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
2993
|
+
Read fragment views/ (0.1ms)
|
2994
|
+
Rendered users/index.html.erb within layouts/application (3.1ms)
|
2995
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.5ms)
|
2996
|
+
Processing by UsersController#index as HTML
|
2997
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2998
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:30:28 UTC (0.1ms)
|
2999
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3000
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3001
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:30:28 UTC (0.1ms)
|
3002
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:30:28 UTC (0.1ms)
|
3003
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3004
|
+
Read fragment views/ (0.1ms)
|
3005
|
+
Rendered users/index.html.erb within layouts/application (2.3ms)
|
3006
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.6ms)
|
3007
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3008
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3009
|
+
------------------------------------------------------------------------------
|
3010
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
3011
|
+
------------------------------------------------------------------------------
|
3012
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3013
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:30:28.495936"], ["updated_at", "2016-01-14 09:30:28.495936"]]
|
3014
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3015
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3016
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-14 09:30:28.497112"], ["updated_at", "2016-01-14 09:30:28.497112"]]
|
3017
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3018
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3019
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:30:28.498238"], ["updated_at", "2016-01-14 09:30:28.498238"]]
|
3020
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3021
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3022
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3023
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3024
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:30:28.500057"], ["updated_at", "2016-01-14 09:30:28.500057"]]
|
3025
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3026
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3027
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3028
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3029
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:30:28.501594"], ["updated_at", "2016-01-14 09:30:28.501594"]]
|
3030
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3031
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3032
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3033
|
+
Processing by UsersController#show as HTML
|
3034
|
+
Parameters: {"id"=>"1"}
|
3035
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3036
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-14 09:30:28 UTC (0.0ms)
|
3037
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-14 09:30:28 UTC (0.4ms)
|
3038
|
+
Rendered users/show.html.erb within layouts/application (1.0ms)
|
3039
|
+
Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)
|
3040
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3041
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:30:28.506686"], ["id", 1]]
|
3042
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3043
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3044
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3045
|
+
-------------------------------------------------------------------------------------------
|
3046
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
3047
|
+
-------------------------------------------------------------------------------------------
|
3048
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3049
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-14 09:30:28.508446"], ["updated_at", "2016-01-14 09:30:28.508446"]]
|
3050
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3051
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3052
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:30:28.509384"], ["updated_at", "2016-01-14 09:30:28.509384"]]
|
3053
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3054
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3055
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:30:28.510358"], ["updated_at", "2016-01-14 09:30:28.510358"]]
|
3056
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3057
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3058
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3059
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3060
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:30:28.512115"], ["updated_at", "2016-01-14 09:30:28.512115"]]
|
3061
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3062
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3063
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3064
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3065
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:30:28.513650"], ["updated_at", "2016-01-14 09:30:28.513650"]]
|
3066
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3067
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3068
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3069
|
+
Processing by UsersController#index as HTML
|
3070
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3071
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:30:28 UTC (0.0ms)
|
3072
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:30:28 UTC (1.6ms)
|
3073
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3074
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3075
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:30:28 UTC (0.0ms)
|
3076
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3077
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:30:28 UTC (0.3ms)
|
3078
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:30:28 UTC (0.0ms)
|
3079
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:30:28 UTC (0.3ms)
|
3080
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
3081
|
+
Read fragment views/ (0.1ms)
|
3082
|
+
Rendered users/index.html.erb within layouts/application (5.1ms)
|
3083
|
+
Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.2ms)
|
3084
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3085
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3086
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3087
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-14 09:30:28.523385"], ["id", 1]]
|
3088
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3089
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3090
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3091
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3092
|
+
Processing by UsersController#index as HTML
|
3093
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
3094
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:30:28 UTC (0.1ms)
|
3095
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3096
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3097
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:30:28 UTC (0.0ms)
|
3098
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3099
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:30:28 UTC (0.5ms)
|
3100
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:30:28 UTC (0.1ms)
|
3101
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3102
|
+
Read fragment views/ (23.3ms)
|
3103
|
+
Rendered users/index.html.erb within layouts/application (26.7ms)
|
3104
|
+
Completed 200 OK in 28ms (Views: 27.4ms | ActiveRecord: 0.4ms)
|
3105
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3106
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3107
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3108
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3109
|
+
--------------------------------------------------------
|
3110
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
3111
|
+
--------------------------------------------------------
|
3112
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3113
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:30:28.557101"], ["updated_at", "2016-01-14 09:30:28.557101"]]
|
3114
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3115
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3116
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3117
|
+
---------------------------
|
3118
|
+
ManageCacheTest: test_truth
|
3119
|
+
---------------------------
|
3120
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3121
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3122
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3123
|
+
---------------------------
|
3124
|
+
ManageCacheTest: test_truth
|
3125
|
+
---------------------------
|
3126
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3127
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3128
|
+
------------------------------------------------------------------------------
|
3129
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
3130
|
+
------------------------------------------------------------------------------
|
3131
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3132
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:30:49.710131"], ["updated_at", "2016-01-14 09:30:49.710131"]]
|
3133
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3134
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3135
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-14 09:30:49.712839"], ["updated_at", "2016-01-14 09:30:49.712839"]]
|
3136
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3137
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3138
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:30:49.718120"], ["updated_at", "2016-01-14 09:30:49.718120"]]
|
3139
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3140
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3141
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3142
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3143
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:30:49.728864"], ["updated_at", "2016-01-14 09:30:49.728864"]]
|
3144
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3145
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3146
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3147
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3148
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:30:49.730659"], ["updated_at", "2016-01-14 09:30:49.730659"]]
|
3149
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3150
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3151
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3152
|
+
Processing by UsersController#show as HTML
|
3153
|
+
Parameters: {"id"=>"1"}
|
3154
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3155
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-14 09:30:49 UTC (0.1ms)
|
3156
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-14 09:30:49 UTC (0.5ms)
|
3157
|
+
Rendered users/show.html.erb within layouts/application (1.6ms)
|
3158
|
+
Completed 200 OK in 149ms (Views: 147.1ms | ActiveRecord: 0.0ms)
|
3159
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3160
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:30:49.883403"], ["id", 1]]
|
3161
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3162
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
3163
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3164
|
+
-------------------------------------------------------------------------------------------
|
3165
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
3166
|
+
-------------------------------------------------------------------------------------------
|
3167
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3168
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-14 09:34:15.200868"], ["updated_at", "2016-01-14 09:34:15.200868"]]
|
3169
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3170
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3171
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:34:15.203004"], ["updated_at", "2016-01-14 09:34:15.203004"]]
|
3172
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3173
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3174
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:34:15.205064"], ["updated_at", "2016-01-14 09:34:15.205064"]]
|
3175
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3176
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3177
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3178
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3179
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:34:15.208552"], ["updated_at", "2016-01-14 09:34:15.208552"]]
|
3180
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3181
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3182
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3183
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3184
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:34:15.211820"], ["updated_at", "2016-01-14 09:34:15.211820"]]
|
3185
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3186
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3187
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3188
|
+
Processing by UsersController#index as HTML
|
3189
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3190
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:34:15 UTC (0.1ms)
|
3191
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:34:15 UTC (0.4ms)
|
3192
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3193
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3194
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:34:15 UTC (0.0ms)
|
3195
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3196
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:34:15 UTC (0.2ms)
|
3197
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:34:15 UTC (0.0ms)
|
3198
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:34:15 UTC (0.2ms)
|
3199
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
3200
|
+
Read fragment views/ (0.1ms)
|
3201
|
+
Rendered users/index.html.erb within layouts/application (5.2ms)
|
3202
|
+
Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.4ms)
|
3203
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3204
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3205
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3206
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-14 09:34:15.222591"], ["id", 1]]
|
3207
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3208
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3209
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3210
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3211
|
+
Processing by UsersController#index as HTML
|
3212
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
3213
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:34:15 UTC (0.1ms)
|
3214
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3215
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3216
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:34:15 UTC (0.0ms)
|
3217
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3218
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:34:15 UTC (0.4ms)
|
3219
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:34:15 UTC (0.1ms)
|
3220
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3221
|
+
Read fragment views/ (0.1ms)
|
3222
|
+
Rendered users/index.html.erb within layouts/application (3.6ms)
|
3223
|
+
Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.6ms)
|
3224
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3225
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3226
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
3227
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3228
|
+
----------------------------------------------------------------------------------------
|
3229
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
3230
|
+
----------------------------------------------------------------------------------------
|
3231
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3232
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:34:15.233402"], ["updated_at", "2016-01-14 09:34:15.233402"]]
|
3233
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3234
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3235
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-14 09:34:15.235179"], ["updated_at", "2016-01-14 09:34:15.235179"]]
|
3236
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3237
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3238
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:34:15.236371"], ["updated_at", "2016-01-14 09:34:15.236371"]]
|
3239
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3240
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3241
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3242
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3243
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:34:15.238280"], ["updated_at", "2016-01-14 09:34:15.238280"]]
|
3244
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3245
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3246
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3247
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3248
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:34:15.239918"], ["updated_at", "2016-01-14 09:34:15.239918"]]
|
3249
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3250
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3251
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3252
|
+
Processing by UsersController#index as HTML
|
3253
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
3254
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:34:15 UTC (0.0ms)
|
3255
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:34:15 UTC (0.4ms)
|
3256
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3257
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3258
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:34:15 UTC (0.0ms)
|
3259
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3260
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:34:15 UTC (0.2ms)
|
3261
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:34:15 UTC (0.0ms)
|
3262
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:34:15 UTC (0.2ms)
|
3263
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3264
|
+
Read fragment views/ (0.1ms)
|
3265
|
+
Rendered users/index.html.erb within layouts/application (3.6ms)
|
3266
|
+
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)
|
3267
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3268
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:34:15.246820"], ["id", 1]]
|
3269
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3270
|
+
Processing by UsersController#index as HTML
|
3271
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
3272
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:34:15 UTC (0.0ms)
|
3273
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:34:15 UTC (0.3ms)
|
3274
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3275
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3276
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:34:15 UTC (0.1ms)
|
3277
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:34:15 UTC (0.1ms)
|
3278
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
3279
|
+
Read fragment views/ (0.1ms)
|
3280
|
+
Rendered users/index.html.erb within layouts/application (2.7ms)
|
3281
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms)
|
3282
|
+
Processing by UsersController#index as HTML
|
3283
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
3284
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:34:15 UTC (0.1ms)
|
3285
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3286
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3287
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:34:15 UTC (0.1ms)
|
3288
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:34:15 UTC (0.1ms)
|
3289
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
3290
|
+
Read fragment views/ (0.1ms)
|
3291
|
+
Rendered users/index.html.erb within layouts/application (2.3ms)
|
3292
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.4ms)
|
3293
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3294
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3295
|
+
--------------------------------------------------------
|
3296
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
3297
|
+
--------------------------------------------------------
|
3298
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3299
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-14 09:34:15.256146"], ["updated_at", "2016-01-14 09:34:15.256146"]]
|
3300
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3301
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3302
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3303
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3304
|
+
------------------------------------------------------------------------------
|
3305
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
3306
|
+
------------------------------------------------------------------------------
|
3307
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3308
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:34:52.108263"], ["updated_at", "2016-01-14 09:34:52.108263"]]
|
3309
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3310
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3311
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-14 09:34:52.111744"], ["updated_at", "2016-01-14 09:34:52.111744"]]
|
3312
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3313
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3314
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3315
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3316
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:34:52.132966"], ["updated_at", "2016-01-14 09:34:52.132966"]]
|
3317
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3318
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3319
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3320
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3321
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:34:52.135102"], ["updated_at", "2016-01-14 09:34:52.135102"]]
|
3322
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3323
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3324
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3325
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3326
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:34:52.137212"], ["updated_at", "2016-01-14 09:34:52.137212"]]
|
3327
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3328
|
+
Processing by UsersController#show as HTML
|
3329
|
+
Parameters: {"id"=>"1"}
|
3330
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3331
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-14 09:34:52 UTC (0.1ms)
|
3332
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-14 09:34:52 UTC (0.5ms)
|
3333
|
+
Rendered users/show.html.erb within layouts/application (1.6ms)
|
3334
|
+
Completed 200 OK in 151ms (Views: 148.9ms | ActiveRecord: 0.0ms)
|
3335
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3336
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:34:52.291466"], ["id", 1]]
|
3337
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3338
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
3339
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3340
|
+
----------------------------------------------------------------------------------------
|
3341
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
3342
|
+
----------------------------------------------------------------------------------------
|
3343
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3344
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-14 09:35:40.559683"], ["updated_at", "2016-01-14 09:35:40.559683"]]
|
3345
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3346
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3347
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:35:40.563430"], ["updated_at", "2016-01-14 09:35:40.563430"]]
|
3348
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3349
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3350
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3351
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3352
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:35:40.569117"], ["updated_at", "2016-01-14 09:35:40.569117"]]
|
3353
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3354
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3355
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3356
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3357
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:35:40.573200"], ["updated_at", "2016-01-14 09:35:40.573200"]]
|
3358
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3359
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3360
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3361
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3362
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:35:40.576475"], ["updated_at", "2016-01-14 09:35:40.576475"]]
|
3363
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3364
|
+
Processing by UsersController#index as HTML
|
3365
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3366
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:35:40 UTC (0.1ms)
|
3367
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:35:40 UTC (0.6ms)
|
3368
|
+
[1m[35mShoe Load (0.2ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3369
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3370
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:35:40 UTC (0.1ms)
|
3371
|
+
[1m[35mShoe Load (0.2ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3372
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:35:40 UTC (0.6ms)
|
3373
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:35:40 UTC (0.1ms)
|
3374
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:35:40 UTC (0.7ms)
|
3375
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
3376
|
+
Read fragment views/ (0.1ms)
|
3377
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
|
3378
|
+
Write fragment views/ (0.7ms)
|
3379
|
+
Rendered users/index.html.erb within layouts/application (11.5ms)
|
3380
|
+
Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.6ms)
|
3381
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3382
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:35:40.593233"], ["id", 1]]
|
3383
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3384
|
+
Processing by UsersController#index as HTML
|
3385
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
3386
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:35:40 UTC (0.1ms)
|
3387
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:35:40 UTC (0.5ms)
|
3388
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3389
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3390
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:35:40 UTC (0.1ms)
|
3391
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:35:40 UTC (0.1ms)
|
3392
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
3393
|
+
Read fragment views/ (0.1ms)
|
3394
|
+
Rendered users/index.html.erb within layouts/application (4.5ms)
|
3395
|
+
Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.9ms)
|
3396
|
+
Processing by UsersController#index as HTML
|
3397
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
3398
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:35:40 UTC (0.1ms)
|
3399
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3400
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3401
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:35:40 UTC (0.1ms)
|
3402
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:35:40 UTC (0.1ms)
|
3403
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
3404
|
+
Read fragment views/ (0.1ms)
|
3405
|
+
Rendered users/index.html.erb within layouts/application (3.6ms)
|
3406
|
+
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 1.1ms)
|
3407
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3408
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3409
|
+
-------------------------------------------------------------------------------------------
|
3410
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
3411
|
+
-------------------------------------------------------------------------------------------
|
3412
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3413
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-14 09:35:40.607439"], ["updated_at", "2016-01-14 09:35:40.607439"]]
|
3414
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3415
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3416
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:35:40.608882"], ["updated_at", "2016-01-14 09:35:40.608882"]]
|
3417
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3418
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3419
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3420
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3421
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:35:40.611355"], ["updated_at", "2016-01-14 09:35:40.611355"]]
|
3422
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3423
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3424
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3425
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3426
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:35:40.613955"], ["updated_at", "2016-01-14 09:35:40.613955"]]
|
3427
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3428
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3429
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3430
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3431
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:35:40.616811"], ["updated_at", "2016-01-14 09:35:40.616811"]]
|
3432
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3433
|
+
Processing by UsersController#index as HTML
|
3434
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3435
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:35:40 UTC (0.1ms)
|
3436
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3437
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3438
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:35:40 UTC (0.1ms)
|
3439
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3440
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:35:40 UTC (0.5ms)
|
3441
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:35:40 UTC (0.1ms)
|
3442
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
3443
|
+
Read fragment views/ (0.1ms)
|
3444
|
+
Rendered users/index.html.erb within layouts/application (4.6ms)
|
3445
|
+
Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.2ms)
|
3446
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3447
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3448
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3449
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3450
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-14 09:35:40.627131"], ["id", 1]]
|
3451
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3452
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3453
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3454
|
+
Processing by UsersController#index as HTML
|
3455
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
3456
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:35:40 UTC (0.1ms)
|
3457
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3458
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3459
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:35:40 UTC (0.1ms)
|
3460
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3461
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:35:40 UTC (0.5ms)
|
3462
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:35:40 UTC (0.1ms)
|
3463
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3464
|
+
Read fragment views/ (0.1ms)
|
3465
|
+
Rendered users/index.html.erb within layouts/application (4.2ms)
|
3466
|
+
Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.5ms)
|
3467
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3468
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3469
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3470
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3471
|
+
---------------------------
|
3472
|
+
ManageCacheTest: test_truth
|
3473
|
+
---------------------------
|
3474
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3475
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3476
|
+
--------------------------------------------------------
|
3477
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
3478
|
+
--------------------------------------------------------
|
3479
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3480
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:35:40.638161"], ["updated_at", "2016-01-14 09:35:40.638161"]]
|
3481
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3482
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3483
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3484
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3485
|
+
----------------------------------------------------------------------------------------
|
3486
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
3487
|
+
----------------------------------------------------------------------------------------
|
3488
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3489
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:37:54.619013"], ["updated_at", "2016-01-14 09:37:54.619013"]]
|
3490
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3491
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3492
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-14 09:37:54.622267"], ["updated_at", "2016-01-14 09:37:54.622267"]]
|
3493
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3494
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3495
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3496
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3497
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:37:54.644289"], ["updated_at", "2016-01-14 09:37:54.644289"]]
|
3498
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3499
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3500
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3501
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3502
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:37:54.646426"], ["updated_at", "2016-01-14 09:37:54.646426"]]
|
3503
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3504
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3505
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3506
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3507
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:37:54.648247"], ["updated_at", "2016-01-14 09:37:54.648247"]]
|
3508
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3509
|
+
Processing by UsersController#index as HTML
|
3510
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
3511
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:37:54 UTC (0.1ms)
|
3512
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:37:54 UTC (0.5ms)
|
3513
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3514
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3515
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:37:54 UTC (0.0ms)
|
3516
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3517
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:37:54 UTC (0.3ms)
|
3518
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:37:54 UTC (0.1ms)
|
3519
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:37:54 UTC (0.3ms)
|
3520
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3521
|
+
Read fragment views/ (0.0ms)
|
3522
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 2]]
|
3523
|
+
Write fragment views/ (0.3ms)
|
3524
|
+
Rendered users/index.html.erb within layouts/application (6.6ms)
|
3525
|
+
Completed 200 OK in 157ms (Views: 156.4ms | ActiveRecord: 0.3ms)
|
3526
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3527
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-14 09:37:54.808426"], ["id", 1]]
|
3528
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3529
|
+
Processing by UsersController#index as HTML
|
3530
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3531
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:37:54 UTC (0.0ms)
|
3532
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:37:54 UTC (0.4ms)
|
3533
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3534
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3535
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:37:54 UTC (0.1ms)
|
3536
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:37:54 UTC (0.1ms)
|
3537
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3538
|
+
Read fragment views/ (0.1ms)
|
3539
|
+
Rendered users/index.html.erb within layouts/application (3.0ms)
|
3540
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms)
|
3541
|
+
Processing by UsersController#index as HTML
|
3542
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3543
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:37:54 UTC (0.1ms)
|
3544
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3545
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3546
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:37:54 UTC (0.1ms)
|
3547
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:37:54 UTC (0.1ms)
|
3548
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3549
|
+
Read fragment views/ (0.1ms)
|
3550
|
+
Rendered users/index.html.erb within layouts/application (2.3ms)
|
3551
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.6ms)
|
3552
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3553
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3554
|
+
------------------------------------------------------------------------------
|
3555
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
3556
|
+
------------------------------------------------------------------------------
|
3557
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3558
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:37:54.819918"], ["updated_at", "2016-01-14 09:37:54.819918"]]
|
3559
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3560
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3561
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-14 09:37:54.820909"], ["updated_at", "2016-01-14 09:37:54.820909"]]
|
3562
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3563
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3564
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3565
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3566
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:37:54.822526"], ["updated_at", "2016-01-14 09:37:54.822526"]]
|
3567
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3568
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3569
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3570
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3571
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:37:54.824253"], ["updated_at", "2016-01-14 09:37:54.824253"]]
|
3572
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3573
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3574
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3575
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3576
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:37:54.825852"], ["updated_at", "2016-01-14 09:37:54.825852"]]
|
3577
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3578
|
+
Processing by UsersController#show as HTML
|
3579
|
+
Parameters: {"id"=>"1"}
|
3580
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3581
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-14 09:37:54 UTC (0.0ms)
|
3582
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-14 09:37:54 UTC (0.4ms)
|
3583
|
+
Rendered users/show.html.erb within layouts/application (1.0ms)
|
3584
|
+
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
|
3585
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3586
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:39:39.968273"], ["id", 1]]
|
3587
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3588
|
+
Processing by UsersController#show as HTML
|
3589
|
+
Parameters: {"id"=>"1"}
|
3590
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3591
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-14 09:39:39 UTC (0.1ms)
|
3592
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-14 09:39:39 UTC (0.9ms)
|
3593
|
+
Rendered users/show.html.erb within layouts/application (1.6ms)
|
3594
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
|
3595
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
3596
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3597
|
+
-------------------------------------------------------------------------------------------
|
3598
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
3599
|
+
-------------------------------------------------------------------------------------------
|
3600
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3601
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:41:49.369216"], ["updated_at", "2016-01-14 09:41:49.369216"]]
|
3602
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3603
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3604
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-14 09:41:49.371269"], ["updated_at", "2016-01-14 09:41:49.371269"]]
|
3605
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3606
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3607
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3608
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3609
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 09:41:49.374886"], ["updated_at", "2016-01-14 09:41:49.374886"]]
|
3610
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3611
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3612
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3613
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3614
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 09:41:49.376906"], ["updated_at", "2016-01-14 09:41:49.376906"]]
|
3615
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3616
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3617
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3618
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3619
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 09:41:49.378703"], ["updated_at", "2016-01-14 09:41:49.378703"]]
|
3620
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3621
|
+
Processing by UsersController#index as HTML
|
3622
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
3623
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:41:49 UTC (0.1ms)
|
3624
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:41:49 UTC (0.5ms)
|
3625
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3626
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3627
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:41:49 UTC (0.1ms)
|
3628
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3629
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:41:49 UTC (0.4ms)
|
3630
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:41:49 UTC (0.0ms)
|
3631
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:41:49 UTC (0.4ms)
|
3632
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3633
|
+
Read fragment views/ (0.1ms)
|
3634
|
+
Rendered users/index.html.erb within layouts/application (5.0ms)
|
3635
|
+
Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.2ms)
|
3636
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3637
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3638
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3639
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3640
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-14 09:41:49.388110"], ["id", 1]]
|
3641
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3642
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3643
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3644
|
+
Processing by UsersController#index as HTML
|
3645
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3646
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:41:49 UTC (0.1ms)
|
3647
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3648
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3649
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:41:49 UTC (0.0ms)
|
3650
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3651
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 09:41:49 UTC (0.4ms)
|
3652
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 09:41:49 UTC (0.1ms)
|
3653
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
3654
|
+
Read fragment views/ (0.1ms)
|
3655
|
+
Rendered users/index.html.erb within layouts/application (3.7ms)
|
3656
|
+
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.4ms)
|
3657
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3658
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3659
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3660
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3661
|
+
--------------------------------------------------------
|
3662
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
3663
|
+
--------------------------------------------------------
|
3664
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3665
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-14 09:41:49.397890"], ["updated_at", "2016-01-14 09:41:49.397890"]]
|
3666
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3667
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
3668
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3669
|
+
---------------------------
|
3670
|
+
ManageCacheTest: test_truth
|
3671
|
+
---------------------------
|
3672
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3673
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3674
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3675
|
+
------------------------------------------------------------------------------
|
3676
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
3677
|
+
------------------------------------------------------------------------------
|
3678
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3679
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 10:20:56.779414"], ["updated_at", "2016-01-14 10:20:56.779414"]]
|
3680
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3681
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3682
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-14 10:20:56.782386"], ["updated_at", "2016-01-14 10:20:56.782386"]]
|
3683
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3684
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3685
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3686
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3687
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 10:20:56.797258"], ["updated_at", "2016-01-14 10:20:56.797258"]]
|
3688
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3689
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3690
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3691
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3692
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 10:20:56.799311"], ["updated_at", "2016-01-14 10:20:56.799311"]]
|
3693
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3694
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3695
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3696
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3697
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 10:20:56.801043"], ["updated_at", "2016-01-14 10:20:56.801043"]]
|
3698
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3699
|
+
Processing by UsersController#show as HTML
|
3700
|
+
Parameters: {"id"=>"1"}
|
3701
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3702
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-14 10:20:56 UTC (0.1ms)
|
3703
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-14 10:20:56 UTC (0.5ms)
|
3704
|
+
Rendered users/show.html.erb within layouts/application (1.6ms)
|
3705
|
+
Completed 200 OK in 147ms (Views: 145.5ms | ActiveRecord: 0.0ms)
|
3706
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3707
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 10:20:57.952865"], ["id", 1]]
|
3708
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3709
|
+
Processing by UsersController#show as HTML
|
3710
|
+
Parameters: {"id"=>"1"}
|
3711
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3712
|
+
Read fragment views/spec-show/user-1/updated_at-2016-01-14 10:20:57 UTC (0.1ms)
|
3713
|
+
Write fragment views/spec-show/user-1/updated_at-2016-01-14 10:20:57 UTC (0.9ms)
|
3714
|
+
Rendered users/show.html.erb within layouts/application (1.7ms)
|
3715
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
|
3716
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
3717
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3718
|
+
----------------------------------------------------------------------------------------
|
3719
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
3720
|
+
----------------------------------------------------------------------------------------
|
3721
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3722
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 10:20:57.963160"], ["updated_at", "2016-01-14 10:20:57.963160"]]
|
3723
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3724
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3725
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-14 10:20:57.965524"], ["updated_at", "2016-01-14 10:20:57.965524"]]
|
3726
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3727
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3728
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3729
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3730
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 10:20:57.968813"], ["updated_at", "2016-01-14 10:20:57.968813"]]
|
3731
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3732
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3733
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3734
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3735
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 10:20:57.971250"], ["updated_at", "2016-01-14 10:20:57.971250"]]
|
3736
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3737
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3738
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3739
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3740
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 10:20:57.973595"], ["updated_at", "2016-01-14 10:20:57.973595"]]
|
3741
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3742
|
+
Processing by UsersController#index as HTML
|
3743
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
3744
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 10:20:57 UTC (0.1ms)
|
3745
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 10:20:57 UTC (0.6ms)
|
3746
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3747
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3748
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 10:20:57 UTC (0.1ms)
|
3749
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3750
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 10:20:57 UTC (0.5ms)
|
3751
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 10:20:57 UTC (0.1ms)
|
3752
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-14 10:20:57 UTC (0.4ms)
|
3753
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3754
|
+
Read fragment views/ (0.1ms)
|
3755
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 2]]
|
3756
|
+
Write fragment views/ (0.5ms)
|
3757
|
+
Rendered users/index.html.erb within layouts/application (8.0ms)
|
3758
|
+
Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.4ms)
|
3759
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3760
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-14 10:20:57.986113"], ["id", 1]]
|
3761
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3762
|
+
Processing by UsersController#index as HTML
|
3763
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3764
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 10:20:57 UTC (0.1ms)
|
3765
|
+
Write fragment views/spec-row_name/user-1/updated_at-2016-01-14 10:20:57 UTC (0.6ms)
|
3766
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3767
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3768
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 10:20:57 UTC (0.1ms)
|
3769
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 10:20:57 UTC (0.1ms)
|
3770
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3771
|
+
Read fragment views/ (0.1ms)
|
3772
|
+
Rendered users/index.html.erb within layouts/application (4.4ms)
|
3773
|
+
Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.6ms)
|
3774
|
+
Processing by UsersController#index as HTML
|
3775
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3776
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 10:20:57 UTC (0.1ms)
|
3777
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3778
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3779
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 10:20:57 UTC (0.1ms)
|
3780
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 10:20:57 UTC (0.1ms)
|
3781
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3782
|
+
Read fragment views/ (0.1ms)
|
3783
|
+
Rendered users/index.html.erb within layouts/application (3.2ms)
|
3784
|
+
Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.8ms)
|
3785
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3786
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3787
|
+
-------------------------------------------------------------------------------------------
|
3788
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
3789
|
+
-------------------------------------------------------------------------------------------
|
3790
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3791
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 10:20:57.999655"], ["updated_at", "2016-01-14 10:20:57.999655"]]
|
3792
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3793
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3794
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-14 10:20:58.000990"], ["updated_at", "2016-01-14 10:20:58.000990"]]
|
3795
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3796
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3797
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3798
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3799
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-14 10:20:58.003285"], ["updated_at", "2016-01-14 10:20:58.003285"]]
|
3800
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3801
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3802
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
3803
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3804
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-14 10:20:58.005414"], ["updated_at", "2016-01-14 10:20:58.005414"]]
|
3805
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3806
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3807
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
3808
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3809
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-14 10:20:58.007468"], ["updated_at", "2016-01-14 10:20:58.007468"]]
|
3810
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3811
|
+
Processing by UsersController#index as HTML
|
3812
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
3813
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 10:20:57 UTC (0.1ms)
|
3814
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3815
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3816
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 10:20:58 UTC (0.0ms)
|
3817
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3818
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 10:20:58 UTC (0.4ms)
|
3819
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 10:20:58 UTC (0.0ms)
|
3820
|
+
Write fragment views/spec-row_name/user-2/updated_at-2016-01-14 10:20:58 UTC (0.3ms)
|
3821
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
|
3822
|
+
Read fragment views/ (0.1ms)
|
3823
|
+
Rendered users/index.html.erb within layouts/application (3.5ms)
|
3824
|
+
Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.2ms)
|
3825
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3826
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3827
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3828
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3829
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-14 10:20:58.014730"], ["id", 1]]
|
3830
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3831
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
3832
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3833
|
+
Processing by UsersController#index as HTML
|
3834
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
3835
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 10:20:57 UTC (0.1ms)
|
3836
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3837
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3838
|
+
Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 10:20:58 UTC (0.1ms)
|
3839
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
3840
|
+
Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-14 10:20:58 UTC (0.5ms)
|
3841
|
+
Read fragment views/spec-row_name/user-2/updated_at-2016-01-14 10:20:58 UTC (0.1ms)
|
3842
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
3843
|
+
Read fragment views/ (0.1ms)
|
3844
|
+
Rendered users/index.html.erb within layouts/application (4.0ms)
|
3845
|
+
Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.4ms)
|
3846
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
3847
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
3848
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3849
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3850
|
+
--------------------------------------------------------
|
3851
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
3852
|
+
--------------------------------------------------------
|
3853
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3854
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-14 10:20:58.024763"], ["updated_at", "2016-01-14 10:20:58.024763"]]
|
3855
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3856
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
3857
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3858
|
+
---------------------------
|
3859
|
+
ManageCacheTest: test_truth
|
3860
|
+
---------------------------
|
3861
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|