manage_cache 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +5 -0
- data/Rakefile +34 -0
- data/lib/manage_cache/version.rb +3 -0
- data/lib/manage_cache.rb +93 -0
- data/lib/tasks/manage_cache_tasks.rake +4 -0
- data/test/cache_dumper_test.rb +9 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/javascripts/shoes.js +2 -0
- data/test/dummy/app/assets/javascripts/users.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/assets/stylesheets/shoes.css +4 -0
- data/test/dummy/app/assets/stylesheets/users.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/users_controller.rb +9 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/shoe.rb +11 -0
- data/test/dummy/app/models/user.rb +11 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/users/index.html.erb +38 -0
- data/test/dummy/app/views/users/show.html.erb +3 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20160108161921_create_users.rb +9 -0
- data/test/dummy/db/migrate/20160112120846_create_shoes.rb +11 -0
- data/test/dummy/db/schema.rb +30 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +1614 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/controllers/users_controller_test.rb +57 -0
- data/test/dummy/test/fixtures/shoes.yml +9 -0
- data/test/dummy/test/fixtures/users.yml +7 -0
- data/test/dummy/test/models/user_test.rb +14 -0
- data/test/test_helper.rb +21 -0
- metadata +191 -0
@@ -0,0 +1,1614 @@
|
|
1
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3
|
+
--------------------------------------------------------
|
4
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
5
|
+
--------------------------------------------------------
|
6
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11
|
+
---------------------------
|
12
|
+
ManageCacheTest: test_truth
|
13
|
+
---------------------------
|
14
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
15
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
16
|
+
-------------------------------------------------------------------------------------------
|
17
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
18
|
+
-------------------------------------------------------------------------------------------
|
19
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 11:51:01.524216"], ["updated_at", "2016-01-13 11:51:01.524216"]]
|
21
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
22
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
23
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
25
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
26
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:51:01.530949"], ["updated_at", "2016-01-13 11:51:01.530949"]]
|
27
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
28
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
29
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
30
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
31
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:51:01.541812"], ["updated_at", "2016-01-13 11:51:01.541812"]]
|
32
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
33
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
34
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:51:01.543685"], ["updated_at", "2016-01-13 11:51:01.543685"]]
|
37
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
38
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
39
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
40
|
+
Processing by UsersController#index as HTML
|
41
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
45
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
52
|
+
Read fragment views/ (0.0ms)
|
53
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
58
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
59
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
60
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 11:51:01.702251"], ["id", 1]]
|
61
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
62
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
63
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
64
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
65
|
+
Processing by UsersController#index as HTML
|
66
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
67
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:01 UTC (0.1ms)
|
68
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
69
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
79
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
80
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
81
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
82
|
+
------------------------------------------------------------------------------
|
83
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
84
|
+
------------------------------------------------------------------------------
|
85
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
86
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 11:51:01.713085"], ["updated_at", "2016-01-13 11:51:01.713085"]]
|
87
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
88
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
89
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
91
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
92
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:51:01.715168"], ["updated_at", "2016-01-13 11:51:01.715168"]]
|
93
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
94
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
95
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
96
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
97
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:51:01.716893"], ["updated_at", "2016-01-13 11:51:01.716893"]]
|
98
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
99
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
100
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
101
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
102
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:51:01.718613"], ["updated_at", "2016-01-13 11:51:01.718613"]]
|
103
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
104
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
105
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
106
|
+
Processing by UsersController#show as HTML
|
107
|
+
Parameters: {"id"=>"1"}
|
108
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
114
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-13 11:51:01.723726"], ["id", 1]]
|
115
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
116
|
+
Processing by UsersController#show as HTML
|
117
|
+
Parameters: {"id"=>"1"}
|
118
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
124
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
125
|
+
----------------------------------------------------------------------------------------
|
126
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
127
|
+
----------------------------------------------------------------------------------------
|
128
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
129
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 11:51:01.727827"], ["updated_at", "2016-01-13 11:51:01.727827"]]
|
130
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
131
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
132
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
134
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
135
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:51:01.729906"], ["updated_at", "2016-01-13 11:51:01.729906"]]
|
136
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
137
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
138
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
139
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:51:01.731642"], ["updated_at", "2016-01-13 11:51:01.731642"]]
|
141
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
142
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
143
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
144
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
145
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:51:01.733172"], ["updated_at", "2016-01-13 11:51:01.733172"]]
|
146
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
147
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
148
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
149
|
+
Processing by UsersController#index as HTML
|
150
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
154
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
161
|
+
Read fragment views/ (0.0ms)
|
162
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
167
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:51:05.542018"], ["id", 1]]
|
168
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
169
|
+
Processing by UsersController#index as HTML
|
170
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
174
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
185
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
193
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
194
|
+
-----------------------------------------
|
195
|
+
ShoesControllerTest: test_should_get_edit
|
196
|
+
-----------------------------------------
|
197
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
198
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.557292"], ["updated_at", "2016-01-13 11:51:05.557292"]]
|
199
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
200
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
201
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
203
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
204
|
+
Processing by ShoesController#edit as HTML
|
205
|
+
Parameters: {"id"=>"1"}
|
206
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
211
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
212
|
+
--------------------------------------------
|
213
|
+
ShoesControllerTest: test_should_update_shoe
|
214
|
+
--------------------------------------------
|
215
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
216
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.577677"], ["updated_at", "2016-01-13 11:51:05.577677"]]
|
217
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
218
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
219
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
221
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
222
|
+
Processing by ShoesController#update as HTML
|
223
|
+
Parameters: {"shoe"=>{"name"=>"Puma", "user_id"=>"1"}, "id"=>"1"}
|
224
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1[0m [["id", 1]]
|
225
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
226
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
227
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
228
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229
|
+
Redirected to http://test.host/shoes/1
|
230
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
231
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
232
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
233
|
+
------------------------------------------
|
234
|
+
ShoesControllerTest: test_should_get_index
|
235
|
+
------------------------------------------
|
236
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
237
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.584290"], ["updated_at", "2016-01-13 11:51:05.584290"]]
|
238
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
242
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
243
|
+
Processing by ShoesController#index as HTML
|
244
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes"[0m
|
245
|
+
Rendered shoes/index.html.erb within layouts/application (0.9ms)
|
246
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
247
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
248
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
249
|
+
--------------------------------------------
|
250
|
+
ShoesControllerTest: test_should_create_shoe
|
251
|
+
--------------------------------------------
|
252
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.590539"], ["updated_at", "2016-01-13 11:51:05.590539"]]
|
254
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
255
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
256
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
258
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
259
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "shoes"[0m
|
260
|
+
Processing by ShoesController#create as HTML
|
261
|
+
Parameters: {"shoe"=>{"name"=>"Puma", "user_id"=>"1"}}
|
262
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
263
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:05.595183"], ["updated_at", "2016-01-13 11:51:05.595183"]]
|
264
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
265
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
266
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
267
|
+
Redirected to http://test.host/shoes/2
|
268
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
269
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "shoes"[0m
|
270
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
271
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
272
|
+
----------------------------------------
|
273
|
+
ShoesControllerTest: test_should_get_new
|
274
|
+
----------------------------------------
|
275
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
276
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.598249"], ["updated_at", "2016-01-13 11:51:05.598249"]]
|
277
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
278
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
279
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
281
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
287
|
+
[1m[35m (0.0ms)[0m begin transaction
|
288
|
+
---------------------------------------------
|
289
|
+
ShoesControllerTest: test_should_destroy_shoe
|
290
|
+
---------------------------------------------
|
291
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
292
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
294
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
295
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:05.605804"], ["updated_at", "2016-01-13 11:51:05.605804"]]
|
296
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
297
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "shoes"
|
299
|
+
Processing by ShoesController#destroy as HTML
|
300
|
+
Parameters: {"id"=>"1"}
|
301
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1[0m [["id", 1]]
|
302
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
303
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
304
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
305
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "shoes" WHERE "shoes"."id" = ?[0m [["id", 1]]
|
306
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
307
|
+
Redirected to http://test.host/shoes
|
308
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
309
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "shoes"[0m
|
310
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
311
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
312
|
+
------------------------------------------
|
313
|
+
ShoesControllerTest: test_should_show_shoe
|
314
|
+
------------------------------------------
|
315
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
316
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:51:05.610840"], ["updated_at", "2016-01-13 11:51:05.610840"]]
|
317
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
318
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
319
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
321
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
322
|
+
Processing by ShoesController#show as HTML
|
323
|
+
Parameters: {"id"=>"1"}
|
324
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
328
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
329
|
+
[1m[35m (0.1ms)[0m begin transaction
|
330
|
+
----------------------------------------------------------------------------------------
|
331
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
332
|
+
----------------------------------------------------------------------------------------
|
333
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
334
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
336
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
337
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.652896"], ["updated_at", "2016-01-13 11:51:30.652896"]]
|
338
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
339
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
340
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.658472"], ["updated_at", "2016-01-13 11:51:30.658472"]]
|
341
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
342
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
343
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
344
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
345
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.668658"], ["updated_at", "2016-01-13 11:51:30.668658"]]
|
346
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
347
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
348
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
349
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
350
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.670470"], ["updated_at", "2016-01-13 11:51:30.670470"]]
|
351
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
352
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
353
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
354
|
+
Processing by UsersController#index as HTML
|
355
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
359
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
372
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-13 11:51:30.826950"], ["id", 1]]
|
373
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
374
|
+
Processing by UsersController#index as HTML
|
375
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
379
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
388
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:51:30 UTC (0.1ms)
|
389
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
390
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
398
|
+
[1m[35m (0.0ms)[0m begin transaction
|
399
|
+
-------------------------------------------------------------------------------------------
|
400
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
401
|
+
-------------------------------------------------------------------------------------------
|
402
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
403
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
405
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
406
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.840566"], ["updated_at", "2016-01-13 11:51:30.840566"]]
|
407
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
408
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
409
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.841639"], ["updated_at", "2016-01-13 11:51:30.841639"]]
|
410
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
411
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
412
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
413
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
414
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.843722"], ["updated_at", "2016-01-13 11:51:30.843722"]]
|
415
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
416
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
417
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
418
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
419
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.845436"], ["updated_at", "2016-01-13 11:51:30.845436"]]
|
420
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
421
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
422
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
423
|
+
Processing by UsersController#index as HTML
|
424
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
428
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
441
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
442
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
443
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-13 11:51:30.855938"], ["id", 1]]
|
444
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
445
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
446
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
447
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
448
|
+
Processing by UsersController#index as HTML
|
449
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
452
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
462
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
463
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
464
|
+
[1m[35m (0.0ms)[0m begin transaction
|
465
|
+
------------------------------------------------------------------------------
|
466
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
467
|
+
------------------------------------------------------------------------------
|
468
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
469
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
471
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
472
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.865003"], ["updated_at", "2016-01-13 11:51:30.865003"]]
|
473
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
474
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
475
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.866435"], ["updated_at", "2016-01-13 11:51:30.866435"]]
|
476
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
477
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
478
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
479
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
480
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.868981"], ["updated_at", "2016-01-13 11:51:30.868981"]]
|
481
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
482
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
483
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
484
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
485
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.870680"], ["updated_at", "2016-01-13 11:51:30.870680"]]
|
486
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
487
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
488
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
489
|
+
Processing by UsersController#show as HTML
|
490
|
+
Parameters: {"id"=>"1"}
|
491
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
497
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:51:30.878509"], ["id", 1]]
|
498
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
499
|
+
Processing by UsersController#show as HTML
|
500
|
+
Parameters: {"id"=>"1"}
|
501
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
507
|
+
[1m[35m (0.0ms)[0m begin transaction
|
508
|
+
---------------------------
|
509
|
+
ManageCacheTest: test_truth
|
510
|
+
---------------------------
|
511
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
512
|
+
[1m[35m (0.0ms)[0m begin transaction
|
513
|
+
------------------------------------------
|
514
|
+
ShoesControllerTest: test_should_show_shoe
|
515
|
+
------------------------------------------
|
516
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
517
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
519
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
520
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.887230"], ["updated_at", "2016-01-13 11:51:30.887230"]]
|
521
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
522
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
523
|
+
Processing by ShoesController#show as HTML
|
524
|
+
Parameters: {"id"=>"1"}
|
525
|
+
[1m[35mShoe Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
529
|
+
[1m[35m (0.0ms)[0m begin transaction
|
530
|
+
-----------------------------------------
|
531
|
+
ShoesControllerTest: test_should_get_edit
|
532
|
+
-----------------------------------------
|
533
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
534
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
536
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
537
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.895428"], ["updated_at", "2016-01-13 11:51:30.895428"]]
|
538
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
539
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
540
|
+
Processing by ShoesController#edit as HTML
|
541
|
+
Parameters: {"id"=>"1"}
|
542
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
547
|
+
[1m[35m (0.0ms)[0m begin transaction
|
548
|
+
------------------------------------------
|
549
|
+
ShoesControllerTest: test_should_get_index
|
550
|
+
------------------------------------------
|
551
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
552
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
554
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
555
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.911428"], ["updated_at", "2016-01-13 11:51:30.911428"]]
|
556
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
557
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
558
|
+
Processing by ShoesController#index as HTML
|
559
|
+
[1m[35mShoe Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
563
|
+
[1m[35m (0.0ms)[0m begin transaction
|
564
|
+
--------------------------------------------
|
565
|
+
ShoesControllerTest: test_should_update_shoe
|
566
|
+
--------------------------------------------
|
567
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
568
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
570
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
571
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.917494"], ["updated_at", "2016-01-13 11:51:30.917494"]]
|
572
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
573
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
574
|
+
Processing by ShoesController#update as HTML
|
575
|
+
Parameters: {"shoe"=>{"name"=>"Puma", "user_id"=>"1"}, "id"=>"1"}
|
576
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
|
577
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
578
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
579
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
580
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
581
|
+
Redirected to http://test.host/shoes/1
|
582
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
583
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
584
|
+
[1m[35m (0.0ms)[0m begin transaction
|
585
|
+
----------------------------------------
|
586
|
+
ShoesControllerTest: test_should_get_new
|
587
|
+
----------------------------------------
|
588
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
589
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
591
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
592
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.923709"], ["updated_at", "2016-01-13 11:51:30.923709"]]
|
593
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
594
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
600
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
601
|
+
--------------------------------------------
|
602
|
+
ShoesControllerTest: test_should_create_shoe
|
603
|
+
--------------------------------------------
|
604
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
605
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.929187"], ["updated_at", "2016-01-13 11:51:30.929187"]]
|
606
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
607
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
608
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
610
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
611
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "shoes"[0m
|
612
|
+
Processing by ShoesController#create as HTML
|
613
|
+
Parameters: {"shoe"=>{"name"=>"Puma", "user_id"=>"1"}}
|
614
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
615
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Puma"], ["user_id", 1], ["created_at", "2016-01-13 11:51:30.933970"], ["updated_at", "2016-01-13 11:51:30.933970"]]
|
616
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
617
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
618
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
619
|
+
Redirected to http://test.host/shoes/2
|
620
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
621
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "shoes"[0m
|
622
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
623
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
624
|
+
---------------------------------------------
|
625
|
+
ShoesControllerTest: test_should_destroy_shoe
|
626
|
+
---------------------------------------------
|
627
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
628
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:51:30.937105"], ["updated_at", "2016-01-13 11:51:30.937105"]]
|
629
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
630
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
631
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
633
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
634
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "shoes"[0m
|
635
|
+
Processing by ShoesController#destroy as HTML
|
636
|
+
Parameters: {"id"=>"1"}
|
637
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
|
638
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
639
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
640
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
641
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "shoes" WHERE "shoes"."id" = ? [["id", 1]]
|
642
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
643
|
+
Redirected to http://test.host/shoes
|
644
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
645
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "shoes"
|
646
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
647
|
+
[1m[35m (0.0ms)[0m begin transaction
|
648
|
+
--------------------------------------------------------
|
649
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
650
|
+
--------------------------------------------------------
|
651
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
652
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
654
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
655
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
656
|
+
[1m[35m (0.1ms)[0m begin transaction
|
657
|
+
-------------------------------------------------------------------------------------------
|
658
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
659
|
+
-------------------------------------------------------------------------------------------
|
660
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
661
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
663
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
664
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:52:38.733208"], ["updated_at", "2016-01-13 11:52:38.733208"]]
|
665
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
666
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
667
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:52:38.738759"], ["updated_at", "2016-01-13 11:52:38.738759"]]
|
668
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
669
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
670
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
671
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
672
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:52:38.749103"], ["updated_at", "2016-01-13 11:52:38.749103"]]
|
673
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
674
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
675
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
676
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
677
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:52:38.750986"], ["updated_at", "2016-01-13 11:52:38.750986"]]
|
678
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
679
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
680
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
681
|
+
Processing by UsersController#index as HTML
|
682
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
686
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
699
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
700
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
701
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-13 11:52:38.906223"], ["id", 1]]
|
702
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
703
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
704
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
705
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
706
|
+
Processing by UsersController#index as HTML
|
707
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
710
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
720
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
721
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
722
|
+
[1m[35m (0.0ms)[0m begin transaction
|
723
|
+
------------------------------------------------------------------------------
|
724
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
725
|
+
------------------------------------------------------------------------------
|
726
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
727
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
729
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
730
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:52:38.918067"], ["updated_at", "2016-01-13 11:52:38.918067"]]
|
731
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
732
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
733
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:52:38.919080"], ["updated_at", "2016-01-13 11:52:38.919080"]]
|
734
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
735
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
736
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
737
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
738
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:52:38.920802"], ["updated_at", "2016-01-13 11:52:38.920802"]]
|
739
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
740
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
741
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
742
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
743
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:52:38.922373"], ["updated_at", "2016-01-13 11:52:38.922373"]]
|
744
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
745
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
746
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
747
|
+
Processing by UsersController#show as HTML
|
748
|
+
Parameters: {"id"=>"1"}
|
749
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
755
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:52:38.927848"], ["id", 1]]
|
756
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
757
|
+
Processing by UsersController#show as HTML
|
758
|
+
Parameters: {"id"=>"1"}
|
759
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
765
|
+
[1m[35m (0.0ms)[0m begin transaction
|
766
|
+
----------------------------------------------------------------------------------------
|
767
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
768
|
+
----------------------------------------------------------------------------------------
|
769
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
770
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
772
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
773
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:52:38.932902"], ["updated_at", "2016-01-13 11:52:38.932902"]]
|
774
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
775
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
776
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:52:38.934024"], ["updated_at", "2016-01-13 11:52:38.934024"]]
|
777
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
778
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
779
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
780
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
781
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:52:38.935810"], ["updated_at", "2016-01-13 11:52:38.935810"]]
|
782
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
783
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
784
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
785
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
786
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:52:38.937382"], ["updated_at", "2016-01-13 11:52:38.937382"]]
|
787
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
788
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
789
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
790
|
+
Processing by UsersController#index as HTML
|
791
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
795
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
808
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-13 11:52:38.946021"], ["id", 1]]
|
809
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
810
|
+
Processing by UsersController#index as HTML
|
811
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
815
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
824
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:52:38 UTC (0.1ms)
|
825
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
826
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
834
|
+
[1m[35m (0.0ms)[0m begin transaction
|
835
|
+
---------------------------
|
836
|
+
ManageCacheTest: test_truth
|
837
|
+
---------------------------
|
838
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
839
|
+
[1m[35m (0.0ms)[0m begin transaction
|
840
|
+
--------------------------------------------------------
|
841
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
842
|
+
--------------------------------------------------------
|
843
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
844
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
846
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
847
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
848
|
+
[1m[35m (0.1ms)[0m begin transaction
|
849
|
+
----------------------------------------------------------------------------------------
|
850
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
851
|
+
----------------------------------------------------------------------------------------
|
852
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
853
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
855
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
856
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:53:15.712074"], ["updated_at", "2016-01-13 11:53:15.712074"]]
|
857
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
858
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
859
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:53:15.723905"], ["updated_at", "2016-01-13 11:53:15.723905"]]
|
860
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
861
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
862
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
863
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
864
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:53:15.735089"], ["updated_at", "2016-01-13 11:53:15.735089"]]
|
865
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
866
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
867
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
868
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
869
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:53:15.736989"], ["updated_at", "2016-01-13 11:53:15.736989"]]
|
870
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
871
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
872
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
873
|
+
Processing by UsersController#index as HTML
|
874
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
878
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
891
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-13 11:53:15.899523"], ["id", 1]]
|
892
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
893
|
+
Processing by UsersController#index as HTML
|
894
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
898
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
907
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:15 UTC (0.1ms)
|
908
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
909
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
917
|
+
[1m[35m (0.0ms)[0m begin transaction
|
918
|
+
------------------------------------------------------------------------------
|
919
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
920
|
+
------------------------------------------------------------------------------
|
921
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
922
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
924
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
925
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:53:15.913441"], ["updated_at", "2016-01-13 11:53:15.913441"]]
|
926
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
927
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
928
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:53:15.914441"], ["updated_at", "2016-01-13 11:53:15.914441"]]
|
929
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
930
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
931
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
932
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
933
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:53:15.916134"], ["updated_at", "2016-01-13 11:53:15.916134"]]
|
934
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
935
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
936
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
937
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
938
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:53:15.917726"], ["updated_at", "2016-01-13 11:53:15.917726"]]
|
939
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
940
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
941
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
942
|
+
Processing by UsersController#show as HTML
|
943
|
+
Parameters: {"id"=>"1"}
|
944
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
950
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:53:15.923180"], ["id", 1]]
|
951
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
952
|
+
Processing by UsersController#show as HTML
|
953
|
+
Parameters: {"id"=>"1"}
|
954
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
960
|
+
[1m[35m (0.0ms)[0m begin transaction
|
961
|
+
-------------------------------------------------------------------------------------------
|
962
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
963
|
+
-------------------------------------------------------------------------------------------
|
964
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
965
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
967
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
968
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:53:15.928158"], ["updated_at", "2016-01-13 11:53:15.928158"]]
|
969
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
970
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
971
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:53:15.929122"], ["updated_at", "2016-01-13 11:53:15.929122"]]
|
972
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
973
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
974
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
975
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
976
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:53:15.930853"], ["updated_at", "2016-01-13 11:53:15.930853"]]
|
977
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
978
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
979
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
980
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
981
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:53:15.932466"], ["updated_at", "2016-01-13 11:53:15.932466"]]
|
982
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
983
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
984
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
985
|
+
Processing by UsersController#index as HTML
|
986
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
990
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1003
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1004
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1005
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-13 11:53:15.942671"], ["id", 1]]
|
1006
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1007
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1008
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1009
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1010
|
+
Processing by UsersController#index as HTML
|
1011
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1014
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1024
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1025
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1026
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1027
|
+
---------------------------
|
1028
|
+
ManageCacheTest: test_truth
|
1029
|
+
---------------------------
|
1030
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1031
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1032
|
+
--------------------------------------------------------
|
1033
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
1034
|
+
--------------------------------------------------------
|
1035
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1036
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1038
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1039
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1040
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1041
|
+
------------------------------------------------------------------------------
|
1042
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
1043
|
+
------------------------------------------------------------------------------
|
1044
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1045
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1047
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1048
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:53:50.874314"], ["updated_at", "2016-01-13 11:53:50.874314"]]
|
1049
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1050
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1051
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:53:50.879610"], ["updated_at", "2016-01-13 11:53:50.879610"]]
|
1052
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1053
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1054
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1055
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1056
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:53:50.890130"], ["updated_at", "2016-01-13 11:53:50.890130"]]
|
1057
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1058
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1059
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1060
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1061
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:53:50.892001"], ["updated_at", "2016-01-13 11:53:50.892001"]]
|
1062
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1063
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1064
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1065
|
+
Processing by UsersController#show as HTML
|
1066
|
+
Parameters: {"id"=>"1"}
|
1067
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1073
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 11:53:51.050017"], ["id", 1]]
|
1074
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1075
|
+
Processing by UsersController#show as HTML
|
1076
|
+
Parameters: {"id"=>"1"}
|
1077
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1083
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1084
|
+
-------------------------------------------------------------------------------------------
|
1085
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
1086
|
+
-------------------------------------------------------------------------------------------
|
1087
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1088
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1090
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1091
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:53:51.056453"], ["updated_at", "2016-01-13 11:53:51.056453"]]
|
1092
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1093
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1094
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:53:51.057470"], ["updated_at", "2016-01-13 11:53:51.057470"]]
|
1095
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1096
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1097
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1098
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1099
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:53:51.059338"], ["updated_at", "2016-01-13 11:53:51.059338"]]
|
1100
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1101
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1102
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1103
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1104
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:53:51.060891"], ["updated_at", "2016-01-13 11:53:51.060891"]]
|
1105
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1106
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1107
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1108
|
+
Processing by UsersController#index as HTML
|
1109
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1113
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1126
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1127
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1128
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-13 11:53:51.071048"], ["id", 1]]
|
1129
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1130
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1131
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1132
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1133
|
+
Processing by UsersController#index as HTML
|
1134
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1137
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1147
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1148
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1149
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1150
|
+
----------------------------------------------------------------------------------------
|
1151
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
1152
|
+
----------------------------------------------------------------------------------------
|
1153
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1154
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1156
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1157
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 11:53:51.080294"], ["updated_at", "2016-01-13 11:53:51.080294"]]
|
1158
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1159
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1160
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 11:53:51.081526"], ["updated_at", "2016-01-13 11:53:51.081526"]]
|
1161
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1162
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1163
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1164
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1165
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 11:53:51.083802"], ["updated_at", "2016-01-13 11:53:51.083802"]]
|
1166
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1167
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1168
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1169
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1170
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 11:53:51.085960"], ["updated_at", "2016-01-13 11:53:51.085960"]]
|
1171
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1172
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1173
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1174
|
+
Processing by UsersController#index as HTML
|
1175
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1179
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1192
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-13 11:53:51.093792"], ["id", 1]]
|
1193
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1194
|
+
Processing by UsersController#index as HTML
|
1195
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1199
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
1208
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 11:53:51 UTC (0.1ms)
|
1209
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1210
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1218
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1219
|
+
--------------------------------------------------------
|
1220
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
1221
|
+
--------------------------------------------------------
|
1222
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1223
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1225
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1226
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1227
|
+
---------------------------
|
1228
|
+
ManageCacheTest: test_truth
|
1229
|
+
---------------------------
|
1230
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1231
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1232
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1233
|
+
-------------------------------------------------------------------------------------------
|
1234
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
1235
|
+
-------------------------------------------------------------------------------------------
|
1236
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1237
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1239
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1240
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 12:06:11.390012"], ["updated_at", "2016-01-13 12:06:11.390012"]]
|
1241
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1242
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1243
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 12:06:11.395391"], ["updated_at", "2016-01-13 12:06:11.395391"]]
|
1244
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1245
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1246
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1247
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1248
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 12:06:11.405984"], ["updated_at", "2016-01-13 12:06:11.405984"]]
|
1249
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1250
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1251
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1252
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1253
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 12:06:11.407818"], ["updated_at", "2016-01-13 12:06:11.407818"]]
|
1254
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1255
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1256
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1257
|
+
Processing by UsersController#index as HTML
|
1258
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1262
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.1ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1275
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1276
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1277
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ?[0m [["color", "violet"], ["updated_at", "2016-01-13 12:06:11.569270"], ["id", 1]]
|
1278
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1279
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1280
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1281
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1282
|
+
Processing by UsersController#index as HTML
|
1283
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1286
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1296
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1297
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1298
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1299
|
+
----------------------------------------------------------------------------------------
|
1300
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
1301
|
+
----------------------------------------------------------------------------------------
|
1302
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1303
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1305
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1306
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 12:06:11.581381"], ["updated_at", "2016-01-13 12:06:11.581381"]]
|
1307
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1308
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1309
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 12:06:11.582438"], ["updated_at", "2016-01-13 12:06:11.582438"]]
|
1310
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1311
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1312
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1313
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1314
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 12:06:11.584199"], ["updated_at", "2016-01-13 12:06:11.584199"]]
|
1315
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1316
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1317
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1318
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1319
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 12:06:11.585810"], ["updated_at", "2016-01-13 12:06:11.585810"]]
|
1320
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1321
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1322
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1323
|
+
Processing by UsersController#index as HTML
|
1324
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1328
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1341
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-13 12:06:11.594066"], ["id", 1]]
|
1342
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1343
|
+
Processing by UsersController#index as HTML
|
1344
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1348
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
1357
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 12:06:11 UTC (0.1ms)
|
1358
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1359
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1367
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1368
|
+
------------------------------------------------------------------------------
|
1369
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
1370
|
+
------------------------------------------------------------------------------
|
1371
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1372
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1374
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1375
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Xaver"], ["created_at", "2016-01-13 12:06:11.605031"], ["updated_at", "2016-01-13 12:06:11.605031"]]
|
1376
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1377
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1378
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 12:06:11.606408"], ["updated_at", "2016-01-13 12:06:11.606408"]]
|
1379
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1380
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1381
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1382
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1383
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 12:06:11.608784"], ["updated_at", "2016-01-13 12:06:11.608784"]]
|
1384
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1385
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1386
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1387
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1388
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 12:06:11.610934"], ["updated_at", "2016-01-13 12:06:11.610934"]]
|
1389
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1390
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1391
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1392
|
+
Processing by UsersController#show as HTML
|
1393
|
+
Parameters: {"id"=>"1"}
|
1394
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1400
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 12:06:11.615891"], ["id", 1]]
|
1401
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1402
|
+
Processing by UsersController#show as HTML
|
1403
|
+
Parameters: {"id"=>"1"}
|
1404
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1410
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1411
|
+
---------------------------
|
1412
|
+
ManageCacheTest: test_truth
|
1413
|
+
---------------------------
|
1414
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1415
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1416
|
+
--------------------------------------------------------
|
1417
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
1418
|
+
--------------------------------------------------------
|
1419
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1420
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1422
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1423
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1424
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1425
|
+
---------------------------
|
1426
|
+
ManageCacheTest: test_truth
|
1427
|
+
---------------------------
|
1428
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1429
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1430
|
+
--------------------------------------------------------
|
1431
|
+
UserTest: test_cache_key_for_should_return_the_right_key
|
1432
|
+
--------------------------------------------------------
|
1433
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1434
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1436
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1437
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1438
|
+
----------------------------------------------------------------------------------------
|
1439
|
+
UsersControllerTest: test_users#index_row_name-cache_should_be_updated_after_user_update
|
1440
|
+
----------------------------------------------------------------------------------------
|
1441
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1442
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 14:08:37.085704"], ["updated_at", "2016-01-13 14:08:37.085704"]]
|
1443
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1444
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1445
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1447
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1448
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 14:08:37.092735"], ["updated_at", "2016-01-13 14:08:37.092735"]]
|
1449
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1450
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1451
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1452
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1453
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 14:08:37.103632"], ["updated_at", "2016-01-13 14:08:37.103632"]]
|
1454
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1455
|
+
[1m[35m (0.1ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1456
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1457
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1458
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 14:08:37.105526"], ["updated_at", "2016-01-13 14:08:37.105526"]]
|
1459
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1460
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1461
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1462
|
+
Processing by UsersController#index as HTML
|
1463
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[35mShoe Load (0.1ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1467
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
1474
|
+
Read fragment views/ (0.0ms)
|
1475
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1480
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Peter"], ["updated_at", "2016-01-13 14:08:37.269769"], ["id", 1]]
|
1481
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1482
|
+
Processing by UsersController#index as HTML
|
1483
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1487
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1498
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1506
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1507
|
+
------------------------------------------------------------------------------
|
1508
|
+
UsersControllerTest: test_users#show_cache_should_be_updated_after_user_update
|
1509
|
+
------------------------------------------------------------------------------
|
1510
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1511
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 14:08:37.282481"], ["updated_at", "2016-01-13 14:08:37.282481"]]
|
1512
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1513
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1514
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1516
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1517
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 14:08:37.284608"], ["updated_at", "2016-01-13 14:08:37.284608"]]
|
1518
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1519
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1520
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1521
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1522
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 14:08:37.286454"], ["updated_at", "2016-01-13 14:08:37.286454"]]
|
1523
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1524
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1525
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1526
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1527
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 14:08:37.288071"], ["updated_at", "2016-01-13 14:08:37.288071"]]
|
1528
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1529
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1530
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1531
|
+
Processing by UsersController#show as HTML
|
1532
|
+
Parameters: {"id"=>"1"}
|
1533
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1539
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Peter"], ["updated_at", "2016-01-13 14:08:37.293688"], ["id", 1]]
|
1540
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1541
|
+
Processing by UsersController#show as HTML
|
1542
|
+
Parameters: {"id"=>"1"}
|
1543
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1549
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1550
|
+
-------------------------------------------------------------------------------------------
|
1551
|
+
UsersControllerTest: test_users#index_users_shoes-cache_should_be_updated_after_user_update
|
1552
|
+
-------------------------------------------------------------------------------------------
|
1553
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1554
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Hans"], ["created_at", "2016-01-13 14:08:37.298096"], ["updated_at", "2016-01-13 14:08:37.298096"]]
|
1555
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1556
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1557
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1559
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1560
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Puma"], ["color", "red"], ["user_id", 1], ["created_at", "2016-01-13 14:08:37.300197"], ["updated_at", "2016-01-13 14:08:37.300197"]]
|
1561
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1562
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1563
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1564
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1565
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Nike"], ["color", "blue"], ["user_id", 1], ["created_at", "2016-01-13 14:08:37.301973"], ["updated_at", "2016-01-13 14:08:37.301973"]]
|
1566
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1567
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1568
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1569
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1570
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "shoes" ("name", "color", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Saucony"], ["color", "yellow"], ["user_id", 1], ["created_at", "2016-01-13 14:08:37.303559"], ["updated_at", "2016-01-13 14:08:37.303559"]]
|
1571
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1572
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1573
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1574
|
+
Processing by UsersController#index as HTML
|
1575
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1579
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
1586
|
+
Read fragment views/ (0.1ms)
|
1587
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1592
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1593
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1594
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "shoes" SET "color" = ?, "updated_at" = ? WHERE "shoes"."id" = ? [["color", "violet"], ["updated_at", "2016-01-13 14:08:37.314514"], ["id", 1]]
|
1595
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1596
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1597
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 1]]
|
1598
|
+
[1m[35m (0.0ms)[0m SELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ? [["user_id", 1]]
|
1599
|
+
Processing by UsersController#index as HTML
|
1600
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
1601
|
+
Read fragment views/spec-row_name/user-1/updated_at-2016-01-13 14:08:37 UTC (0.1ms)
|
1602
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1603
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["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
|
+
[1m[35mShoe Load (0.0ms)[0m 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
|
+
[1m[36mShoe Load (0.0ms)[0m [1mSELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1[0m [["user_id", 2]]
|
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
|
+
[1m[35mShoe Load (0.0ms)[0m SELECT "shoes".* FROM "shoes" WHERE "shoes"."user_id" = ? ORDER BY "shoes"."id" DESC LIMIT 1 [["user_id", 1]]
|
1613
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("shoes"."updated_at") FROM "shoes" WHERE "shoes"."user_id" = ?[0m [["user_id", 1]]
|
1614
|
+
[1m[35m (0.1ms)[0m rollback transaction
|