manage_cache 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +5 -0
  4. data/Rakefile +34 -0
  5. data/lib/manage_cache/version.rb +3 -0
  6. data/lib/manage_cache.rb +93 -0
  7. data/lib/tasks/manage_cache_tasks.rake +4 -0
  8. data/test/cache_dumper_test.rb +9 -0
  9. data/test/dummy/README.rdoc +28 -0
  10. data/test/dummy/Rakefile +6 -0
  11. data/test/dummy/app/assets/javascripts/application.js +13 -0
  12. data/test/dummy/app/assets/javascripts/shoes.js +2 -0
  13. data/test/dummy/app/assets/javascripts/users.js +2 -0
  14. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  15. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  16. data/test/dummy/app/assets/stylesheets/shoes.css +4 -0
  17. data/test/dummy/app/assets/stylesheets/users.css +4 -0
  18. data/test/dummy/app/controllers/application_controller.rb +5 -0
  19. data/test/dummy/app/controllers/users_controller.rb +9 -0
  20. data/test/dummy/app/helpers/application_helper.rb +2 -0
  21. data/test/dummy/app/models/shoe.rb +11 -0
  22. data/test/dummy/app/models/user.rb +11 -0
  23. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  24. data/test/dummy/app/views/users/index.html.erb +38 -0
  25. data/test/dummy/app/views/users/show.html.erb +3 -0
  26. data/test/dummy/bin/bundle +3 -0
  27. data/test/dummy/bin/rails +4 -0
  28. data/test/dummy/bin/rake +4 -0
  29. data/test/dummy/bin/setup +29 -0
  30. data/test/dummy/config/application.rb +26 -0
  31. data/test/dummy/config/boot.rb +5 -0
  32. data/test/dummy/config/database.yml +25 -0
  33. data/test/dummy/config/environment.rb +5 -0
  34. data/test/dummy/config/environments/development.rb +41 -0
  35. data/test/dummy/config/environments/production.rb +79 -0
  36. data/test/dummy/config/environments/test.rb +42 -0
  37. data/test/dummy/config/initializers/assets.rb +11 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  40. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  41. data/test/dummy/config/initializers/inflections.rb +16 -0
  42. data/test/dummy/config/initializers/mime_types.rb +4 -0
  43. data/test/dummy/config/initializers/session_store.rb +3 -0
  44. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  45. data/test/dummy/config/locales/en.yml +23 -0
  46. data/test/dummy/config/routes.rb +58 -0
  47. data/test/dummy/config/secrets.yml +22 -0
  48. data/test/dummy/config.ru +4 -0
  49. data/test/dummy/db/development.sqlite3 +0 -0
  50. data/test/dummy/db/migrate/20160108161921_create_users.rb +9 -0
  51. data/test/dummy/db/migrate/20160112120846_create_shoes.rb +11 -0
  52. data/test/dummy/db/schema.rb +30 -0
  53. data/test/dummy/db/test.sqlite3 +0 -0
  54. data/test/dummy/log/test.log +1614 -0
  55. data/test/dummy/public/404.html +67 -0
  56. data/test/dummy/public/422.html +67 -0
  57. data/test/dummy/public/500.html +66 -0
  58. data/test/dummy/public/favicon.ico +0 -0
  59. data/test/dummy/test/controllers/users_controller_test.rb +57 -0
  60. data/test/dummy/test/fixtures/shoes.yml +9 -0
  61. data/test/dummy/test/fixtures/users.yml +7 -0
  62. data/test/dummy/test/models/user_test.rb +14 -0
  63. data/test/test_helper.rb +21 -0
  64. metadata +191 -0
