manage_cache 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/lib/manage_cache/version.rb +1 -1
  3. data/lib/manage_cache.rb +3 -3
  4. data/test/dummy/db/development.sqlite3 +0 -0
  5. data/test/dummy/log/development.log +614 -0
  6. data/test/dummy/log/test.log +2247 -0
  7. data/test/dummy/test/controllers/users_controller_test.rb +11 -5
  8. data/test/dummy/tmp/cache/2CC/2D0/views%2F +2 -0
  9. data/test/dummy/tmp/cache/527/491/views%2Fspec-row_name%2Fuser-1%2Fupdated_at-2016-01-14+10%3A20%3A57+UTC +2 -0
  10. data/test/dummy/tmp/cache/528/731/views%2Fspec-row_name%2Fuser-2%2Fupdated_at-2016-01-14+10%3A20%3A57+UTC +2 -0
  11. data/test/dummy/tmp/cache/529/781/views%2Fspec-row_name%2Fuser-2%2Fupdated_at-2016-01-14+10%3A20%3A58+UTC +2 -0
  12. data/test/dummy/tmp/cache/52D/8B1/views%2Fspec-row_name%2Fuser-1%2Fupdated_at-2016-01-14+10%3A19%3A28+UTC +2 -0
  13. 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
  14. 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
  15. 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
  16. data/test/dummy/tmp/cache/sprockets/v3.0/09_lxM-eb2oUZWnlGLaq4F_i5h92ZObg36ae6gKq1i4.cache +1 -0
  17. data/test/dummy/tmp/cache/sprockets/v3.0/2sW6NMnj6fqDuDeMj9N8u0O_kfcyACbGT_bxWVLBSZ0.cache +1 -0
  18. data/test/dummy/tmp/cache/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  19. data/test/dummy/tmp/cache/sprockets/v3.0/8Lqz2M_JZndvJcmnZET75uPOyo75Jv4B3i0ZQImFJlM.cache +0 -0
  20. data/test/dummy/tmp/cache/sprockets/v3.0/9MxgZ11k1FnO5lx1r1HHNz5GnkAF3P5DOpS8p2oMyZQ.cache +1 -0
  21. data/test/dummy/tmp/cache/sprockets/v3.0/9d-nHTd-aCK04uRrii3hSfpYzj5iP2Ob1d-_qWKjCek.cache +1 -0
  22. data/test/dummy/tmp/cache/sprockets/v3.0/CRKJnPJGBJ_Dy0-QfKhF5WPh6Gj5skuy0TXmBjMTSnQ.cache +2 -0
  23. data/test/dummy/tmp/cache/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +2 -0
  24. data/test/dummy/tmp/cache/sprockets/v3.0/Dl-NUisCUKKISrWE7M2oFXVpPFicurw2Va50_nNMy3k.cache +0 -0
  25. data/test/dummy/tmp/cache/sprockets/v3.0/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +2 -0
  26. data/test/dummy/tmp/cache/sprockets/v3.0/GYYAJ3FkbQM0cLSTLqUzVyuWYL1B1AWg4FCEmXXUG9U.cache +0 -0
  27. data/test/dummy/tmp/cache/sprockets/v3.0/GkLvvxrkyX0_w9FNcSslwfEV_JzAAtRlVKM3dZAxI18.cache +0 -0
  28. data/test/dummy/tmp/cache/sprockets/v3.0/IcrjOgrUk68EJPgCdByEHzKfEKryUjeyKSWq-PEGf2E.cache +0 -0
  29. data/test/dummy/tmp/cache/sprockets/v3.0/K1DTLxe-bgF1wVbSJm2QUY_CMGj5J3FUTtHsoxl1EQc.cache +1 -0
  30. data/test/dummy/tmp/cache/sprockets/v3.0/K4HSx9qgV9xEpmTXd6xgKL4fYHWKC4MU_RY6n7TFk9Q.cache +1 -0
  31. data/test/dummy/tmp/cache/sprockets/v3.0/NwJZbK1pDbU-pMc7IsK2Rx1MwN4EaXyDMUKuzQCHPCw.cache +1 -0
  32. data/test/dummy/tmp/cache/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
  33. data/test/dummy/tmp/cache/sprockets/v3.0/SXVHiwpmgcQmM4FyGzKKwKiM3jCMr8EGhSJpQiC9wcQ.cache +1 -0
  34. data/test/dummy/tmp/cache/sprockets/v3.0/UBbOS5C2oSAcdKvW_Z-oEtU6_8rnuMx9M2G3o_5QN6s.cache +1 -0
  35. data/test/dummy/tmp/cache/sprockets/v3.0/Uviw7jE916HhqccasMRdQ5CTXoBqH7dxweEg_bsm3K0.cache +1 -0
  36. data/test/dummy/tmp/cache/sprockets/v3.0/VPOhaapUo-sv4VGkt6by3qUT2B4T2kSjaHb89uicvYU.cache +0 -0
  37. data/test/dummy/tmp/cache/sprockets/v3.0/a9sNeDvMqAwAX-rnnfZrdNjSIz_Ak1KVT1kNS8SeGas.cache +1 -0
  38. data/test/dummy/tmp/cache/sprockets/v3.0/eZXj2eM6sa6zSFHhekBC5TX_Pddob3sO7hyhYVAb0fg.cache +2 -0
  39. data/test/dummy/tmp/cache/sprockets/v3.0/evilMWS_uDxgvUtMe_HRyK3ZfZo7bBegojhsvLdjcKw.cache +0 -0
  40. data/test/dummy/tmp/cache/sprockets/v3.0/eyQ1Iet2dzYcWDsu5qBemC0D5l3jdLLgchA4fkh5nnc.cache +0 -0
  41. data/test/dummy/tmp/cache/sprockets/v3.0/g5ekayFy2lyNSg0qaf9pHIi9AUYJ8eKcPfhsV0yqkPU.cache +1 -0
  42. data/test/dummy/tmp/cache/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +2 -0
  43. data/test/dummy/tmp/cache/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
  44. data/test/dummy/tmp/cache/sprockets/v3.0/iDTnVSbZnIij5Xm4jkwCyIXAPDn8RwaRe5Ja8YPKibw.cache +2 -0
  45. data/test/dummy/tmp/cache/sprockets/v3.0/iHYDh87b9nTCgd6e7YCtB9CqNPhoxyyqir0EhBx1-Rk.cache +1 -0
  46. data/test/dummy/tmp/cache/sprockets/v3.0/kyugOtp1okMz23E1fAOMqsyMHj1vAxVX-UWy0S4ZEAg.cache +2 -0
  47. data/test/dummy/tmp/cache/sprockets/v3.0/mXy3FNW22ItExIRbbqYnT6XBDj9QYoqBC8ZzyFWncGs.cache +2 -0
  48. data/test/dummy/tmp/cache/sprockets/v3.0/oiA-NPgVz4-xBX3Ri3o3lAS3l-EKuTmQ7OdbfrVdtAc.cache +2 -0
  49. data/test/dummy/tmp/cache/sprockets/v3.0/ovnZOq_jVOpE2KrlsIEIX-KoxHk-acnpn9KcSJbfkfw.cache +0 -0
  50. data/test/dummy/tmp/cache/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
  51. data/test/dummy/tmp/cache/sprockets/v3.0/r-A0ga7LeDzW9Vsra2ECnPQdYszihD4iU_kddis_m9c.cache +2 -0
  52. data/test/dummy/tmp/cache/sprockets/v3.0/rtcJ_islohXm8x0bqaTIpW2nOttNweCIQw0qzQkEabo.cache +1 -0
  53. data/test/dummy/tmp/cache/sprockets/v3.0/tI6TANdxXMulmZuDkMCGk02plL26Vj9VGCuNvCZ8SyY.cache +1 -0
  54. data/test/dummy/tmp/cache/sprockets/v3.0/tbLteZ12v3ZDVzL-ACWn314an41wFJYQx3GCldsqR-w.cache +1 -0
  55. data/test/dummy/tmp/cache/sprockets/v3.0/vftuHuDXEagG2jsCk15VnJkFiSbkIBPZ59tyv5e0XRo.cache +0 -0
  56. data/test/dummy/tmp/cache/sprockets/v3.0/ydw-EtO01i7QnaD3kHyY0f5ol82z0etd9JYXcNRT0SA.cache +2 -0
  57. data/test/dummy/tmp/cache/sprockets/v3.0/zehql4552SVo4rZUU8Bpz_cxFIk74U7tZNmhhxX89ew.cache +0 -0
  58. data/test/dummy/tmp/pids/server.pid +1 -0
  59. metadata +106 -2