@@ -0,0 +1,1614 @@
1
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
+  (0.1ms) begin transaction
3
+ --------------------------------------------------------
4
+ UserTest: test_cache_key_for_should_return_the_right_key
5
+ --------------------------------------------------------
6
+  (0.1ms) SAVEPOINT active_record_1
7
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:51:01.489504"], ["updated_at", "2016-01-13 11:51:01.489504"]]
8
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9
+  (0.1ms) rollback transaction
10
+  (0.0ms) begin transaction
11
+ ---------------------------
12
+ ManageCacheTest: test_truth
13
+ ---------------------------
14
+  (0.0ms) rollback transaction
15
+  (0.0ms) begin transaction
16
+ -------------------------------------------------------------------------------------------
17
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
18
+ -------------------------------------------------------------------------------------------
19
+  (0.1ms) SAVEPOINT active_record_1
20
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:51:01.524216"], ["updated_at", "2016-01-13 11:51:01.524216"]]
21
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22
+  (0.0ms) SAVEPOINT active_record_1
23
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:01.525454"], ["updated_at", "2016-01-13 11:51:01.525454"]]
24
+  (0.1ms) RELEASE SAVEPOINT active_record_1
25
+  (0.0ms) SAVEPOINT active_record_1
26
+ 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 11:51:01.530949"], ["updated_at", "2016-01-13 11:51:01.530949"]]
27
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
28
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
29
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30
+  (0.0ms) SAVEPOINT active_record_1
31
+ 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 11:51:01.541812"], ["updated_at", "2016-01-13 11:51:01.541812"]]
32
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
33
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
34
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35
+  (0.1ms) SAVEPOINT active_record_1
36
+ 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 11:51:01.543685"], ["updated_at", "2016-01-13 11:51:01.543685"]]
37
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
38
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
39
+  (0.0ms) RELEASE SAVEPOINT active_record_1
40
+ Processing by UsersController#index as HTML
41
+ User Load (0.1ms) SELECT "users".* FROM "users"
42
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:01 UTC (0.1ms)
43
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:01 UTC (0.4ms)
44
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
45
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
46
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:01 UTC (0.1ms)
47
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
48
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:01 UTC (0.4ms)
49
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:01 UTC (0.1ms)
50
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:01 UTC (0.3ms)
51
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
52
+ Read fragment views/ (0.0ms)
53
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
54
+ Write fragment views/ (0.3ms)
55
+ Rendered users/index.html.erb within layouts/application (6.7ms)
56
+ Completed 200 OK in 154ms (Views: 153.2ms | ActiveRecord: 0.4ms)
57
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
58
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
59
+  (0.0ms) SAVEPOINT active_record_1
60
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 11:51:01.702251"], ["id", 1]]
61
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
62
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
64
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
65
+ Processing by UsersController#index as HTML
66
+ User Load (0.1ms) SELECT "users".* FROM "users"
67
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:01 UTC (0.1ms)
68
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
69
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
70
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:01 UTC (0.0ms)
71
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
72
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:01 UTC (0.4ms)
73
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:01 UTC (0.1ms)
74
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
75
+ Read fragment views/ (0.1ms)
76
+ Rendered users/index.html.erb within layouts/application (3.2ms)
77
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.5ms)
78
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
79
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
80
+  (0.1ms) rollback transaction
81
+  (0.0ms) begin transaction
82
+ ------------------------------------------------------------------------------
83
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
84
+ ------------------------------------------------------------------------------
85
+  (0.0ms) SAVEPOINT active_record_1
86
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:51:01.713085"], ["updated_at", "2016-01-13 11:51:01.713085"]]
87
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88
+  (0.0ms) SAVEPOINT active_record_1
89
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:01.714154"], ["updated_at", "2016-01-13 11:51:01.714154"]]
90
+  (0.0ms) RELEASE SAVEPOINT active_record_1
91
+  (0.0ms) SAVEPOINT active_record_1
92
+ 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 11:51:01.715168"], ["updated_at", "2016-01-13 11:51:01.715168"]]
93
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
94
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
95
+  (0.0ms) RELEASE SAVEPOINT active_record_1
96
+  (0.0ms) SAVEPOINT active_record_1
97
+ 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 11:51:01.716893"], ["updated_at", "2016-01-13 11:51:01.716893"]]
98
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
99
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
101
+  (0.0ms) SAVEPOINT active_record_1
102
+ 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 11:51:01.718613"], ["updated_at", "2016-01-13 11:51:01.718613"]]
103
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
104
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
106
+ Processing by UsersController#show as HTML
107
+ Parameters: {"id"=>"1"}
108
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
109
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 11:51:01 UTC (0.1ms)
110
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 11:51:01 UTC (0.4ms)
111
+ Rendered users/show.html.erb within layouts/application (1.0ms)
112
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
113
+  (0.1ms) SAVEPOINT active_record_1
114
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:51:01.723726"], ["id", 1]]
115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
116
+ Processing by UsersController#show as HTML
117
+ Parameters: {"id"=>"1"}
118
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
119
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 11:51:01 UTC (0.0ms)
120
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 11:51:01 UTC (0.4ms)
121
+ Rendered users/show.html.erb within layouts/application (0.7ms)
122
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
123
+  (0.1ms) rollback transaction
124
+  (0.0ms) begin transaction
125
+ ----------------------------------------------------------------------------------------
126
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
127
+ ----------------------------------------------------------------------------------------
128
+  (0.0ms) SAVEPOINT active_record_1
129
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:51:01.727827"], ["updated_at", "2016-01-13 11:51:01.727827"]]
130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131
+  (0.0ms) SAVEPOINT active_record_1
132
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:01.728851"], ["updated_at", "2016-01-13 11:51:01.728851"]]
133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
134
+  (0.0ms) SAVEPOINT active_record_1
135
+ 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 11:51:01.729906"], ["updated_at", "2016-01-13 11:51:01.729906"]]
136
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
137
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
138
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139
+  (0.0ms) SAVEPOINT active_record_1
140
+ 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 11:51:01.731642"], ["updated_at", "2016-01-13 11:51:01.731642"]]
141
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
142
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
143
+  (0.0ms) RELEASE SAVEPOINT active_record_1
144
+  (0.0ms) SAVEPOINT active_record_1
145
+ 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 11:51:01.733172"], ["updated_at", "2016-01-13 11:51:01.733172"]]
146
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
147
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
149
+ Processing by UsersController#index as HTML
150
+ User Load (0.2ms) SELECT "users".* FROM "users"
151
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:01 UTC (0.2ms)
152
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:01 UTC (0.8ms)
153
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
154
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
155
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:01 UTC (0.1ms)
156
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
157
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:01 UTC (0.7ms)
158
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:01 UTC (0.1ms)
159
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:01 UTC (0.4ms)
160
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
161
+ Read fragment views/ (0.0ms)
162
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
163
+ Write fragment views/ (0.4ms)
164
+ Rendered users/index.html.erb within layouts/application (8.0ms)
165
+ Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.4ms)
166
+  (0.1ms) SAVEPOINT active_record_1
167
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:51:05.542018"], ["id", 1]]
168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
169
+ Processing by UsersController#index as HTML
170
+ User Load (0.1ms) SELECT "users".* FROM "users"
171
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:05 UTC (0.1ms)
172
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:05 UTC (0.5ms)
173
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
174
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
175
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:01 UTC (0.1ms)
176
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:01 UTC (0.1ms)
177
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
178
+ Read fragment views/ (0.1ms)
179
+ Rendered users/index.html.erb within layouts/application (3.8ms)
180
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.6ms)
181
+ Processing by UsersController#index as HTML
182
+ User Load (0.1ms) SELECT "users".* FROM "users"
183
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:05 UTC (0.1ms)
184
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
185
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
186
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:01 UTC (0.1ms)
187
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:01 UTC (0.1ms)
188
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
189
+ Read fragment views/ (0.1ms)
190
+ Rendered users/index.html.erb within layouts/application (2.9ms)
191
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.8ms)
192
+  (0.1ms) rollback transaction
193
+  (0.0ms) begin transaction
194
+ -----------------------------------------
195
+ ShoesControllerTest: test_should_get_edit
196
+ -----------------------------------------
197
+  (0.1ms) SAVEPOINT active_record_1
198
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.557292"], ["updated_at", "2016-01-13 11:51:05.557292"]]
199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
200
+  (0.0ms) SAVEPOINT active_record_1
201
+ SQL (0.2ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:05.559338"], ["updated_at", "2016-01-13 11:51:05.559338"]]
202
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
204
+ Processing by ShoesController#edit as HTML
205
+ Parameters: {"id"=>"1"}
206
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
207
+ Rendered shoes/_form.html.erb (7.2ms)
208
+ Rendered shoes/edit.html.erb within layouts/application (9.6ms)
209
+ Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.1ms)
210
+  (0.1ms) rollback transaction
211
+  (0.0ms) begin transaction
212
+ --------------------------------------------
213
+ ShoesControllerTest: test_should_update_shoe
214
+ --------------------------------------------
215
+  (0.0ms) SAVEPOINT active_record_1
216
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.577677"], ["updated_at", "2016-01-13 11:51:05.577677"]]
217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
218
+  (0.0ms) SAVEPOINT active_record_1
219
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:05.579199"], ["updated_at", "2016-01-13 11:51:05.579199"]]
220
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
221
+  (0.1ms) RELEASE SAVEPOINT active_record_1
222
+ Processing by ShoesController#update as HTML
223
+ Parameters: {"shoe"=>{"name"=>"Puma", "user_id"=>"1"}, "id"=>"1"}
224
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
225
+  (0.0ms) SAVEPOINT active_record_1
226
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
227
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229
+ Redirected to http://test.host/shoes/1
230
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
231
+  (0.1ms) rollback transaction
232
+  (0.0ms) begin transaction
233
+ ------------------------------------------
234
+ ShoesControllerTest: test_should_get_index
235
+ ------------------------------------------
236
+  (0.0ms) SAVEPOINT active_record_1
237
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.584290"], ["updated_at", "2016-01-13 11:51:05.584290"]]
238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239
+  (0.0ms) SAVEPOINT active_record_1
240
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:05.585425"], ["updated_at", "2016-01-13 11:51:05.585425"]]
241
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
243
+ Processing by ShoesController#index as HTML
244
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes"
245
+ Rendered shoes/index.html.erb within layouts/application (0.9ms)
246
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
247
+  (0.1ms) rollback transaction
248
+  (0.0ms) begin transaction
249
+ --------------------------------------------
250
+ ShoesControllerTest: test_should_create_shoe
251
+ --------------------------------------------
252
+  (0.0ms) SAVEPOINT active_record_1
253
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.590539"], ["updated_at", "2016-01-13 11:51:05.590539"]]
254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
255
+  (0.0ms) SAVEPOINT active_record_1
256
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:05.592126"], ["updated_at", "2016-01-13 11:51:05.592126"]]
257
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
259
+  (0.0ms) SELECT COUNT(*) FROM "shoes"
260
+ Processing by ShoesController#create as HTML
261
+ Parameters: {"shoe"=>{"name"=>"Puma", "user_id"=>"1"}}
262
+  (0.0ms) SAVEPOINT active_record_1
263
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:05.595183"], ["updated_at", "2016-01-13 11:51:05.595183"]]
264
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
265
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
267
+ Redirected to http://test.host/shoes/2
268
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
269
+  (0.0ms) SELECT COUNT(*) FROM "shoes"
270
+  (0.1ms) rollback transaction
271
+  (0.0ms) begin transaction
272
+ ----------------------------------------
273
+ ShoesControllerTest: test_should_get_new
274
+ ----------------------------------------
275
+  (0.0ms) SAVEPOINT active_record_1
276
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.598249"], ["updated_at", "2016-01-13 11:51:05.598249"]]
277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
278
+  (0.0ms) SAVEPOINT active_record_1
279
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:05.599427"], ["updated_at", "2016-01-13 11:51:05.599427"]]
280
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282
+ Processing by ShoesController#new as HTML
283
+ Rendered shoes/_form.html.erb (0.9ms)
284
+ Rendered shoes/new.html.erb within layouts/application (1.4ms)
285
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
286
+  (0.1ms) rollback transaction
287
+  (0.0ms) begin transaction
288
+ ---------------------------------------------
289
+ ShoesControllerTest: test_should_destroy_shoe
290
+ ---------------------------------------------
291
+  (0.0ms) SAVEPOINT active_record_1
292
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.604560"], ["updated_at", "2016-01-13 11:51:05.604560"]]
293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
294
+  (0.0ms) SAVEPOINT active_record_1
295
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:05.605804"], ["updated_at", "2016-01-13 11:51:05.605804"]]
296
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
297
+  (0.0ms) RELEASE SAVEPOINT active_record_1
298
+  (0.0ms) SELECT COUNT(*) FROM "shoes"
299
+ Processing by ShoesController#destroy as HTML
300
+ Parameters: {"id"=>"1"}
301
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
302
+  (0.0ms) SAVEPOINT active_record_1
303
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
304
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
305
+ SQL (0.1ms) DELETE FROM "shoes" WHERE "shoes"."id" = ? [["id", 1]]
306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
307
+ Redirected to http://test.host/shoes
308
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
309
+  (0.1ms) SELECT COUNT(*) FROM "shoes"
310
+  (0.1ms) rollback transaction
311
+  (0.0ms) begin transaction
312
+ ------------------------------------------
313
+ ShoesControllerTest: test_should_show_shoe
314
+ ------------------------------------------
315
+  (0.0ms) SAVEPOINT active_record_1
316
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.610840"], ["updated_at", "2016-01-13 11:51:05.610840"]]
317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
318
+  (0.0ms) SAVEPOINT active_record_1
319
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:05.611986"], ["updated_at", "2016-01-13 11:51:05.611986"]]
320
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
322
+ Processing by ShoesController#show as HTML
323
+ Parameters: {"id"=>"1"}
324
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
325
+ Rendered shoes/show.html.erb within layouts/application (0.4ms)
326
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
327
+  (0.1ms) rollback transaction
328
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
329
+  (0.1ms) begin transaction
330
+ ----------------------------------------------------------------------------------------
331
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
332
+ ----------------------------------------------------------------------------------------
333
+  (0.1ms) SAVEPOINT active_record_1
334
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:51:30.649992"], ["updated_at", "2016-01-13 11:51:30.649992"]]
335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
336
+  (0.0ms) SAVEPOINT active_record_1
337
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.652896"], ["updated_at", "2016-01-13 11:51:30.652896"]]
338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
339
+  (0.0ms) SAVEPOINT active_record_1
340
+ 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 11:51:30.658472"], ["updated_at", "2016-01-13 11:51:30.658472"]]
341
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
342
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
344
+  (0.0ms) SAVEPOINT active_record_1
345
+ 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 11:51:30.668658"], ["updated_at", "2016-01-13 11:51:30.668658"]]
346
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
347
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
349
+  (0.0ms) SAVEPOINT active_record_1
350
+ 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 11:51:30.670470"], ["updated_at", "2016-01-13 11:51:30.670470"]]
351
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
352
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
354
+ Processing by UsersController#index as HTML
355
+ User Load (0.1ms) SELECT "users".* FROM "users"
356
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:30 UTC (0.1ms)
357
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:30 UTC (0.5ms)
358
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
359
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
360
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:30 UTC (0.0ms)
361
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
362
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:30 UTC (0.3ms)
363
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:30 UTC (0.0ms)
364
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:30 UTC (0.3ms)
365
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
366
+ Read fragment views/ (0.0ms)
367
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
368
+ Write fragment views/ (0.3ms)
369
+ Rendered users/index.html.erb within layouts/application (6.7ms)
370
+ Completed 200 OK in 153ms (Views: 152.3ms | ActiveRecord: 0.3ms)
371
+  (0.0ms) SAVEPOINT active_record_1
372
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:51:30.826950"], ["id", 1]]
373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
374
+ Processing by UsersController#index as HTML
375
+ User Load (0.1ms) SELECT "users".* FROM "users"
376
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:30 UTC (0.0ms)
377
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:30 UTC (0.4ms)
378
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
379
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
380
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:30 UTC (0.1ms)
381
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:30 UTC (0.1ms)
382
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
383
+ Read fragment views/ (0.1ms)
384
+ Rendered users/index.html.erb within layouts/application (3.1ms)
385
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.5ms)
386
+ Processing by UsersController#index as HTML
387
+ User Load (0.1ms) SELECT "users".* FROM "users"
388
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:30 UTC (0.1ms)
389
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
390
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
391
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:30 UTC (0.1ms)
392
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:30 UTC (0.1ms)
393
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
394
+ Read fragment views/ (0.1ms)
395
+ Rendered users/index.html.erb within layouts/application (2.3ms)
396
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.6ms)
397
+  (0.1ms) rollback transaction
398
+  (0.0ms) begin transaction
399
+ -------------------------------------------------------------------------------------------
400
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
401
+ -------------------------------------------------------------------------------------------
402
+  (0.0ms) SAVEPOINT active_record_1
403
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:51:30.839493"], ["updated_at", "2016-01-13 11:51:30.839493"]]
404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
405
+  (0.0ms) SAVEPOINT active_record_1
406
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.840566"], ["updated_at", "2016-01-13 11:51:30.840566"]]
407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
408
+  (0.0ms) SAVEPOINT active_record_1
409
+ 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 11:51:30.841639"], ["updated_at", "2016-01-13 11:51:30.841639"]]
410
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
411
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
413
+  (0.0ms) SAVEPOINT active_record_1
414
+ 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 11:51:30.843722"], ["updated_at", "2016-01-13 11:51:30.843722"]]
415
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
416
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
417
+  (0.0ms) RELEASE SAVEPOINT active_record_1
418
+  (0.0ms) SAVEPOINT active_record_1
419
+ 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 11:51:30.845436"], ["updated_at", "2016-01-13 11:51:30.845436"]]
420
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
421
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
423
+ Processing by UsersController#index as HTML
424
+ User Load (0.1ms) SELECT "users".* FROM "users"
425
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:30 UTC (0.1ms)
426
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:30 UTC (0.4ms)
427
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
428
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
429
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:30 UTC (0.1ms)
430
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
431
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:30 UTC (0.6ms)
432
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:30 UTC (0.1ms)
433
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:30 UTC (0.4ms)
434
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
435
+ Read fragment views/ (0.0ms)
436
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
437
+ Write fragment views/ (0.3ms)
438
+ Rendered users/index.html.erb within layouts/application (6.1ms)
439
+ Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.3ms)
440
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
441
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
442
+  (0.0ms) SAVEPOINT active_record_1
443
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 11:51:30.855938"], ["id", 1]]
444
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
446
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
447
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
448
+ Processing by UsersController#index as HTML
449
+ User Load (0.1ms) SELECT "users".* FROM "users"
450
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:30 UTC (0.1ms)
451
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
452
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
453
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:30 UTC (0.0ms)
454
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
455
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:51:30 UTC (0.3ms)
456
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:51:30 UTC (0.1ms)
457
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
458
+ Read fragment views/ (0.1ms)
459
+ Rendered users/index.html.erb within layouts/application (3.0ms)
460
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.5ms)
461
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
462
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
463
+  (0.1ms) rollback transaction
464
+  (0.0ms) begin transaction
465
+ ------------------------------------------------------------------------------
466
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
467
+ ------------------------------------------------------------------------------
468
+  (0.0ms) SAVEPOINT active_record_1
469
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:51:30.863860"], ["updated_at", "2016-01-13 11:51:30.863860"]]
470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
471
+  (0.0ms) SAVEPOINT active_record_1
472
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.865003"], ["updated_at", "2016-01-13 11:51:30.865003"]]
473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
474
+  (0.0ms) SAVEPOINT active_record_1
475
+ 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 11:51:30.866435"], ["updated_at", "2016-01-13 11:51:30.866435"]]
476
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
477
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
479
+  (0.0ms) SAVEPOINT active_record_1
480
+ 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 11:51:30.868981"], ["updated_at", "2016-01-13 11:51:30.868981"]]
481
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
482
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
484
+  (0.0ms) SAVEPOINT active_record_1
485
+ 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 11:51:30.870680"], ["updated_at", "2016-01-13 11:51:30.870680"]]
486
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
487
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
489
+ Processing by UsersController#show as HTML
490
+ Parameters: {"id"=>"1"}
491
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
492
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 11:51:30 UTC (0.0ms)
493
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 11:51:30 UTC (2.9ms)
494
+ Rendered users/show.html.erb within layouts/application (3.6ms)
495
+ Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
496
+  (0.0ms) SAVEPOINT active_record_1
497
+ SQL (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:51:30.878509"], ["id", 1]]
498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
499
+ Processing by UsersController#show as HTML
500
+ Parameters: {"id"=>"1"}
501
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
502
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 11:51:30 UTC (0.0ms)
503
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 11:51:30 UTC (0.3ms)
504
+ Rendered users/show.html.erb within layouts/application (0.6ms)
505
+ Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
506
+  (0.1ms) rollback transaction
507
+  (0.0ms) begin transaction
508
+ ---------------------------
509
+ ManageCacheTest: test_truth
510
+ ---------------------------
511
+  (0.0ms) rollback transaction
512
+  (0.0ms) begin transaction
513
+ ------------------------------------------
514
+ ShoesControllerTest: test_should_show_shoe
515
+ ------------------------------------------
516
+  (0.1ms) SAVEPOINT active_record_1
517
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.885972"], ["updated_at", "2016-01-13 11:51:30.885972"]]
518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
519
+  (0.0ms) SAVEPOINT active_record_1
520
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.887230"], ["updated_at", "2016-01-13 11:51:30.887230"]]
521
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
523
+ Processing by ShoesController#show as HTML
524
+ Parameters: {"id"=>"1"}
525
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
526
+ Rendered shoes/show.html.erb within layouts/application (0.5ms)
527
+ Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
528
+  (0.1ms) rollback transaction
529
+  (0.0ms) begin transaction
530
+ -----------------------------------------
531
+ ShoesControllerTest: test_should_get_edit
532
+ -----------------------------------------
533
+  (0.0ms) SAVEPOINT active_record_1
534
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.894197"], ["updated_at", "2016-01-13 11:51:30.894197"]]
535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
536
+  (0.0ms) SAVEPOINT active_record_1
537
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.895428"], ["updated_at", "2016-01-13 11:51:30.895428"]]
538
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
540
+ Processing by ShoesController#edit as HTML
541
+ Parameters: {"id"=>"1"}
542
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
543
+ Rendered shoes/_form.html.erb (7.3ms)
544
+ Rendered shoes/edit.html.erb within layouts/application (9.3ms)
545
+ Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms)
546
+  (0.1ms) rollback transaction
547
+  (0.0ms) begin transaction
548
+ ------------------------------------------
549
+ ShoesControllerTest: test_should_get_index
550
+ ------------------------------------------
551
+  (0.0ms) SAVEPOINT active_record_1
552
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.910025"], ["updated_at", "2016-01-13 11:51:30.910025"]]
553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
554
+  (0.0ms) SAVEPOINT active_record_1
555
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.911428"], ["updated_at", "2016-01-13 11:51:30.911428"]]
556
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
558
+ Processing by ShoesController#index as HTML
559
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes"
560
+ Rendered shoes/index.html.erb within layouts/application (1.0ms)
561
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
562
+  (0.1ms) rollback transaction
563
+  (0.0ms) begin transaction
564
+ --------------------------------------------
565
+ ShoesControllerTest: test_should_update_shoe
566
+ --------------------------------------------
567
+  (0.0ms) SAVEPOINT active_record_1
568
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.916328"], ["updated_at", "2016-01-13 11:51:30.916328"]]
569
+  (0.0ms) RELEASE SAVEPOINT active_record_1
570
+  (0.0ms) SAVEPOINT active_record_1
571
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.917494"], ["updated_at", "2016-01-13 11:51:30.917494"]]
572
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
574
+ Processing by ShoesController#update as HTML
575
+ Parameters: {"shoe"=>{"name"=>"Puma", "user_id"=>"1"}, "id"=>"1"}
576
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
577
+  (0.0ms) SAVEPOINT active_record_1
578
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
579
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
580
+  (0.0ms) RELEASE SAVEPOINT active_record_1
581
+ Redirected to http://test.host/shoes/1
582
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
583
+  (0.1ms) rollback transaction
584
+  (0.0ms) begin transaction
585
+ ----------------------------------------
586
+ ShoesControllerTest: test_should_get_new
587
+ ----------------------------------------
588
+  (0.0ms) SAVEPOINT active_record_1
589
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.922591"], ["updated_at", "2016-01-13 11:51:30.922591"]]
590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
591
+  (0.0ms) SAVEPOINT active_record_1
592
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.923709"], ["updated_at", "2016-01-13 11:51:30.923709"]]
593
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
594
+  (0.0ms) RELEASE SAVEPOINT active_record_1
595
+ Processing by ShoesController#new as HTML
596
+ Rendered shoes/_form.html.erb (0.9ms)
597
+ Rendered shoes/new.html.erb within layouts/application (1.3ms)
598
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
599
+  (0.1ms) rollback transaction
600
+  (0.0ms) begin transaction
601
+ --------------------------------------------
602
+ ShoesControllerTest: test_should_create_shoe
603
+ --------------------------------------------
604
+  (0.0ms) SAVEPOINT active_record_1
605
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.929187"], ["updated_at", "2016-01-13 11:51:30.929187"]]
606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
607
+  (0.0ms) SAVEPOINT active_record_1
608
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.930967"], ["updated_at", "2016-01-13 11:51:30.930967"]]
609
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
611
+  (0.0ms) SELECT COUNT(*) FROM "shoes"
612
+ Processing by ShoesController#create as HTML
613
+ Parameters: {"shoe"=>{"name"=>"Puma", "user_id"=>"1"}}
614
+  (0.0ms) SAVEPOINT active_record_1
615
+ SQL (0.0ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.933970"], ["updated_at", "2016-01-13 11:51:30.933970"]]
616
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
617
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
619
+ Redirected to http://test.host/shoes/2
620
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
621
+  (0.0ms) SELECT COUNT(*) FROM "shoes"
622
+  (0.1ms) rollback transaction
623
+  (0.0ms) begin transaction
624
+ ---------------------------------------------
625
+ ShoesControllerTest: test_should_destroy_shoe
626
+ ---------------------------------------------
627
+  (0.0ms) SAVEPOINT active_record_1
628
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.937105"], ["updated_at", "2016-01-13 11:51:30.937105"]]
629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
630
+  (0.0ms) SAVEPOINT active_record_1
631
+ SQL (0.1ms) INSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.938375"], ["updated_at", "2016-01-13 11:51:30.938375"]]
632
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
633
+  (0.0ms) RELEASE SAVEPOINT active_record_1
634
+  (0.0ms) SELECT COUNT(*) FROM "shoes"
635
+ Processing by ShoesController#destroy as HTML
636
+ Parameters: {"id"=>"1"}
637
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
638
+  (0.0ms) SAVEPOINT active_record_1
639
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
640
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
641
+ SQL (0.1ms) DELETE FROM "shoes" WHERE "shoes"."id" = ? [["id", 1]]
642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
643
+ Redirected to http://test.host/shoes
644
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
645
+  (0.0ms) SELECT COUNT(*) FROM "shoes"
646
+  (0.1ms) rollback transaction
647
+  (0.0ms) begin transaction
648
+ --------------------------------------------------------
649
+ UserTest: test_cache_key_for_should_return_the_right_key
650
+ --------------------------------------------------------
651
+  (0.0ms) SAVEPOINT active_record_1
652
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:51:30.944252"], ["updated_at", "2016-01-13 11:51:30.944252"]]
653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
654
+  (0.1ms) rollback transaction
655
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
656
+  (0.1ms) begin transaction
657
+ -------------------------------------------------------------------------------------------
658
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
659
+ -------------------------------------------------------------------------------------------
660
+  (0.1ms) SAVEPOINT active_record_1
661
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:52:38.730237"], ["updated_at", "2016-01-13 11:52:38.730237"]]
662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
663
+  (0.0ms) SAVEPOINT active_record_1
664
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:52:38.733208"], ["updated_at", "2016-01-13 11:52:38.733208"]]
665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
666
+  (0.1ms) SAVEPOINT active_record_1
667
+ 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 11:52:38.738759"], ["updated_at", "2016-01-13 11:52:38.738759"]]
668
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
669
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
671
+  (0.0ms) SAVEPOINT active_record_1
672
+ 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 11:52:38.749103"], ["updated_at", "2016-01-13 11:52:38.749103"]]
673
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
674
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
675
+  (0.0ms) RELEASE SAVEPOINT active_record_1
676
+  (0.0ms) SAVEPOINT active_record_1
677
+ 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 11:52:38.750986"], ["updated_at", "2016-01-13 11:52:38.750986"]]
678
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
679
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
681
+ Processing by UsersController#index as HTML
682
+ User Load (0.1ms) SELECT "users".* FROM "users"
683
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:52:38 UTC (0.1ms)
684
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:52:38 UTC (0.5ms)
685
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
686
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
687
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:52:38 UTC (0.0ms)
688
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
689
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:52:38 UTC (0.3ms)
690
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:52:38 UTC (0.0ms)
691
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:52:38 UTC (0.3ms)
692
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
693
+ Read fragment views/ (0.0ms)
694
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
695
+ Write fragment views/ (0.3ms)
696
+ Rendered users/index.html.erb within layouts/application (6.7ms)
697
+ Completed 200 OK in 151ms (Views: 149.9ms | ActiveRecord: 0.3ms)
698
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
699
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
700
+  (0.0ms) SAVEPOINT active_record_1
701
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 11:52:38.906223"], ["id", 1]]
702
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
704
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
705
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
706
+ Processing by UsersController#index as HTML
707
+ User Load (0.1ms) SELECT "users".* FROM "users"
708
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:52:38 UTC (0.1ms)
709
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
710
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
711
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:52:38 UTC (0.0ms)
712
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
713
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:52:38 UTC (0.4ms)
714
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:52:38 UTC (0.1ms)
715
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
716
+ Read fragment views/ (0.1ms)
717
+ Rendered users/index.html.erb within layouts/application (3.2ms)
718
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.5ms)
719
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
720
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
721
+  (0.1ms) rollback transaction
722
+  (0.0ms) begin transaction
723
+ ------------------------------------------------------------------------------
724
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
725
+ ------------------------------------------------------------------------------
726
+  (0.0ms) SAVEPOINT active_record_1
727
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:52:38.916979"], ["updated_at", "2016-01-13 11:52:38.916979"]]
728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
729
+  (0.0ms) SAVEPOINT active_record_1
730
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:52:38.918067"], ["updated_at", "2016-01-13 11:52:38.918067"]]
731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
732
+  (0.0ms) SAVEPOINT active_record_1
733
+ 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 11:52:38.919080"], ["updated_at", "2016-01-13 11:52:38.919080"]]
734
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
735
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
737
+  (0.0ms) SAVEPOINT active_record_1
738
+ 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 11:52:38.920802"], ["updated_at", "2016-01-13 11:52:38.920802"]]
739
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
740
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
742
+  (0.0ms) SAVEPOINT active_record_1
743
+ 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 11:52:38.922373"], ["updated_at", "2016-01-13 11:52:38.922373"]]
744
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
745
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
747
+ Processing by UsersController#show as HTML
748
+ Parameters: {"id"=>"1"}
749
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
750
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 11:52:38 UTC (0.1ms)
751
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 11:52:38 UTC (0.4ms)
752
+ Rendered users/show.html.erb within layouts/application (1.1ms)
753
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
754
+  (0.1ms) SAVEPOINT active_record_1
755
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:52:38.927848"], ["id", 1]]
756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
757
+ Processing by UsersController#show as HTML
758
+ Parameters: {"id"=>"1"}
759
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
760
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 11:52:38 UTC (0.1ms)
761
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 11:52:38 UTC (0.3ms)
762
+ Rendered users/show.html.erb within layouts/application (0.6ms)
763
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
764
+  (0.1ms) rollback transaction
765
+  (0.0ms) begin transaction
766
+ ----------------------------------------------------------------------------------------
767
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
768
+ ----------------------------------------------------------------------------------------
769
+  (0.0ms) SAVEPOINT active_record_1
770
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:52:38.931928"], ["updated_at", "2016-01-13 11:52:38.931928"]]
771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
772
+  (0.0ms) SAVEPOINT active_record_1
773
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:52:38.932902"], ["updated_at", "2016-01-13 11:52:38.932902"]]
774
+  (0.0ms) RELEASE SAVEPOINT active_record_1
775
+  (0.0ms) SAVEPOINT active_record_1
776
+ 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 11:52:38.934024"], ["updated_at", "2016-01-13 11:52:38.934024"]]
777
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
778
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
780
+  (0.0ms) SAVEPOINT active_record_1
781
+ 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 11:52:38.935810"], ["updated_at", "2016-01-13 11:52:38.935810"]]
782
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
783
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
785
+  (0.0ms) SAVEPOINT active_record_1
786
+ 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 11:52:38.937382"], ["updated_at", "2016-01-13 11:52:38.937382"]]
787
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
788
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
790
+ Processing by UsersController#index as HTML
791
+ User Load (0.1ms) SELECT "users".* FROM "users"
792
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:52:38 UTC (0.0ms)
793
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:52:38 UTC (0.4ms)
794
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
795
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
796
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:52:38 UTC (0.0ms)
797
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
798
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:52:38 UTC (0.3ms)
799
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:52:38 UTC (0.0ms)
800
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:52:38 UTC (0.3ms)
801
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
802
+ Read fragment views/ (0.1ms)
803
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
804
+ Write fragment views/ (0.3ms)
805
+ Rendered users/index.html.erb within layouts/application (4.8ms)
806
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.2ms)
807
+  (0.1ms) SAVEPOINT active_record_1
808
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:52:38.946021"], ["id", 1]]
809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
810
+ Processing by UsersController#index as HTML
811
+ User Load (0.1ms) SELECT "users".* FROM "users"
812
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:52:38 UTC (0.0ms)
813
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:52:38 UTC (0.4ms)
814
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
815
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
816
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:52:38 UTC (0.1ms)
817
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:52:38 UTC (0.1ms)
818
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
819
+ Read fragment views/ (0.1ms)
820
+ Rendered users/index.html.erb within layouts/application (3.1ms)
821
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms)
822
+ Processing by UsersController#index as HTML
823
+ User Load (0.1ms) SELECT "users".* FROM "users"
824
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:52:38 UTC (0.1ms)
825
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
826
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
827
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:52:38 UTC (0.1ms)
828
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:52:38 UTC (0.1ms)
829
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
830
+ Read fragment views/ (0.1ms)
831
+ Rendered users/index.html.erb within layouts/application (2.4ms)
832
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.5ms)
833
+  (0.1ms) rollback transaction
834
+  (0.0ms) begin transaction
835
+ ---------------------------
836
+ ManageCacheTest: test_truth
837
+ ---------------------------
838
+  (0.0ms) rollback transaction
839
+  (0.0ms) begin transaction
840
+ --------------------------------------------------------
841
+ UserTest: test_cache_key_for_should_return_the_right_key
842
+ --------------------------------------------------------
843
+  (0.0ms) SAVEPOINT active_record_1
844
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:52:38.957468"], ["updated_at", "2016-01-13 11:52:38.957468"]]
845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
846
+  (0.1ms) rollback transaction
847
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
848
+  (0.1ms) begin transaction
849
+ ----------------------------------------------------------------------------------------
850
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
851
+ ----------------------------------------------------------------------------------------
852
+  (0.1ms) SAVEPOINT active_record_1
853
+ SQL (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:53:15.707768"], ["updated_at", "2016-01-13 11:53:15.707768"]]
854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
855
+  (0.0ms) SAVEPOINT active_record_1
856
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:53:15.712074"], ["updated_at", "2016-01-13 11:53:15.712074"]]
857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
858
+  (0.1ms) SAVEPOINT active_record_1
859
+ 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 11:53:15.723905"], ["updated_at", "2016-01-13 11:53:15.723905"]]
860
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
861
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
862
+  (0.0ms) RELEASE SAVEPOINT active_record_1
863
+  (0.0ms) SAVEPOINT active_record_1
864
+ 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 11:53:15.735089"], ["updated_at", "2016-01-13 11:53:15.735089"]]
865
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
866
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
868
+  (0.0ms) SAVEPOINT active_record_1
869
+ 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 11:53:15.736989"], ["updated_at", "2016-01-13 11:53:15.736989"]]
870
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
871
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
873
+ Processing by UsersController#index as HTML
874
+ User Load (0.1ms) SELECT "users".* FROM "users"
875
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:15 UTC (0.1ms)
876
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:15 UTC (0.5ms)
877
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
878
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
879
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:15 UTC (0.0ms)
880
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
881
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:15 UTC (0.4ms)
882
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:15 UTC (0.0ms)
883
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:15 UTC (0.4ms)
884
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
885
+ Read fragment views/ (0.0ms)
886
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
887
+ Write fragment views/ (0.4ms)
888
+ Rendered users/index.html.erb within layouts/application (6.8ms)
889
+ Completed 200 OK in 159ms (Views: 158.1ms | ActiveRecord: 0.3ms)
890
+  (0.0ms) SAVEPOINT active_record_1
891
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:53:15.899523"], ["id", 1]]
892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
893
+ Processing by UsersController#index as HTML
894
+ User Load (0.1ms) SELECT "users".* FROM "users"
895
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:15 UTC (0.0ms)
896
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:15 UTC (0.4ms)
897
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
898
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
899
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:15 UTC (0.1ms)
900
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:15 UTC (0.1ms)
901
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
902
+ Read fragment views/ (0.1ms)
903
+ Rendered users/index.html.erb within layouts/application (3.1ms)
904
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms)
905
+ Processing by UsersController#index as HTML
906
+ User Load (0.1ms) SELECT "users".* FROM "users"
907
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:15 UTC (0.1ms)
908
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
909
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
910
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:15 UTC (0.1ms)
911
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:15 UTC (0.1ms)
912
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
913
+ Read fragment views/ (0.1ms)
914
+ Rendered users/index.html.erb within layouts/application (2.3ms)
915
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.6ms)
916
+  (0.1ms) rollback transaction
917
+  (0.0ms) begin transaction
918
+ ------------------------------------------------------------------------------
919
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
920
+ ------------------------------------------------------------------------------
921
+  (0.0ms) SAVEPOINT active_record_1
922
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:53:15.912346"], ["updated_at", "2016-01-13 11:53:15.912346"]]
923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
924
+  (0.0ms) SAVEPOINT active_record_1
925
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:53:15.913441"], ["updated_at", "2016-01-13 11:53:15.913441"]]
926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
927
+  (0.0ms) SAVEPOINT active_record_1
928
+ 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 11:53:15.914441"], ["updated_at", "2016-01-13 11:53:15.914441"]]
929
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
930
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
932
+  (0.0ms) SAVEPOINT active_record_1
933
+ 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 11:53:15.916134"], ["updated_at", "2016-01-13 11:53:15.916134"]]
934
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
935
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
937
+  (0.0ms) SAVEPOINT active_record_1
938
+ 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 11:53:15.917726"], ["updated_at", "2016-01-13 11:53:15.917726"]]
939
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
940
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
942
+ Processing by UsersController#show as HTML
943
+ Parameters: {"id"=>"1"}
944
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
945
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 11:53:15 UTC (0.0ms)
946
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 11:53:15 UTC (0.4ms)
947
+ Rendered users/show.html.erb within layouts/application (1.0ms)
948
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
949
+  (0.1ms) SAVEPOINT active_record_1
950
+ SQL (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:53:15.923180"], ["id", 1]]
951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
952
+ Processing by UsersController#show as HTML
953
+ Parameters: {"id"=>"1"}
954
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
955
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 11:53:15 UTC (0.0ms)
956
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 11:53:15 UTC (0.3ms)
957
+ Rendered users/show.html.erb within layouts/application (0.6ms)
958
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
959
+  (0.1ms) rollback transaction
960
+  (0.0ms) begin transaction
961
+ -------------------------------------------------------------------------------------------
962
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
963
+ -------------------------------------------------------------------------------------------
964
+  (0.0ms) SAVEPOINT active_record_1
965
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:53:15.927179"], ["updated_at", "2016-01-13 11:53:15.927179"]]
966
+  (0.0ms) RELEASE SAVEPOINT active_record_1
967
+  (0.0ms) SAVEPOINT active_record_1
968
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:53:15.928158"], ["updated_at", "2016-01-13 11:53:15.928158"]]
969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
970
+  (0.0ms) SAVEPOINT active_record_1
971
+ 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 11:53:15.929122"], ["updated_at", "2016-01-13 11:53:15.929122"]]
972
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
973
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
975
+  (0.0ms) SAVEPOINT active_record_1
976
+ 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 11:53:15.930853"], ["updated_at", "2016-01-13 11:53:15.930853"]]
977
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
978
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
980
+  (0.0ms) SAVEPOINT active_record_1
981
+ 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 11:53:15.932466"], ["updated_at", "2016-01-13 11:53:15.932466"]]
982
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
983
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
984
+  (0.0ms) RELEASE SAVEPOINT active_record_1
985
+ Processing by UsersController#index as HTML
986
+ User Load (0.1ms) SELECT "users".* FROM "users"
987
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:15 UTC (0.0ms)
988
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:15 UTC (0.4ms)
989
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
990
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
991
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:15 UTC (0.0ms)
992
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
993
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:15 UTC (0.3ms)
994
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:15 UTC (0.0ms)
995
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:15 UTC (0.3ms)
996
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
997
+ Read fragment views/ (0.1ms)
998
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
999
+ Write fragment views/ (0.4ms)
1000
+ Rendered users/index.html.erb within layouts/application (5.0ms)
1001
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.2ms)
1002
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1003
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1004
+  (0.0ms) SAVEPOINT active_record_1
1005
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 11:53:15.942671"], ["id", 1]]
1006
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1007
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1008
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1009
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1010
+ Processing by UsersController#index as HTML
1011
+ User Load (0.1ms) SELECT "users".* FROM "users"
1012
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:15 UTC (0.1ms)
1013
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1014
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1015
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:15 UTC (0.0ms)
1016
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1017
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:15 UTC (0.4ms)
1018
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:15 UTC (0.1ms)
1019
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1020
+ Read fragment views/ (0.1ms)
1021
+ Rendered users/index.html.erb within layouts/application (3.1ms)
1022
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.4ms)
1023
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1024
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1025
+  (0.1ms) rollback transaction
1026
+  (0.0ms) begin transaction
1027
+ ---------------------------
1028
+ ManageCacheTest: test_truth
1029
+ ---------------------------
1030
+  (0.0ms) rollback transaction
1031
+  (0.0ms) begin transaction
1032
+ --------------------------------------------------------
1033
+ UserTest: test_cache_key_for_should_return_the_right_key
1034
+ --------------------------------------------------------
1035
+  (0.0ms) SAVEPOINT active_record_1
1036
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:53:15.951305"], ["updated_at", "2016-01-13 11:53:15.951305"]]
1037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1038
+  (0.1ms) rollback transaction
1039
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1040
+  (0.1ms) begin transaction
1041
+ ------------------------------------------------------------------------------
1042
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
1043
+ ------------------------------------------------------------------------------
1044
+  (0.1ms) SAVEPOINT active_record_1
1045
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:53:50.871797"], ["updated_at", "2016-01-13 11:53:50.871797"]]
1046
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1047
+  (0.0ms) SAVEPOINT active_record_1
1048
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:53:50.874314"], ["updated_at", "2016-01-13 11:53:50.874314"]]
1049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1050
+  (0.0ms) SAVEPOINT active_record_1
1051
+ 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 11:53:50.879610"], ["updated_at", "2016-01-13 11:53:50.879610"]]
1052
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1053
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1055
+  (0.0ms) SAVEPOINT active_record_1
1056
+ 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 11:53:50.890130"], ["updated_at", "2016-01-13 11:53:50.890130"]]
1057
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1058
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1060
+  (0.0ms) SAVEPOINT active_record_1
1061
+ 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 11:53:50.892001"], ["updated_at", "2016-01-13 11:53:50.892001"]]
1062
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1063
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1065
+ Processing by UsersController#show as HTML
1066
+ Parameters: {"id"=>"1"}
1067
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1068
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 11:53:50 UTC (0.1ms)
1069
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 11:53:50 UTC (0.5ms)
1070
+ Rendered users/show.html.erb within layouts/application (1.6ms)
1071
+ Completed 200 OK in 154ms (Views: 152.4ms | ActiveRecord: 0.0ms)
1072
+  (0.0ms) SAVEPOINT active_record_1
1073
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:53:51.050017"], ["id", 1]]
1074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1075
+ Processing by UsersController#show as HTML
1076
+ Parameters: {"id"=>"1"}
1077
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1078
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 11:53:51 UTC (0.0ms)
1079
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 11:53:51 UTC (0.4ms)
1080
+ Rendered users/show.html.erb within layouts/application (0.7ms)
1081
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
1082
+  (0.1ms) rollback transaction
1083
+  (0.1ms) begin transaction
1084
+ -------------------------------------------------------------------------------------------
1085
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
1086
+ -------------------------------------------------------------------------------------------
1087
+  (0.0ms) SAVEPOINT active_record_1
1088
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:53:51.055447"], ["updated_at", "2016-01-13 11:53:51.055447"]]
1089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1090
+  (0.0ms) SAVEPOINT active_record_1
1091
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:53:51.056453"], ["updated_at", "2016-01-13 11:53:51.056453"]]
1092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1093
+  (0.0ms) SAVEPOINT active_record_1
1094
+ 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 11:53:51.057470"], ["updated_at", "2016-01-13 11:53:51.057470"]]
1095
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1096
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1098
+  (0.0ms) SAVEPOINT active_record_1
1099
+ 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 11:53:51.059338"], ["updated_at", "2016-01-13 11:53:51.059338"]]
1100
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1101
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1102
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1103
+  (0.0ms) SAVEPOINT active_record_1
1104
+ 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 11:53:51.060891"], ["updated_at", "2016-01-13 11:53:51.060891"]]
1105
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1106
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1108
+ Processing by UsersController#index as HTML
1109
+ User Load (0.1ms) SELECT "users".* FROM "users"
1110
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:51 UTC (0.1ms)
1111
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:51 UTC (0.4ms)
1112
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1113
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1114
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:51 UTC (0.1ms)
1115
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1116
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:51 UTC (0.3ms)
1117
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:51 UTC (0.0ms)
1118
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:51 UTC (0.3ms)
1119
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1120
+ Read fragment views/ (0.0ms)
1121
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
1122
+ Write fragment views/ (0.3ms)
1123
+ Rendered users/index.html.erb within layouts/application (5.8ms)
1124
+ Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.3ms)
1125
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1126
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1127
+  (0.0ms) SAVEPOINT active_record_1
1128
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 11:53:51.071048"], ["id", 1]]
1129
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1131
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1132
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1133
+ Processing by UsersController#index as HTML
1134
+ User Load (0.1ms) SELECT "users".* FROM "users"
1135
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:51 UTC (0.1ms)
1136
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1137
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1138
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:51 UTC (0.0ms)
1139
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1140
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:51 UTC (0.4ms)
1141
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:51 UTC (0.1ms)
1142
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1143
+ Read fragment views/ (0.1ms)
1144
+ Rendered users/index.html.erb within layouts/application (3.2ms)
1145
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.5ms)
1146
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1147
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1148
+  (0.1ms) rollback transaction
1149
+  (0.0ms) begin transaction
1150
+ ----------------------------------------------------------------------------------------
1151
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
1152
+ ----------------------------------------------------------------------------------------
1153
+  (0.0ms) SAVEPOINT active_record_1
1154
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:53:51.079202"], ["updated_at", "2016-01-13 11:53:51.079202"]]
1155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1156
+  (0.0ms) SAVEPOINT active_record_1
1157
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 11:53:51.080294"], ["updated_at", "2016-01-13 11:53:51.080294"]]
1158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1159
+  (0.0ms) SAVEPOINT active_record_1
1160
+ 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 11:53:51.081526"], ["updated_at", "2016-01-13 11:53:51.081526"]]
1161
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1162
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1164
+  (0.1ms) SAVEPOINT active_record_1
1165
+ 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 11:53:51.083802"], ["updated_at", "2016-01-13 11:53:51.083802"]]
1166
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1167
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1169
+  (0.0ms) SAVEPOINT active_record_1
1170
+ 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 11:53:51.085960"], ["updated_at", "2016-01-13 11:53:51.085960"]]
1171
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1172
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1174
+ Processing by UsersController#index as HTML
1175
+ User Load (0.1ms) SELECT "users".* FROM "users"
1176
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:51 UTC (0.1ms)
1177
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:51 UTC (0.4ms)
1178
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1179
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1180
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:51 UTC (0.0ms)
1181
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1182
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:51 UTC (0.3ms)
1183
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:51 UTC (0.0ms)
1184
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:51 UTC (0.3ms)
1185
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1186
+ Read fragment views/ (0.0ms)
1187
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
1188
+ Write fragment views/ (0.3ms)
1189
+ Rendered users/index.html.erb within layouts/application (4.5ms)
1190
+ Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.2ms)
1191
+  (0.0ms) SAVEPOINT active_record_1
1192
+ SQL (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:53:51.093792"], ["id", 1]]
1193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1194
+ Processing by UsersController#index as HTML
1195
+ User Load (0.1ms) SELECT "users".* FROM "users"
1196
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:51 UTC (0.0ms)
1197
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:51 UTC (0.3ms)
1198
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1199
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1200
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:51 UTC (0.1ms)
1201
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:51 UTC (0.1ms)
1202
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1203
+ Read fragment views/ (0.1ms)
1204
+ Rendered users/index.html.erb within layouts/application (2.8ms)
1205
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.4ms)
1206
+ Processing by UsersController#index as HTML
1207
+ User Load (0.1ms) SELECT "users".* FROM "users"
1208
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:51 UTC (0.1ms)
1209
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1210
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1211
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 11:53:51 UTC (0.1ms)
1212
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 11:53:51 UTC (0.1ms)
1213
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1214
+ Read fragment views/ (0.1ms)
1215
+ Rendered users/index.html.erb within layouts/application (2.4ms)
1216
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.5ms)
1217
+  (0.1ms) rollback transaction
1218
+  (0.0ms) begin transaction
1219
+ --------------------------------------------------------
1220
+ UserTest: test_cache_key_for_should_return_the_right_key
1221
+ --------------------------------------------------------
1222
+  (0.0ms) SAVEPOINT active_record_1
1223
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 11:53:51.103682"], ["updated_at", "2016-01-13 11:53:51.103682"]]
1224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1225
+  (0.1ms) rollback transaction
1226
+  (0.0ms) begin transaction
1227
+ ---------------------------
1228
+ ManageCacheTest: test_truth
1229
+ ---------------------------
1230
+  (0.0ms) rollback transaction
1231
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1232
+  (0.1ms) begin transaction
1233
+ -------------------------------------------------------------------------------------------
1234
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
1235
+ -------------------------------------------------------------------------------------------
1236
+  (0.1ms) SAVEPOINT active_record_1
1237
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 12:06:11.387355"], ["updated_at", "2016-01-13 12:06:11.387355"]]
1238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1239
+  (0.0ms) SAVEPOINT active_record_1
1240
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 12:06:11.390012"], ["updated_at", "2016-01-13 12:06:11.390012"]]
1241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1242
+  (0.0ms) SAVEPOINT active_record_1
1243
+ 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 12:06:11.395391"], ["updated_at", "2016-01-13 12:06:11.395391"]]
1244
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1245
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1246
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1247
+  (0.0ms) SAVEPOINT active_record_1
1248
+ 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 12:06:11.405984"], ["updated_at", "2016-01-13 12:06:11.405984"]]
1249
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1250
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1252
+  (0.0ms) SAVEPOINT active_record_1
1253
+ 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 12:06:11.407818"], ["updated_at", "2016-01-13 12:06:11.407818"]]
1254
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1255
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1256
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1257
+ Processing by UsersController#index as HTML
1258
+ User Load (0.1ms) SELECT "users".* FROM "users"
1259
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 12:06:11 UTC (0.1ms)
1260
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 12:06:11 UTC (0.5ms)
1261
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1262
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1263
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 12:06:11 UTC (0.0ms)
1264
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1265
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 12:06:11 UTC (0.3ms)
1266
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 12:06:11 UTC (0.1ms)
1267
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 12:06:11 UTC (0.3ms)
1268
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1269
+ Read fragment views/ (0.0ms)
1270
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
1271
+ Write fragment views/ (0.3ms)
1272
+ Rendered users/index.html.erb within layouts/application (6.8ms)
1273
+ Completed 200 OK in 157ms (Views: 156.0ms | ActiveRecord: 0.3ms)
1274
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1275
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1276
+  (0.0ms) SAVEPOINT active_record_1
1277
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 12:06:11.569270"], ["id", 1]]
1278
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1280
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1281
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1282
+ Processing by UsersController#index as HTML
1283
+ User Load (0.1ms) SELECT "users".* FROM "users"
1284
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 12:06:11 UTC (0.1ms)
1285
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1286
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1287
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 12:06:11 UTC (0.0ms)
1288
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1289
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 12:06:11 UTC (0.4ms)
1290
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 12:06:11 UTC (0.1ms)
1291
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1292
+ Read fragment views/ (0.1ms)
1293
+ Rendered users/index.html.erb within layouts/application (3.3ms)
1294
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.5ms)
1295
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1296
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1297
+  (0.1ms) rollback transaction
1298
+  (0.0ms) begin transaction
1299
+ ----------------------------------------------------------------------------------------
1300
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
1301
+ ----------------------------------------------------------------------------------------
1302
+  (0.0ms) SAVEPOINT active_record_1
1303
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 12:06:11.580335"], ["updated_at", "2016-01-13 12:06:11.580335"]]
1304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1305
+  (0.0ms) SAVEPOINT active_record_1
1306
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 12:06:11.581381"], ["updated_at", "2016-01-13 12:06:11.581381"]]
1307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1308
+  (0.0ms) SAVEPOINT active_record_1
1309
+ 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 12:06:11.582438"], ["updated_at", "2016-01-13 12:06:11.582438"]]
1310
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1311
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1313
+  (0.0ms) SAVEPOINT active_record_1
1314
+ 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 12:06:11.584199"], ["updated_at", "2016-01-13 12:06:11.584199"]]
1315
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1316
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1318
+  (0.0ms) SAVEPOINT active_record_1
1319
+ 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 12:06:11.585810"], ["updated_at", "2016-01-13 12:06:11.585810"]]
1320
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1321
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1323
+ Processing by UsersController#index as HTML
1324
+ User Load (0.1ms) SELECT "users".* FROM "users"
1325
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 12:06:11 UTC (0.0ms)
1326
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 12:06:11 UTC (0.4ms)
1327
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1328
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1329
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 12:06:11 UTC (0.1ms)
1330
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1331
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 12:06:11 UTC (0.5ms)
1332
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 12:06:11 UTC (0.0ms)
1333
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 12:06:11 UTC (0.3ms)
1334
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1335
+ Read fragment views/ (0.0ms)
1336
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
1337
+ Write fragment views/ (0.3ms)
1338
+ Rendered users/index.html.erb within layouts/application (4.9ms)
1339
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.2ms)
1340
+  (0.0ms) SAVEPOINT active_record_1
1341
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 12:06:11.594066"], ["id", 1]]
1342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1343
+ Processing by UsersController#index as HTML
1344
+ User Load (0.1ms) SELECT "users".* FROM "users"
1345
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 12:06:11 UTC (0.0ms)
1346
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 12:06:11 UTC (0.4ms)
1347
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1348
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1349
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 12:06:11 UTC (0.1ms)
1350
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 12:06:11 UTC (0.1ms)
1351
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1352
+ Read fragment views/ (0.1ms)
1353
+ Rendered users/index.html.erb within layouts/application (2.9ms)
1354
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)
1355
+ Processing by UsersController#index as HTML
1356
+ User Load (0.1ms) SELECT "users".* FROM "users"
1357
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 12:06:11 UTC (0.1ms)
1358
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1359
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1360
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 12:06:11 UTC (0.1ms)
1361
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 12:06:11 UTC (0.1ms)
1362
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1363
+ Read fragment views/ (0.1ms)
1364
+ Rendered users/index.html.erb within layouts/application (2.4ms)
1365
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.5ms)
1366
+  (0.1ms) rollback transaction
1367
+  (0.0ms) begin transaction
1368
+ ------------------------------------------------------------------------------
1369
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
1370
+ ------------------------------------------------------------------------------
1371
+  (0.0ms) SAVEPOINT active_record_1
1372
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 12:06:11.603965"], ["updated_at", "2016-01-13 12:06:11.603965"]]
1373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1374
+  (0.0ms) SAVEPOINT active_record_1
1375
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 12:06:11.605031"], ["updated_at", "2016-01-13 12:06:11.605031"]]
1376
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1377
+  (0.0ms) SAVEPOINT active_record_1
1378
+ 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 12:06:11.606408"], ["updated_at", "2016-01-13 12:06:11.606408"]]
1379
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1380
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1381
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1382
+  (0.0ms) SAVEPOINT active_record_1
1383
+ 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 12:06:11.608784"], ["updated_at", "2016-01-13 12:06:11.608784"]]
1384
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1385
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1387
+  (0.0ms) SAVEPOINT active_record_1
1388
+ 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 12:06:11.610934"], ["updated_at", "2016-01-13 12:06:11.610934"]]
1389
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1390
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1392
+ Processing by UsersController#show as HTML
1393
+ Parameters: {"id"=>"1"}
1394
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1395
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 12:06:11 UTC (0.1ms)
1396
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 12:06:11 UTC (0.4ms)
1397
+ Rendered users/show.html.erb within layouts/application (1.0ms)
1398
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
1399
+  (0.0ms) SAVEPOINT active_record_1
1400
+ SQL (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 12:06:11.615891"], ["id", 1]]
1401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1402
+ Processing by UsersController#show as HTML
1403
+ Parameters: {"id"=>"1"}
1404
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1405
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 12:06:11 UTC (0.0ms)
1406
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 12:06:11 UTC (0.4ms)
1407
+ Rendered users/show.html.erb within layouts/application (0.7ms)
1408
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
1409
+  (0.1ms) rollback transaction
1410
+  (0.0ms) begin transaction
1411
+ ---------------------------
1412
+ ManageCacheTest: test_truth
1413
+ ---------------------------
1414
+  (0.0ms) rollback transaction
1415
+  (0.0ms) begin transaction
1416
+ --------------------------------------------------------
1417
+ UserTest: test_cache_key_for_should_return_the_right_key
1418
+ --------------------------------------------------------
1419
+  (0.0ms) SAVEPOINT active_record_1
1420
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 12:06:11.620922"], ["updated_at", "2016-01-13 12:06:11.620922"]]
1421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1422
+  (0.1ms) rollback transaction
1423
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1424
+  (0.1ms) begin transaction
1425
+ ---------------------------
1426
+ ManageCacheTest: test_truth
1427
+ ---------------------------
1428
+  (0.0ms) rollback transaction
1429
+  (0.1ms) begin transaction
1430
+ --------------------------------------------------------
1431
+ UserTest: test_cache_key_for_should_return_the_right_key
1432
+ --------------------------------------------------------
1433
+  (0.1ms) SAVEPOINT active_record_1
1434
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 14:08:37.050590"], ["updated_at", "2016-01-13 14:08:37.050590"]]
1435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1436
+  (0.1ms) rollback transaction
1437
+  (0.1ms) begin transaction
1438
+ ----------------------------------------------------------------------------------------
1439
+ UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
1440
+ ----------------------------------------------------------------------------------------
1441
+  (0.1ms) SAVEPOINT active_record_1
1442
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 14:08:37.085704"], ["updated_at", "2016-01-13 14:08:37.085704"]]
1443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1444
+  (0.0ms) SAVEPOINT active_record_1
1445
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 14:08:37.087158"], ["updated_at", "2016-01-13 14:08:37.087158"]]
1446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1447
+  (0.1ms) SAVEPOINT active_record_1
1448
+ 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 14:08:37.092735"], ["updated_at", "2016-01-13 14:08:37.092735"]]
1449
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1450
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1452
+  (0.0ms) SAVEPOINT active_record_1
1453
+ 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 14:08:37.103632"], ["updated_at", "2016-01-13 14:08:37.103632"]]
1454
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1455
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1457
+  (0.0ms) SAVEPOINT active_record_1
1458
+ 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 14:08:37.105526"], ["updated_at", "2016-01-13 14:08:37.105526"]]
1459
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1460
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1462
+ Processing by UsersController#index as HTML
1463
+ User Load (0.1ms) SELECT "users".* FROM "users"
1464
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 14:08:37 UTC (0.1ms)
1465
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 14:08:37 UTC (0.5ms)
1466
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1467
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1468
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 14:08:37 UTC (0.0ms)
1469
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1470
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 14:08:37 UTC (0.4ms)
1471
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 14:08:37 UTC (0.0ms)
1472
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 14:08:37 UTC (0.4ms)
1473
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1474
+ Read fragment views/ (0.0ms)
1475
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
1476
+ Write fragment views/ (0.4ms)
1477
+ Rendered users/index.html.erb within layouts/application (6.9ms)
1478
+ Completed 200 OK in 160ms (Views: 159.4ms | ActiveRecord: 0.4ms)
1479
+  (0.0ms) SAVEPOINT active_record_1
1480
+ SQL (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 14:08:37.269769"], ["id", 1]]
1481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1482
+ Processing by UsersController#index as HTML
1483
+ User Load (0.1ms) SELECT "users".* FROM "users"
1484
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 14:08:37 UTC (0.0ms)
1485
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 14:08:37 UTC (0.5ms)
1486
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1487
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1488
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 14:08:37 UTC (0.1ms)
1489
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 14:08:37 UTC (0.1ms)
1490
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1491
+ Read fragment views/ (0.1ms)
1492
+ Rendered users/index.html.erb within layouts/application (3.1ms)
1493
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.5ms)
1494
+ Processing by UsersController#index as HTML
1495
+ User Load (0.1ms) SELECT "users".* FROM "users"
1496
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 14:08:37 UTC (0.1ms)
1497
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1498
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1499
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 14:08:37 UTC (0.1ms)
1500
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 14:08:37 UTC (0.1ms)
1501
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1502
+ Read fragment views/ (0.1ms)
1503
+ Rendered users/index.html.erb within layouts/application (2.4ms)
1504
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.7ms)
1505
+  (0.1ms) rollback transaction
1506
+  (0.1ms) begin transaction
1507
+ ------------------------------------------------------------------------------
1508
+ UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
1509
+ ------------------------------------------------------------------------------
1510
+  (0.0ms) SAVEPOINT active_record_1
1511
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 14:08:37.282481"], ["updated_at", "2016-01-13 14:08:37.282481"]]
1512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1513
+  (0.0ms) SAVEPOINT active_record_1
1514
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 14:08:37.283541"], ["updated_at", "2016-01-13 14:08:37.283541"]]
1515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1516
+  (0.0ms) SAVEPOINT active_record_1
1517
+ 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 14:08:37.284608"], ["updated_at", "2016-01-13 14:08:37.284608"]]
1518
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1519
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1521
+  (0.0ms) SAVEPOINT active_record_1
1522
+ 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 14:08:37.286454"], ["updated_at", "2016-01-13 14:08:37.286454"]]
1523
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1524
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1526
+  (0.0ms) SAVEPOINT active_record_1
1527
+ 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 14:08:37.288071"], ["updated_at", "2016-01-13 14:08:37.288071"]]
1528
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1529
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1530
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1531
+ Processing by UsersController#show as HTML
1532
+ Parameters: {"id"=>"1"}
1533
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1534
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 14:08:37 UTC (0.1ms)
1535
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 14:08:37 UTC (0.4ms)
1536
+ Rendered users/show.html.erb within layouts/application (1.0ms)
1537
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
1538
+  (0.0ms) SAVEPOINT active_record_1
1539
+ SQL (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 14:08:37.293688"], ["id", 1]]
1540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1541
+ Processing by UsersController#show as HTML
1542
+ Parameters: {"id"=>"1"}
1543
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1544
+ Read fragment views/spec-show/user-1/updated_at-2016-01-13 14:08:37 UTC (0.0ms)
1545
+ Write fragment views/spec-show/user-1/updated_at-2016-01-13 14:08:37 UTC (0.4ms)
1546
+ Rendered users/show.html.erb within layouts/application (0.7ms)
1547
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
1548
+  (0.1ms) rollback transaction
1549
+  (0.0ms) begin transaction
1550
+ -------------------------------------------------------------------------------------------
1551
+ UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
1552
+ -------------------------------------------------------------------------------------------
1553
+  (0.0ms) SAVEPOINT active_record_1
1554
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Hans"], ["created_at", "2016-01-13 14:08:37.298096"], ["updated_at", "2016-01-13 14:08:37.298096"]]
1555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1556
+  (0.0ms) SAVEPOINT active_record_1
1557
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Xaver"], ["created_at", "2016-01-13 14:08:37.299170"], ["updated_at", "2016-01-13 14:08:37.299170"]]
1558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1559
+  (0.0ms) SAVEPOINT active_record_1
1560
+ 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 14:08:37.300197"], ["updated_at", "2016-01-13 14:08:37.300197"]]
1561
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1562
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1564
+  (0.0ms) SAVEPOINT active_record_1
1565
+ 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 14:08:37.301973"], ["updated_at", "2016-01-13 14:08:37.301973"]]
1566
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1567
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1569
+  (0.0ms) SAVEPOINT active_record_1
1570
+ 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 14:08:37.303559"], ["updated_at", "2016-01-13 14:08:37.303559"]]
1571
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1572
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1574
+ Processing by UsersController#index as HTML
1575
+ User Load (0.1ms) SELECT "users".* FROM "users"
1576
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 14:08:37 UTC (0.1ms)
1577
+ Write fragment views/spec-row_name/user-1/updated_at-2016-01-13 14:08:37 UTC (0.4ms)
1578
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1579
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1580
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 14:08:37 UTC (0.1ms)
1581
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1582
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 14:08:37 UTC (0.5ms)
1583
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 14:08:37 UTC (0.1ms)
1584
+ Write fragment views/spec-row_name/user-2/updated_at-2016-01-13 14:08:37 UTC (0.4ms)
1585
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1586
+ Read fragment views/ (0.1ms)
1587
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 2]]
1588
+ Write fragment views/ (0.6ms)
1589
+ Rendered users/index.html.erb within layouts/application (6.0ms)
1590
+ Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.3ms)
1591
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1592
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1593
+  (0.0ms) SAVEPOINT active_record_1
1594
+ SQL (0.1ms) UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 14:08:37.314514"], ["id", 1]]
1595
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1597
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1598
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1599
+ Processing by UsersController#index as HTML
1600
+ User Load (0.1ms) SELECT "users".* FROM "users"
1601
+ Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 14:08:37 UTC (0.1ms)
1602
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1603
+  (0.1ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1604
+ Read fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 14:08:37 UTC (0.0ms)
1605
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1606
+ Write fragment views/spec-users_shoes/user-1/last_updated_shoe-2016-01-13 14:08:37 UTC (0.5ms)
1607
+ Read fragment views/spec-row_name/user-2/updated_at-2016-01-13 14:08:37 UTC (0.1ms)
1608
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 2]]
1609
+ Read fragment views/ (0.1ms)
1610
+ Rendered users/index.html.erb within layouts/application (3.9ms)
1611
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.5ms)
1612
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
1613
+  (0.0ms) SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
1614
+  (0.1ms) rollback transaction