@@ -1612,3 +1612,2250 @@ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.5ms)
1612
1612
  Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1613
1613
   (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1614
1614
   (0.1ms) rollback transaction
1615
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1616
+  (0.1ms) begin transaction
1617
+ ---------------------------
1618
+ ManageCacheTest: test_truth
1619
+ ---------------------------
1620
+  (0.0ms) rollback transaction
1621
+  (0.0ms) begin transaction
1622
+ --------------------------------------------------------
1623
+ UserTest: test_cache_key_for_should_return_the_right_key
1624
+ --------------------------------------------------------
1625
+  (0.1ms) SAVEPOINT active_record_1
1626
+ SQL (0.7ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1628
+  (0.1ms) rollback transaction
1629
+  (0.1ms) begin transaction
1630
+ ----------------------------------------------------------------------------------------
1631
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
1632
+ ----------------------------------------------------------------------------------------
1633
+  (0.1ms) SAVEPOINT active_record_1
1634
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:29:14.859345"], ["updated_at", "2016-01-13 19:29:14.859345"]]
1635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1636
+  (0.0ms) SAVEPOINT active_record_1
1637
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1639
+  (0.0ms) SAVEPOINT active_record_1
1640
+ SQL (0.1ms) 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:29:14.867531"], ["updated_at", "2016-01-13 19:29:14.867531"]]
1641
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1642
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1644
+  (0.0ms) SAVEPOINT active_record_1
1645
+ SQL (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1647
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1648
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1649
+  (0.0ms) SAVEPOINT active_record_1
1650
+ SQL (0.0ms) 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:29:14.885206"], ["updated_at", "2016-01-13 19:29:14.885206"]]
1651
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1652
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1654
+ Processing by UsersController#index as HTML
1655
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1659
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1666
+ Read fragment views/ (0.0ms)
1667
+ Shoe Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
1672
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:29:15.067928"], ["id", 1]]
1673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1674
+ Processing by UsersController#index as HTML
1675
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1679
+  (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1690
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+  (0.1ms) rollback transaction
1698
+  (0.0ms) begin transaction
1699
+ -------------------------------------------------------------------------------------------
1700
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
1701
+ -------------------------------------------------------------------------------------------
1702
+  (0.0ms) SAVEPOINT active_record_1
1703
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:29:15.082854"], ["updated_at", "2016-01-13 19:29:15.082854"]]
1704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1705
+  (0.0ms) SAVEPOINT active_record_1
1706
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1708
+  (0.0ms) SAVEPOINT active_record_1
1709
+ SQL (0.0ms) 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:29:15.085134"], ["updated_at", "2016-01-13 19:29:15.085134"]]
1710
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1711
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1713
+  (0.0ms) SAVEPOINT active_record_1
1714
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1716
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1717
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1718
+  (0.0ms) SAVEPOINT active_record_1
1719
+ SQL (0.1ms) 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:29:15.088761"], ["updated_at", "2016-01-13 19:29:15.088761"]]
1720
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1721
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1723
+ Processing by UsersController#index as HTML
1724
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1728
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1735
+ Read fragment views/ (0.0ms)
1736
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1741
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1742
+  (0.0ms) SAVEPOINT active_record_1
1743
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 19:29:15.098356"], ["id", 1]]
1744
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1746
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1747
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1748
+ Processing by UsersController#index as HTML
1749
+ User Load (0.1ms) SELECT "users".* FROM "users"
1750
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:29:15 UTC (0.1ms)
1751
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1752
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1762
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1763
+  (0.1ms) rollback transaction
1764
+  (0.0ms) begin transaction
1765
+ ------------------------------------------------------------------------------
1766
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
1767
+ ------------------------------------------------------------------------------
1768
+  (0.0ms) SAVEPOINT active_record_1
1769
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:29:15.107095"], ["updated_at", "2016-01-13 19:29:15.107095"]]
1770
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1771
+  (0.0ms) SAVEPOINT active_record_1
1772
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1774
+  (0.0ms) SAVEPOINT active_record_1
1775
+ SQL (0.1ms) 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:29:15.109739"], ["updated_at", "2016-01-13 19:29:15.109739"]]
1776
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1777
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1779
+  (0.0ms) SAVEPOINT active_record_1
1780
+ SQL (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1782
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1784
+  (0.0ms) SAVEPOINT active_record_1
1785
+ SQL (0.0ms) 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:29:15.114082"], ["updated_at", "2016-01-13 19:29:15.114082"]]
1786
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1787
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1789
+ Processing by UsersController#show as HTML
1790
+ Parameters: {"id"=>"1"}
1791
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.0ms) SAVEPOINT active_record_1
1797
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:29:15.119574"], ["id", 1]]
1798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1799
+ Processing by UsersController#show as HTML
1800
+ Parameters: {"id"=>"1"}
1801
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) rollback transaction
1807
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1808
+  (0.1ms) begin transaction
1809
+ --------------------------------------------------------
1810
+ UserTest: test_cache_key_for_should_return_the_right_key
1811
+ --------------------------------------------------------
1812
+  (0.0ms) SAVEPOINT active_record_1
1813
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1815
+  (0.1ms) rollback transaction
1816
+  (0.1ms) begin transaction
1817
+ -------------------------------------------------------------------------------------------
1818
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
1819
+ -------------------------------------------------------------------------------------------
1820
+  (0.1ms) SAVEPOINT active_record_1
1821
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:30:40.156123"], ["updated_at", "2016-01-13 19:30:40.156123"]]
1822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1823
+  (0.0ms) SAVEPOINT active_record_1
1824
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1826
+  (0.0ms) SAVEPOINT active_record_1
1827
+ SQL (0.1ms) 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.162835"], ["updated_at", "2016-01-13 19:30:40.162835"]]
1828
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1829
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1831
+  (0.0ms) SAVEPOINT active_record_1
1832
+ SQL (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1834
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1835
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1836
+  (0.0ms) SAVEPOINT active_record_1
1837
+ SQL (0.0ms) 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.175777"], ["updated_at", "2016-01-13 19:30:40.175777"]]
1838
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1839
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1840
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1841
+ Processing by UsersController#index as HTML
1842
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1846
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1853
+ Read fragment views/ (0.1ms)
1854
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1859
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1860
+  (0.0ms) SAVEPOINT active_record_1
1861
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 19:30:40.330032"], ["id", 1]]
1862
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1864
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1865
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1866
+ Processing by UsersController#index as HTML
1867
+ User Load (0.1ms) SELECT "users".* FROM "users"
1868
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:30:40 UTC (0.1ms)
1869
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1870
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1880
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1881
+  (0.1ms) rollback transaction
1882
+  (0.0ms) begin transaction
1883
+ ----------------------------------------------------------------------------------------
1884
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
1885
+ ----------------------------------------------------------------------------------------
1886
+  (0.0ms) SAVEPOINT active_record_1
1887
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:30:40.339815"], ["updated_at", "2016-01-13 19:30:40.339815"]]
1888
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1889
+  (0.0ms) SAVEPOINT active_record_1
1890
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1892
+  (0.0ms) SAVEPOINT active_record_1
1893
+ SQL (0.0ms) 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.342059"], ["updated_at", "2016-01-13 19:30:40.342059"]]
1894
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1895
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1897
+  (0.0ms) SAVEPOINT active_record_1
1898
+ SQL (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1900
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1901
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1902
+  (0.0ms) SAVEPOINT active_record_1
1903
+ SQL (0.0ms) 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.345461"], ["updated_at", "2016-01-13 19:30:40.345461"]]
1904
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1905
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1907
+ Processing by UsersController#index as HTML
1908
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1912
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+  (0.0ms) SAVEPOINT active_record_1
1923
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:30:40.352882"], ["id", 1]]
1924
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1925
+ Processing by UsersController#index as HTML
1926
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1930
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users"
1939
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 19:30:40 UTC (0.1ms)
1940
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1941
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+  (0.1ms) rollback transaction
1949
+  (0.0ms) begin transaction
1950
+ ------------------------------------------------------------------------------
1951
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
1952
+ ------------------------------------------------------------------------------
1953
+  (0.0ms) SAVEPOINT active_record_1
1954
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1956
+  (0.0ms) SAVEPOINT active_record_1
1957
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 19:30:40.363313"], ["updated_at", "2016-01-13 19:30:40.363313"]]
1958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1959
+  (0.0ms) SAVEPOINT active_record_1
1960
+ SQL (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1962
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1964
+  (0.0ms) SAVEPOINT active_record_1
1965
+ SQL (0.1ms) 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.366895"], ["updated_at", "2016-01-13 19:30:40.366895"]]
1966
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1967
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1969
+  (0.0ms) SAVEPOINT active_record_1
1970
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1972
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1974
+ Processing by UsersController#show as HTML
1975
+ Parameters: {"id"=>"1"}
1976
+ User Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
1982
+ SQL (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:30:40.374235"], ["id", 1]]
1983
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1984
+ Processing by UsersController#show as HTML
1985
+ Parameters: {"id"=>"1"}
1986
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
1992
+  (0.0ms) begin transaction
1993
+ ---------------------------
1994
+ ManageCacheTest: test_truth
1995
+ ---------------------------
1996
+  (0.0ms) rollback transaction
1997
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1998
+  (0.1ms) begin transaction
1999
+ ---------------------------
2000
+ ManageCacheTest: test_truth
2001
+ ---------------------------
2002
+  (0.0ms) rollback transaction
2003
+  (0.0ms) begin transaction
2004
+ ----------------------------------------------------------------------------------------
2005
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
2006
+ ----------------------------------------------------------------------------------------
2007
+  (0.1ms) SAVEPOINT active_record_1
2008
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2010
+  (0.0ms) SAVEPOINT active_record_1
2011
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 19:36:20.572985"], ["updated_at", "2016-01-13 19:36:20.572985"]]
2012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2013
+  (0.0ms) SAVEPOINT active_record_1
2014
+ SQL (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2016
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2017
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2018
+  (0.0ms) SAVEPOINT active_record_1
2019
+ SQL (0.0ms) 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.588592"], ["updated_at", "2016-01-13 19:36:20.588592"]]
2020
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2021
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2023
+  (0.0ms) SAVEPOINT active_record_1
2024
+ SQL (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2026
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2028
+ Processing by UsersController#index as HTML
2029
+ User Load (0.1ms) 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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2033
+  (0.0ms) 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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
2044
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:36:20.735100"], ["id", 1]]
2045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2046
+ Processing by UsersController#index as HTML
2047
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2051
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2062
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+  (0.1ms) rollback transaction
2070
+  (0.0ms) begin transaction
2071
+ -------------------------------------------------------------------------------------------
2072
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
2073
+ -------------------------------------------------------------------------------------------
2074
+  (0.0ms) SAVEPOINT active_record_1
2075
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:36:20.746803"], ["updated_at", "2016-01-13 19:36:20.746803"]]
2076
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2077
+  (0.0ms) SAVEPOINT active_record_1
2078
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2080
+  (0.0ms) SAVEPOINT active_record_1
2081
+ SQL (0.0ms) 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.749206"], ["updated_at", "2016-01-13 19:36:20.749206"]]
2082
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2083
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2085
+  (0.0ms) SAVEPOINT active_record_1
2086
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2088
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2090
+  (0.0ms) SAVEPOINT active_record_1
2091
+ SQL (0.0ms) 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.752600"], ["updated_at", "2016-01-13 19:36:20.752600"]]
2092
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2093
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2094
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2095
+ Processing by UsersController#index as HTML
2096
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2100
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2111
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2112
+  (0.0ms) SAVEPOINT active_record_1
2113
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 19:36:20.760989"], ["id", 1]]
2114
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2116
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2117
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2118
+ Processing by UsersController#index as HTML
2119
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2122
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2132
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2133
+  (0.1ms) rollback transaction
2134
+  (0.0ms) begin transaction
2135
+ ------------------------------------------------------------------------------
2136
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
2137
+ ------------------------------------------------------------------------------
2138
+  (0.0ms) SAVEPOINT active_record_1
2139
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2141
+  (0.0ms) SAVEPOINT active_record_1
2142
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 19:36:20.769625"], ["updated_at", "2016-01-13 19:36:20.769625"]]
2143
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2144
+  (0.0ms) SAVEPOINT active_record_1
2145
+ SQL (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2147
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2149
+  (0.1ms) SAVEPOINT active_record_1
2150
+ SQL (0.1ms) 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.773272"], ["updated_at", "2016-01-13 19:36:20.773272"]]
2151
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2152
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2154
+  (0.0ms) SAVEPOINT active_record_1
2155
+ SQL (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2157
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2159
+ Processing by UsersController#show as HTML
2160
+ Parameters: {"id"=>"1"}
2161
+ User Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
2167
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:36:20.780719"], ["id", 1]]
2168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2169
+ Processing by UsersController#show as HTML
2170
+ Parameters: {"id"=>"1"}
2171
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
2177
+  (0.0ms) begin transaction
2178
+ --------------------------------------------------------
2179
+ UserTest: test_cache_key_for_should_return_the_right_key
2180
+ --------------------------------------------------------
2181
+  (0.0ms) SAVEPOINT active_record_1
2182
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2184
+  (0.1ms) rollback transaction
2185
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2186
+  (0.1ms) begin transaction
2187
+ --------------------------------------------------------
2188
+ UserTest: test_cache_key_for_should_return_the_right_key
2189
+ --------------------------------------------------------
2190
+  (0.0ms) SAVEPOINT active_record_1
2191
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2193
+  (0.1ms) rollback transaction
2194
+  (0.0ms) begin transaction
2195
+ ---------------------------
2196
+ ManageCacheTest: test_truth
2197
+ ---------------------------
2198
+  (0.0ms) rollback transaction
2199
+  (0.1ms) begin transaction
2200
+ ------------------------------------------------------------------------------
2201
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
2202
+ ------------------------------------------------------------------------------
2203
+  (0.1ms) SAVEPOINT active_record_1
2204
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:38:12.868375"], ["updated_at", "2016-01-13 19:38:12.868375"]]
2205
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2206
+  (0.0ms) SAVEPOINT active_record_1
2207
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2209
+  (0.0ms) SAVEPOINT active_record_1
2210
+ SQL (0.1ms) 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:38:12.874981"], ["updated_at", "2016-01-13 19:38:12.874981"]]
2211
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2212
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2214
+  (0.0ms) SAVEPOINT active_record_1
2215
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2217
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2218
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2219
+  (0.0ms) SAVEPOINT active_record_1
2220
+ SQL (0.0ms) 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:38:12.887346"], ["updated_at", "2016-01-13 19:38:12.887346"]]
2221
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2222
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2224
+ Processing by UsersController#show as HTML
2225
+ Parameters: {"id"=>"1"}
2226
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
2232
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:38:13.032619"], ["id", 1]]
2233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2234
+ Processing by UsersController#show as HTML
2235
+ Parameters: {"id"=>"1"}
2236
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) rollback transaction
2242
+  (0.0ms) begin transaction
2243
+ ----------------------------------------------------------------------------------------
2244
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
2245
+ ----------------------------------------------------------------------------------------
2246
+  (0.0ms) SAVEPOINT active_record_1
2247
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:38:13.037256"], ["updated_at", "2016-01-13 19:38:13.037256"]]
2248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2249
+  (0.0ms) SAVEPOINT active_record_1
2250
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2252
+  (0.0ms) SAVEPOINT active_record_1
2253
+ SQL (0.0ms) 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:38:13.039503"], ["updated_at", "2016-01-13 19:38:13.039503"]]
2254
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2255
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2256
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2257
+  (0.0ms) SAVEPOINT active_record_1
2258
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2260
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2262
+  (0.0ms) SAVEPOINT active_record_1
2263
+ SQL (0.1ms) 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:38:13.042841"], ["updated_at", "2016-01-13 19:38:13.042841"]]
2264
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2265
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2267
+ Processing by UsersController#index as HTML
2268
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2272
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
2279
+ Read fragment views/ (0.0ms)
2280
+ Shoe Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
2285
+ SQL (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 19:38:13.052361"], ["id", 1]]
2286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2287
+ Processing by UsersController#index as HTML
2288
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2292
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2303
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+  (0.1ms) rollback transaction
2311
+  (0.0ms) begin transaction
2312
+ -------------------------------------------------------------------------------------------
2313
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
2314
+ -------------------------------------------------------------------------------------------
2315
+  (0.0ms) SAVEPOINT active_record_1
2316
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 19:38:13.061626"], ["updated_at", "2016-01-13 19:38:13.061626"]]
2317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2318
+  (0.1ms) SAVEPOINT active_record_1
2319
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2321
+  (0.0ms) SAVEPOINT active_record_1
2322
+ SQL (0.1ms) 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:38:13.064846"], ["updated_at", "2016-01-13 19:38:13.064846"]]
2323
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2324
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2326
+  (0.0ms) SAVEPOINT active_record_1
2327
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2329
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2331
+  (0.0ms) SAVEPOINT active_record_1
2332
+ SQL (0.0ms) 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:38:13.069002"], ["updated_at", "2016-01-13 19:38:13.069002"]]
2333
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2334
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2336
+ Processing by UsersController#index as HTML
2337
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2341
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2352
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2353
+  (0.0ms) SAVEPOINT active_record_1
2354
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 19:38:13.076983"], ["id", 1]]
2355
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2357
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2358
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2359
+ Processing by UsersController#index as HTML
2360
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2363
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2373
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2374
+  (0.1ms) rollback transaction
2375
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2376
+  (0.1ms) begin transaction
2377
+ ---------------------------
2378
+ ManageCacheTest: test_truth
2379
+ ---------------------------
2380
+  (0.0ms) rollback transaction
2381
+  (0.0ms) begin transaction
2382
+ --------------------------------------------------------
2383
+ UserTest: test_cache_key_for_should_return_the_right_key
2384
+ --------------------------------------------------------
2385
+  (0.1ms) SAVEPOINT active_record_1
2386
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2388
+  (0.1ms) rollback transaction
2389
+  (0.0ms) begin transaction
2390
+ ------------------------------------------------------------------------------
2391
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
2392
+ ------------------------------------------------------------------------------
2393
+  (0.1ms) SAVEPOINT active_record_1
2394
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 20:03:49.428357"], ["updated_at", "2016-01-13 20:03:49.428357"]]
2395
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2396
+  (0.0ms) SAVEPOINT active_record_1
2397
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2399
+  (0.1ms) SAVEPOINT active_record_1
2400
+ SQL (0.1ms) 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:03:49.435962"], ["updated_at", "2016-01-13 20:03:49.435962"]]
2401
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2402
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2404
+  (0.0ms) SAVEPOINT active_record_1
2405
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2407
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2409
+  (0.0ms) SAVEPOINT active_record_1
2410
+ SQL (0.0ms) 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:03:49.448842"], ["updated_at", "2016-01-13 20:03:49.448842"]]
2411
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2412
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2414
+ Processing by UsersController#show as HTML
2415
+ Parameters: {"id"=>"1"}
2416
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
2422
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 20:03:49.603333"], ["id", 1]]
2423
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2424
+ Processing by UsersController#show as HTML
2425
+ Parameters: {"id"=>"1"}
2426
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) rollback transaction
2432
+  (0.0ms) begin transaction
2433
+ ----------------------------------------------------------------------------------------
2434
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
2435
+ ----------------------------------------------------------------------------------------
2436
+  (0.0ms) SAVEPOINT active_record_1
2437
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 20:03:49.608169"], ["updated_at", "2016-01-13 20:03:49.608169"]]
2438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2439
+  (0.0ms) SAVEPOINT active_record_1
2440
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2442
+  (0.0ms) SAVEPOINT active_record_1
2443
+ SQL (0.0ms) 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:03:49.610426"], ["updated_at", "2016-01-13 20:03:49.610426"]]
2444
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2445
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2447
+  (0.0ms) SAVEPOINT active_record_1
2448
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2450
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2452
+  (0.0ms) SAVEPOINT active_record_1
2453
+ SQL (0.0ms) 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:03:49.613788"], ["updated_at", "2016-01-13 20:03:49.613788"]]
2454
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2455
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2457
+ Processing by UsersController#index as HTML
2458
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2462
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
2469
+ Read fragment views/ (0.0ms)
2470
+ Shoe Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
2475
+ SQL (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 20:03:49.623342"], ["id", 1]]
2476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2477
+ Processing by UsersController#index as HTML
2478
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2482
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2493
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+  (0.1ms) rollback transaction
2501
+  (0.0ms) begin transaction
2502
+ -------------------------------------------------------------------------------------------
2503
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
2504
+ -------------------------------------------------------------------------------------------
2505
+  (0.0ms) SAVEPOINT active_record_1
2506
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 20:03:49.632641"], ["updated_at", "2016-01-13 20:03:49.632641"]]
2507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2508
+  (0.0ms) SAVEPOINT active_record_1
2509
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2511
+  (0.0ms) SAVEPOINT active_record_1
2512
+ SQL (0.1ms) 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:03:49.635751"], ["updated_at", "2016-01-13 20:03:49.635751"]]
2513
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2514
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2516
+  (0.0ms) SAVEPOINT active_record_1
2517
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2519
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2521
+  (0.0ms) SAVEPOINT active_record_1
2522
+ SQL (0.0ms) 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:03:49.639987"], ["updated_at", "2016-01-13 20:03:49.639987"]]
2523
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2524
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2526
+ Processing by UsersController#index as HTML
2527
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2531
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2542
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2543
+  (0.0ms) SAVEPOINT active_record_1
2544
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 20:03:49.648217"], ["id", 1]]
2545
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2547
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2548
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2549
+ Processing by UsersController#index as HTML
2550
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2553
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2563
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2564
+  (0.1ms) rollback transaction
2565
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2566
+  (0.1ms) begin transaction
2567
+ --------------------------------------------------------
2568
+ UserTest: test_cache_key_for_should_return_the_right_key
2569
+ --------------------------------------------------------
2570
+  (0.1ms) SAVEPOINT active_record_1
2571
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2573
+  (0.1ms) rollback transaction
2574
+  (0.0ms) begin transaction
2575
+ ---------------------------
2576
+ ManageCacheTest: test_truth
2577
+ ---------------------------
2578
+  (0.0ms) rollback transaction
2579
+  (0.0ms) begin transaction
2580
+ ----------------------------------------------------------------------------------------
2581
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
2582
+ ----------------------------------------------------------------------------------------
2583
+  (0.1ms) SAVEPOINT active_record_1
2584
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 20:07:00.151654"], ["updated_at", "2016-01-13 20:07:00.151654"]]
2585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2586
+  (0.0ms) SAVEPOINT active_record_1
2587
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2589
+  (0.1ms) SAVEPOINT active_record_1
2590
+ SQL (0.1ms) 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.158873"], ["updated_at", "2016-01-13 20:07:00.158873"]]
2591
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2592
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2594
+  (0.0ms) SAVEPOINT active_record_1
2595
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2597
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2599
+  (0.0ms) SAVEPOINT active_record_1
2600
+ SQL (0.0ms) 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.171557"], ["updated_at", "2016-01-13 20:07:00.171557"]]
2601
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2602
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2604
+ Processing by UsersController#index as HTML
2605
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2609
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
2616
+ Read fragment views/ (0.0ms)
2617
+ Shoe Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
2622
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 20:07:00.326781"], ["id", 1]]
2623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2624
+ Processing by UsersController#index as HTML
2625
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2629
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2640
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+  (0.1ms) rollback transaction
2648
+  (0.0ms) begin transaction
2649
+ -------------------------------------------------------------------------------------------
2650
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
2651
+ -------------------------------------------------------------------------------------------
2652
+  (0.0ms) SAVEPOINT active_record_1
2653
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 20:07:00.338432"], ["updated_at", "2016-01-13 20:07:00.338432"]]
2654
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2655
+  (0.0ms) SAVEPOINT active_record_1
2656
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2658
+  (0.0ms) SAVEPOINT active_record_1
2659
+ SQL (0.0ms) 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.340804"], ["updated_at", "2016-01-13 20:07:00.340804"]]
2660
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2661
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2663
+  (0.0ms) SAVEPOINT active_record_1
2664
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2666
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2668
+  (0.0ms) SAVEPOINT active_record_1
2669
+ SQL (0.0ms) 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.344216"], ["updated_at", "2016-01-13 20:07:00.344216"]]
2670
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2671
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2673
+ Processing by UsersController#index as HTML
2674
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2678
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2689
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2690
+  (0.0ms) SAVEPOINT active_record_1
2691
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 20:07:00.352448"], ["id", 1]]
2692
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2694
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2695
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2696
+ Processing by UsersController#index as HTML
2697
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2700
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2710
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2711
+  (0.1ms) rollback transaction
2712
+  (0.0ms) begin transaction
2713
+ ------------------------------------------------------------------------------
2714
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
2715
+ ------------------------------------------------------------------------------
2716
+  (0.0ms) SAVEPOINT active_record_1
2717
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2719
+  (0.0ms) SAVEPOINT active_record_1
2720
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 20:07:00.361270"], ["updated_at", "2016-01-13 20:07:00.361270"]]
2721
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2722
+  (0.0ms) SAVEPOINT active_record_1
2723
+ SQL (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2725
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2726
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2727
+  (0.1ms) SAVEPOINT active_record_1
2728
+ SQL (0.0ms) 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.364526"], ["updated_at", "2016-01-13 20:07:00.364526"]]
2729
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2730
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2732
+  (0.1ms) SAVEPOINT active_record_1
2733
+ SQL (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2735
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2737
+ Processing by UsersController#show as HTML
2738
+ Parameters: {"id"=>"1"}
2739
+ User Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
2745
+ SQL (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 20:07:00.372791"], ["id", 1]]
2746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2747
+ Processing by UsersController#show as HTML
2748
+ Parameters: {"id"=>"1"}
2749
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
2755
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2756
+  (0.1ms) begin transaction
2757
+ --------------------------------------------------------
2758
+ UserTest: test_cache_key_for_should_return_the_right_key
2759
+ --------------------------------------------------------
2760
+  (0.1ms) SAVEPOINT active_record_1
2761
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2763
+  (0.1ms) rollback transaction
2764
+  (0.1ms) begin transaction
2765
+ -------------------------------------------------------------------------------------------
2766
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
2767
+ -------------------------------------------------------------------------------------------
2768
+  (0.1ms) SAVEPOINT active_record_1
2769
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:27:45.325249"], ["updated_at", "2016-01-14 09:27:45.325249"]]
2770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2771
+  (0.0ms) SAVEPOINT active_record_1
2772
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2774
+  (0.0ms) SAVEPOINT active_record_1
2775
+ SQL (0.1ms) 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.332342"], ["updated_at", "2016-01-14 09:27:45.332342"]]
2776
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2777
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2779
+  (0.0ms) SAVEPOINT active_record_1
2780
+ SQL (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2782
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2784
+  (0.0ms) SAVEPOINT active_record_1
2785
+ SQL (0.1ms) 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.345228"], ["updated_at", "2016-01-14 09:27:45.345228"]]
2786
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2787
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2788
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2789
+ Processing by UsersController#index as HTML
2790
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2794
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
2801
+ Read fragment views/ (0.0ms)
2802
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2807
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2808
+  (0.0ms) SAVEPOINT active_record_1
2809
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-14 09:27:45.498601"], ["id", 1]]
2810
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2812
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2813
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2814
+ Processing by UsersController#index as HTML
2815
+ User Load (0.1ms) SELECT "users".* FROM "users"
2816
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:27:45 UTC (0.1ms)
2817
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2818
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2828
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2829
+  (0.1ms) rollback transaction
2830
+  (0.0ms) begin transaction
2831
+ ------------------------------------------------------------------------------
2832
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
2833
+ ------------------------------------------------------------------------------
2834
+  (0.0ms) SAVEPOINT active_record_1
2835
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:27:45.509076"], ["updated_at", "2016-01-14 09:27:45.509076"]]
2836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2837
+  (0.0ms) SAVEPOINT active_record_1
2838
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2840
+  (0.0ms) SAVEPOINT active_record_1
2841
+ SQL (0.0ms) 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.511501"], ["updated_at", "2016-01-14 09:27:45.511501"]]
2842
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2843
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2845
+  (0.0ms) SAVEPOINT active_record_1
2846
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2848
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2850
+  (0.0ms) SAVEPOINT active_record_1
2851
+ SQL (0.0ms) 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.515388"], ["updated_at", "2016-01-14 09:27:45.515388"]]
2852
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2853
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2855
+ Processing by UsersController#show as HTML
2856
+ Parameters: {"id"=>"1"}
2857
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.0ms) SAVEPOINT active_record_1
2863
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:27:45.520671"], ["id", 1]]
2864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2865
+  (0.1ms) rollback transaction
2866
+  (0.0ms) begin transaction
2867
+ ----------------------------------------------------------------------------------------
2868
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
2869
+ ----------------------------------------------------------------------------------------
2870
+  (0.0ms) SAVEPOINT active_record_1
2871
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2873
+  (0.0ms) SAVEPOINT active_record_1
2874
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:27:45.523587"], ["updated_at", "2016-01-14 09:27:45.523587"]]
2875
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2876
+  (0.0ms) SAVEPOINT active_record_1
2877
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2879
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2881
+  (0.0ms) SAVEPOINT active_record_1
2882
+ SQL (0.0ms) 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.526425"], ["updated_at", "2016-01-14 09:27:45.526425"]]
2883
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2884
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2886
+  (0.0ms) SAVEPOINT active_record_1
2887
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2889
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2891
+ Processing by UsersController#index as HTML
2892
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2896
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
2907
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:27:45.535985"], ["id", 1]]
2908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2909
+ Processing by UsersController#index as HTML
2910
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2914
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2925
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+  (0.1ms) rollback transaction
2933
+  (0.0ms) begin transaction
2934
+ ---------------------------
2935
+ ManageCacheTest: test_truth
2936
+ ---------------------------
2937
+  (0.0ms) rollback transaction
2938
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2939
+  (0.1ms) begin transaction
2940
+ ----------------------------------------------------------------------------------------
2941
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
2942
+ ----------------------------------------------------------------------------------------
2943
+  (0.0ms) SAVEPOINT active_record_1
2944
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2946
+  (0.0ms) SAVEPOINT active_record_1
2947
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:30:28.350630"], ["updated_at", "2016-01-14 09:30:28.350630"]]
2948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2949
+  (0.0ms) SAVEPOINT active_record_1
2950
+ SQL (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2952
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2954
+  (0.0ms) SAVEPOINT active_record_1
2955
+ SQL (0.1ms) 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.366552"], ["updated_at", "2016-01-14 09:30:28.366552"]]
2956
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2957
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2959
+  (0.0ms) SAVEPOINT active_record_1
2960
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2962
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
2963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2964
+ Processing by UsersController#index as HTML
2965
+ User Load (0.1ms) 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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2969
+  (0.0ms) 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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+  (0.0ms) SAVEPOINT active_record_1
2982
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:30:28.483976"], ["id", 1]]
2983
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2984
+ Processing by UsersController#index as HTML
2985
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
2989
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users"
2998
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:30:28 UTC (0.1ms)
2999
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3000
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+  (0.1ms) rollback transaction
3008
+  (0.0ms) begin transaction
3009
+ ------------------------------------------------------------------------------
3010
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
3011
+ ------------------------------------------------------------------------------
3012
+  (0.0ms) SAVEPOINT active_record_1
3013
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3015
+  (0.0ms) SAVEPOINT active_record_1
3016
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:30:28.497112"], ["updated_at", "2016-01-14 09:30:28.497112"]]
3017
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3018
+  (0.0ms) SAVEPOINT active_record_1
3019
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3021
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3023
+  (0.0ms) SAVEPOINT active_record_1
3024
+ SQL (0.1ms) 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.500057"], ["updated_at", "2016-01-14 09:30:28.500057"]]
3025
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3026
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3028
+  (0.0ms) SAVEPOINT active_record_1
3029
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3031
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3032
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3033
+ Processing by UsersController#show as HTML
3034
+ Parameters: {"id"=>"1"}
3035
+ User Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
3041
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:30:28.506686"], ["id", 1]]
3042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3043
+  (0.1ms) rollback transaction
3044
+  (0.0ms) begin transaction
3045
+ -------------------------------------------------------------------------------------------
3046
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
3047
+ -------------------------------------------------------------------------------------------
3048
+  (0.0ms) SAVEPOINT active_record_1
3049
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:30:28.508446"], ["updated_at", "2016-01-14 09:30:28.508446"]]
3050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3051
+  (0.0ms) SAVEPOINT active_record_1
3052
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3054
+  (0.0ms) SAVEPOINT active_record_1
3055
+ SQL (0.0ms) 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.510358"], ["updated_at", "2016-01-14 09:30:28.510358"]]
3056
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3057
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3059
+  (0.0ms) SAVEPOINT active_record_1
3060
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3062
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3063
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3064
+  (0.0ms) SAVEPOINT active_record_1
3065
+ SQL (0.0ms) 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.513650"], ["updated_at", "2016-01-14 09:30:28.513650"]]
3066
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3067
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3069
+ Processing by UsersController#index as HTML
3070
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3074
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3085
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3086
+  (0.0ms) SAVEPOINT active_record_1
3087
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-14 09:30:28.523385"], ["id", 1]]
3088
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3090
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3091
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3092
+ Processing by UsersController#index as HTML
3093
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3096
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3106
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3107
+  (0.1ms) rollback transaction
3108
+  (0.0ms) begin transaction
3109
+ --------------------------------------------------------
3110
+ UserTest: test_cache_key_for_should_return_the_right_key
3111
+ --------------------------------------------------------
3112
+  (0.0ms) SAVEPOINT active_record_1
3113
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3115
+  (0.1ms) rollback transaction
3116
+  (0.0ms) begin transaction
3117
+ ---------------------------
3118
+ ManageCacheTest: test_truth
3119
+ ---------------------------
3120
+  (0.0ms) rollback transaction
3121
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3122
+  (0.1ms) begin transaction
3123
+ ---------------------------
3124
+ ManageCacheTest: test_truth
3125
+ ---------------------------
3126
+  (0.0ms) rollback transaction
3127
+  (0.1ms) begin transaction
3128
+ ------------------------------------------------------------------------------
3129
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
3130
+ ------------------------------------------------------------------------------
3131
+  (0.1ms) SAVEPOINT active_record_1
3132
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3134
+  (0.0ms) SAVEPOINT active_record_1
3135
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:30:49.712839"], ["updated_at", "2016-01-14 09:30:49.712839"]]
3136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3137
+  (0.0ms) SAVEPOINT active_record_1
3138
+ SQL (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3140
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3142
+  (0.0ms) SAVEPOINT active_record_1
3143
+ SQL (0.0ms) 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:49.728864"], ["updated_at", "2016-01-14 09:30:49.728864"]]
3144
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3145
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3147
+  (0.0ms) SAVEPOINT active_record_1
3148
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3150
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3152
+ Processing by UsersController#show as HTML
3153
+ Parameters: {"id"=>"1"}
3154
+ User Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
3160
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:30:49.883403"], ["id", 1]]
3161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3162
+  (0.2ms) rollback transaction
3163
+  (0.1ms) begin transaction
3164
+ -------------------------------------------------------------------------------------------
3165
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
3166
+ -------------------------------------------------------------------------------------------
3167
+  (0.1ms) SAVEPOINT active_record_1
3168
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:34:15.200868"], ["updated_at", "2016-01-14 09:34:15.200868"]]
3169
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3170
+  (0.0ms) SAVEPOINT active_record_1
3171
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3173
+  (0.0ms) SAVEPOINT active_record_1
3174
+ SQL (0.1ms) 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.205064"], ["updated_at", "2016-01-14 09:34:15.205064"]]
3175
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3176
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3178
+  (0.0ms) SAVEPOINT active_record_1
3179
+ SQL (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3181
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3183
+  (0.1ms) SAVEPOINT active_record_1
3184
+ SQL (0.0ms) 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.211820"], ["updated_at", "2016-01-14 09:34:15.211820"]]
3185
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3186
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3188
+ Processing by UsersController#index as HTML
3189
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3193
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3204
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3205
+  (0.0ms) SAVEPOINT active_record_1
3206
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-14 09:34:15.222591"], ["id", 1]]
3207
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3209
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3210
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3211
+ Processing by UsersController#index as HTML
3212
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3215
+  (0.0ms) 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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3225
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3226
+  (0.2ms) rollback transaction
3227
+  (0.1ms) begin transaction
3228
+ ----------------------------------------------------------------------------------------
3229
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
3230
+ ----------------------------------------------------------------------------------------
3231
+  (0.1ms) SAVEPOINT active_record_1
3232
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3234
+  (0.0ms) SAVEPOINT active_record_1
3235
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:34:15.235179"], ["updated_at", "2016-01-14 09:34:15.235179"]]
3236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3237
+  (0.0ms) SAVEPOINT active_record_1
3238
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3240
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3242
+  (0.0ms) SAVEPOINT active_record_1
3243
+ SQL (0.0ms) 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.238280"], ["updated_at", "2016-01-14 09:34:15.238280"]]
3244
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3245
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3247
+  (0.0ms) SAVEPOINT active_record_1
3248
+ SQL (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3250
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3252
+ Processing by UsersController#index as HTML
3253
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3257
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+  (0.0ms) SAVEPOINT active_record_1
3268
+ SQL (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:34:15.246820"], ["id", 1]]
3269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3270
+ Processing by UsersController#index as HTML
3271
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3275
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3286
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+  (0.1ms) rollback transaction
3294
+  (0.0ms) begin transaction
3295
+ --------------------------------------------------------
3296
+ UserTest: test_cache_key_for_should_return_the_right_key
3297
+ --------------------------------------------------------
3298
+  (0.0ms) SAVEPOINT active_record_1
3299
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:34:15.256146"], ["updated_at", "2016-01-14 09:34:15.256146"]]
3300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3301
+  (0.1ms) rollback transaction
3302
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3303
+  (0.1ms) begin transaction
3304
+ ------------------------------------------------------------------------------
3305
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
3306
+ ------------------------------------------------------------------------------
3307
+  (0.1ms) SAVEPOINT active_record_1
3308
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3310
+  (0.0ms) SAVEPOINT active_record_1
3311
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:34:52.111744"], ["updated_at", "2016-01-14 09:34:52.111744"]]
3312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3313
+  (0.1ms) SAVEPOINT active_record_1
3314
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3315
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3316
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3318
+  (0.0ms) SAVEPOINT active_record_1
3319
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3320
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3321
+ SQL (0.0ms) 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:52.135102"], ["updated_at", "2016-01-14 09:34:52.135102"]]
3322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3323
+  (0.0ms) SAVEPOINT active_record_1
3324
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3325
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3326
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3328
+ Processing by UsersController#show as HTML
3329
+ Parameters: {"id"=>"1"}
3330
+ User Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
3336
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:34:52.291466"], ["id", 1]]
3337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3338
+  (0.4ms) rollback transaction
3339
+  (0.1ms) begin transaction
3340
+ ----------------------------------------------------------------------------------------
3341
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
3342
+ ----------------------------------------------------------------------------------------
3343
+  (0.1ms) SAVEPOINT active_record_1
3344
+ SQL (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:35:40.559683"], ["updated_at", "2016-01-14 09:35:40.559683"]]
3345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3346
+  (0.1ms) SAVEPOINT active_record_1
3347
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3349
+  (0.1ms) SAVEPOINT active_record_1
3350
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3351
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3352
+ SQL (0.1ms) 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:35:40.569117"], ["updated_at", "2016-01-14 09:35:40.569117"]]
3353
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3354
+  (0.1ms) SAVEPOINT active_record_1
3355
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3356
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3357
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3359
+  (0.1ms) SAVEPOINT active_record_1
3360
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3361
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3362
+ SQL (0.1ms) 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:35:40.576475"], ["updated_at", "2016-01-14 09:35:40.576475"]]
3363
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3364
+ Processing by UsersController#index as HTML
3365
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.2ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3369
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.2ms) 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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
3376
+ Read fragment views/ (0.1ms)
3377
+ Shoe Load (0.1ms) 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
+  (0.1ms) SAVEPOINT active_record_1
3382
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:35:40.593233"], ["id", 1]]
3383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3384
+ Processing by UsersController#index as HTML
3385
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3389
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3400
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+  (0.1ms) rollback transaction
3408
+  (0.1ms) begin transaction
3409
+ -------------------------------------------------------------------------------------------
3410
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
3411
+ -------------------------------------------------------------------------------------------
3412
+  (0.0ms) SAVEPOINT active_record_1
3413
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:35:40.607439"], ["updated_at", "2016-01-14 09:35:40.607439"]]
3414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3415
+  (0.0ms) SAVEPOINT active_record_1
3416
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3418
+  (0.0ms) SAVEPOINT active_record_1
3419
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3420
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3421
+ SQL (0.1ms) 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:35:40.611355"], ["updated_at", "2016-01-14 09:35:40.611355"]]
3422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3423
+  (0.0ms) SAVEPOINT active_record_1
3424
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3425
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3426
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3428
+  (0.1ms) SAVEPOINT active_record_1
3429
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3430
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3431
+ SQL (0.1ms) 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:35:40.616811"], ["updated_at", "2016-01-14 09:35:40.616811"]]
3432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3433
+ Processing by UsersController#index as HTML
3434
+ User Load (0.1ms) SELECT "users".* FROM "users"
3435
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:35:40 UTC (0.1ms)
3436
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3437
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3447
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3448
+  (0.0ms) SAVEPOINT active_record_1
3449
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3450
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-14 09:35:40.627131"], ["id", 1]]
3451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3452
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3453
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3454
+ Processing by UsersController#index as HTML
3455
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3458
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3468
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3469
+  (0.1ms) rollback transaction
3470
+  (0.0ms) begin transaction
3471
+ ---------------------------
3472
+ ManageCacheTest: test_truth
3473
+ ---------------------------
3474
+  (0.0ms) rollback transaction
3475
+  (0.0ms) begin transaction
3476
+ --------------------------------------------------------
3477
+ UserTest: test_cache_key_for_should_return_the_right_key
3478
+ --------------------------------------------------------
3479
+  (0.0ms) SAVEPOINT active_record_1
3480
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3482
+  (0.1ms) rollback transaction
3483
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3484
+  (0.1ms) begin transaction
3485
+ ----------------------------------------------------------------------------------------
3486
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
3487
+ ----------------------------------------------------------------------------------------
3488
+  (0.0ms) SAVEPOINT active_record_1
3489
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3491
+  (0.0ms) SAVEPOINT active_record_1
3492
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:37:54.622267"], ["updated_at", "2016-01-14 09:37:54.622267"]]
3493
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3494
+  (0.1ms) SAVEPOINT active_record_1
3495
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3496
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3497
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3499
+  (0.0ms) SAVEPOINT active_record_1
3500
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3501
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3502
+ SQL (0.0ms) 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:37:54.646426"], ["updated_at", "2016-01-14 09:37:54.646426"]]
3503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3504
+  (0.0ms) SAVEPOINT active_record_1
3505
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3506
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3507
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3509
+ Processing by UsersController#index as HTML
3510
+ User Load (0.1ms) 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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3514
+  (0.0ms) 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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+  (0.0ms) SAVEPOINT active_record_1
3527
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:37:54.808426"], ["id", 1]]
3528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3529
+ Processing by UsersController#index as HTML
3530
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3534
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users"
3543
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:37:54 UTC (0.1ms)
3544
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3545
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+  (0.1ms) rollback transaction
3553
+  (0.0ms) begin transaction
3554
+ ------------------------------------------------------------------------------
3555
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
3556
+ ------------------------------------------------------------------------------
3557
+  (0.0ms) SAVEPOINT active_record_1
3558
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3560
+  (0.0ms) SAVEPOINT active_record_1
3561
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:37:54.820909"], ["updated_at", "2016-01-14 09:37:54.820909"]]
3562
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3563
+  (0.0ms) SAVEPOINT active_record_1
3564
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3565
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3566
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3568
+  (0.0ms) SAVEPOINT active_record_1
3569
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3570
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3571
+ SQL (0.0ms) 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:37:54.824253"], ["updated_at", "2016-01-14 09:37:54.824253"]]
3572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3573
+  (0.0ms) SAVEPOINT active_record_1
3574
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3575
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3576
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3578
+ Processing by UsersController#show as HTML
3579
+ Parameters: {"id"=>"1"}
3580
+ User Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
3586
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 09:39:39.968273"], ["id", 1]]
3587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3588
+ Processing by UsersController#show as HTML
3589
+ Parameters: {"id"=>"1"}
3590
+ User Load (0.1ms) 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
+  (0.2ms) rollback transaction
3596
+  (0.1ms) begin transaction
3597
+ -------------------------------------------------------------------------------------------
3598
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
3599
+ -------------------------------------------------------------------------------------------
3600
+  (0.1ms) SAVEPOINT active_record_1
3601
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3603
+  (0.1ms) SAVEPOINT active_record_1
3604
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 09:41:49.371269"], ["updated_at", "2016-01-14 09:41:49.371269"]]
3605
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3606
+  (0.1ms) SAVEPOINT active_record_1
3607
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3608
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3609
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3611
+  (0.0ms) SAVEPOINT active_record_1
3612
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3613
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3614
+ SQL (0.0ms) 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:41:49.376906"], ["updated_at", "2016-01-14 09:41:49.376906"]]
3615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3616
+  (0.0ms) SAVEPOINT active_record_1
3617
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3618
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3619
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3621
+ Processing by UsersController#index as HTML
3622
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3626
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3637
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3638
+  (0.0ms) SAVEPOINT active_record_1
3639
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3640
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-14 09:41:49.388110"], ["id", 1]]
3641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3642
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3643
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3644
+ Processing by UsersController#index as HTML
3645
+ User Load (0.1ms) SELECT "users".* FROM "users"
3646
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 09:41:49 UTC (0.1ms)
3647
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3648
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3658
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3659
+  (0.1ms) rollback transaction
3660
+  (0.0ms) begin transaction
3661
+ --------------------------------------------------------
3662
+ UserTest: test_cache_key_for_should_return_the_right_key
3663
+ --------------------------------------------------------
3664
+  (0.0ms) SAVEPOINT active_record_1
3665
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 09:41:49.397890"], ["updated_at", "2016-01-14 09:41:49.397890"]]
3666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3667
+  (0.2ms) rollback transaction
3668
+  (0.0ms) begin transaction
3669
+ ---------------------------
3670
+ ManageCacheTest: test_truth
3671
+ ---------------------------
3672
+  (0.0ms) rollback transaction
3673
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3674
+  (0.1ms) begin transaction
3675
+ ------------------------------------------------------------------------------
3676
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
3677
+ ------------------------------------------------------------------------------
3678
+  (0.1ms) SAVEPOINT active_record_1
3679
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3681
+  (0.1ms) SAVEPOINT active_record_1
3682
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 10:20:56.782386"], ["updated_at", "2016-01-14 10:20:56.782386"]]
3683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3684
+  (0.1ms) SAVEPOINT active_record_1
3685
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3686
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3687
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3689
+  (0.0ms) SAVEPOINT active_record_1
3690
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3691
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3692
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3694
+  (0.0ms) SAVEPOINT active_record_1
3695
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3696
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3697
+ SQL (0.0ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3699
+ Processing by UsersController#show as HTML
3700
+ Parameters: {"id"=>"1"}
3701
+ User Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
3707
+ SQL (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 10:20:57.952865"], ["id", 1]]
3708
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3709
+ Processing by UsersController#show as HTML
3710
+ Parameters: {"id"=>"1"}
3711
+ User Load (0.1ms) 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
+  (0.2ms) rollback transaction
3717
+  (0.1ms) begin transaction
3718
+ ----------------------------------------------------------------------------------------
3719
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
3720
+ ----------------------------------------------------------------------------------------
3721
+  (0.1ms) SAVEPOINT active_record_1
3722
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3724
+  (0.1ms) SAVEPOINT active_record_1
3725
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 10:20:57.965524"], ["updated_at", "2016-01-14 10:20:57.965524"]]
3726
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3727
+  (0.0ms) SAVEPOINT active_record_1
3728
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3729
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3730
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3732
+  (0.0ms) SAVEPOINT active_record_1
3733
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3734
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3735
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3737
+  (0.0ms) SAVEPOINT active_record_1
3738
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3739
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3740
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3742
+ Processing by UsersController#index as HTML
3743
+ User Load (0.1ms) 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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3747
+  (0.0ms) 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
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+  (0.1ms) SAVEPOINT active_record_1
3760
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-14 10:20:57.986113"], ["id", 1]]
3761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3762
+ Processing by UsersController#index as HTML
3763
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3767
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users"
3776
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 10:20:57 UTC (0.1ms)
3777
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3778
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+  (0.1ms) rollback transaction
3786
+  (0.0ms) begin transaction
3787
+ -------------------------------------------------------------------------------------------
3788
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
3789
+ -------------------------------------------------------------------------------------------
3790
+  (0.0ms) SAVEPOINT active_record_1
3791
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3793
+  (0.0ms) SAVEPOINT active_record_1
3794
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-14 10:20:58.000990"], ["updated_at", "2016-01-14 10:20:58.000990"]]
3795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3796
+  (0.0ms) SAVEPOINT active_record_1
3797
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3798
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3799
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3801
+  (0.1ms) SAVEPOINT active_record_1
3802
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3803
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3804
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3806
+  (0.0ms) SAVEPOINT active_record_1
3807
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3808
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3809
+ SQL (0.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3811
+ Processing by UsersController#index as HTML
3812
+ User Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3815
+  (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.0ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3826
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3827
+  (0.0ms) SAVEPOINT active_record_1
3828
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3829
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-14 10:20:58.014730"], ["id", 1]]
3830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3831
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3832
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3833
+ Processing by UsersController#index as HTML
3834
+ User Load (0.1ms) SELECT "users".* FROM "users"
3835
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-14 10:20:57 UTC (0.1ms)
3836
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3837
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["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
+ Shoe Load (0.1ms) 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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["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
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
3847
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
3848
+  (0.1ms) rollback transaction
3849
+  (0.0ms) begin transaction
3850
+ --------------------------------------------------------
3851
+ UserTest: test_cache_key_for_should_return_the_right_key
3852
+ --------------------------------------------------------
3853
+  (0.0ms) SAVEPOINT active_record_1
3854
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-14 10:20:58.024763"], ["updated_at", "2016-01-14 10:20:58.024763"]]
3855
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3856
+  (0.1ms) rollback transaction
3857
+  (0.0ms) begin transaction
3858
+ ---------------------------
3859
+ ManageCacheTest: test_truth
3860
+ ---------------------------
3861
+  (0.0ms) rollback transaction