user_impersonate2 0.9.2 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1089,3 +1089,2093 @@ Processing by HomeController#index as HTML
1089
1089
  Rendered home/index.html.erb within layouts/application (0.9ms)
1090
1090
  Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
1091
1091
   (0.1ms) rollback transaction
1092
+ Connecting to database specified by database.yml
1093
+  (0.8ms) begin transaction
1094
+ Processing by UserImpersonate::ImpersonateController#create as HTML
1095
+ Completed 401 Unauthorized in 2ms
1096
+ Rendered text template (0.0ms)
1097
+  (0.1ms) rollback transaction
1098
+  (0.0ms) begin transaction
1099
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
1100
+ Redirected to http://test.host/
1101
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1102
+  (0.1ms) rollback transaction
1103
+  (0.0ms) begin transaction
1104
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1105
+ Completed 401 Unauthorized in 0ms
1106
+  (0.0ms) rollback transaction
1107
+  (0.0ms) begin transaction
1108
+  (0.0ms) rollback transaction
1109
+ Connecting to database specified by database.yml
1110
+  (0.4ms) begin transaction
1111
+  (0.0ms) SAVEPOINT active_record_1
1112
+ Fixture Delete (0.1ms) DELETE FROM "users"
1113
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:27', '2014-03-19 01:34:27')
1114
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:27', '2014-03-19 01:34:27')
1115
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1116
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
1117
+
1118
+
1119
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1120
+ Processing by Devise::SessionsController#new as HTML
1121
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.1ms)
1122
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (11.8ms)
1123
+ Completed 200 OK in 20ms (Views: 19.0ms | ActiveRecord: 0.0ms)
1124
+
1125
+
1126
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1127
+ Processing by Devise::SessionsController#create as HTML
1128
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1129
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
1130
+  (0.0ms) SAVEPOINT active_record_1
1131
+  (1.5ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:34:28.184760', "current_sign_in_at" = '2014-03-19 01:34:28.184760', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:34:28.185595' WHERE "users"."id" = 2
1132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1133
+ Redirected to http://www.example.com/
1134
+ Completed 302 Found in 87ms (ActiveRecord: 0.0ms)
1135
+
1136
+
1137
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1138
+ Processing by HomeController#index as HTML
1139
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1140
+ Rendered home/index.html.erb within layouts/application (1.7ms)
1141
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
1142
+
1143
+
1144
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1145
+ Processing by HomeController#index as HTML
1146
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1147
+ Rendered home/index.html.erb within layouts/application (0.8ms)
1148
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
1149
+
1150
+
1151
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1152
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1153
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1154
+ Redirected to http://www.example.com/
1155
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
1156
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
1157
+
1158
+
1159
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1160
+ Processing by HomeController#index as HTML
1161
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1162
+ Rendered home/index.html.erb within layouts/application (0.8ms)
1163
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
1164
+  (0.2ms) rollback transaction
1165
+  (0.0ms) begin transaction
1166
+  (0.0ms) SAVEPOINT active_record_1
1167
+ Fixture Delete (0.1ms) DELETE FROM "users"
1168
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:28', '2014-03-19 01:34:28')
1169
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:28', '2014-03-19 01:34:28')
1170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1171
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
1172
+
1173
+
1174
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1175
+ Processing by Devise::SessionsController#new as HTML
1176
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
1177
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (2.2ms)
1178
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
1179
+
1180
+
1181
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1182
+ Processing by Devise::SessionsController#create as HTML
1183
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1184
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
1185
+  (0.0ms) SAVEPOINT active_record_1
1186
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:34:28.309667', "current_sign_in_at" = '2014-03-19 01:34:28.309667', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:34:28.310135' WHERE "users"."id" = 1
1187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1188
+ Redirected to http://www.example.com/
1189
+ Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
1190
+
1191
+
1192
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1193
+ Processing by HomeController#index as HTML
1194
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1195
+ Rendered home/index.html.erb within layouts/application (1.1ms)
1196
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
1197
+
1198
+
1199
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1200
+ Processing by HomeController#index as HTML
1201
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1202
+ Rendered home/index.html.erb within layouts/application (1.2ms)
1203
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
1204
+
1205
+
1206
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1207
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1208
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1209
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
1210
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
1211
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (3.1ms)
1212
+ Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.4ms)
1213
+
1214
+
1215
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1216
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1217
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
1218
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1219
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
1220
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
1221
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.5ms)
1222
+ Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)
1223
+
1224
+
1225
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1226
+ Processing by UserImpersonate::ImpersonateController#create as HTML
1227
+ Parameters: {"user_id"=>"2"}
1228
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1229
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1230
+  (0.0ms) SAVEPOINT active_record_1
1231
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:34:28.373644', "current_sign_in_at" = '2014-03-19 01:34:28.373644', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:34:28.374035' WHERE "users"."id" = 2
1232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1233
+ Redirected to http://www.example.com/
1234
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1235
+
1236
+
1237
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1238
+ Processing by HomeController#index as HTML
1239
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1240
+ Rendered home/index.html.erb within layouts/application (0.9ms)
1241
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1242
+ Rendered user_impersonate/_header.html.erb (1.3ms)
1243
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.2ms)
1244
+
1245
+
1246
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1247
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
1248
+ Parameters: {"utf8"=>"✓"}
1249
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1250
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1251
+  (0.0ms) SAVEPOINT active_record_1
1252
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:34:28.388398', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:34:28.388856' WHERE "users"."id" = 1
1253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1254
+ Redirected to http://www.example.com/
1255
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1256
+
1257
+
1258
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:28 -0700
1259
+ Processing by HomeController#index as HTML
1260
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1261
+ Rendered home/index.html.erb within layouts/application (0.9ms)
1262
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
1263
+  (0.2ms) rollback transaction
1264
+ Connecting to database specified by database.yml
1265
+  (0.3ms) begin transaction
1266
+ Processing by UserImpersonate::ImpersonateController#create as HTML
1267
+ Completed 401 Unauthorized in 1ms
1268
+ Rendered text template (0.0ms)
1269
+  (0.1ms) rollback transaction
1270
+  (0.0ms) begin transaction
1271
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
1272
+ Redirected to http://test.host/
1273
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1274
+  (0.0ms) rollback transaction
1275
+  (0.0ms) begin transaction
1276
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1277
+ Completed 401 Unauthorized in 0ms
1278
+  (0.0ms) rollback transaction
1279
+  (0.0ms) begin transaction
1280
+  (0.0ms) rollback transaction
1281
+ Connecting to database specified by database.yml
1282
+  (0.3ms) begin transaction
1283
+  (0.0ms) SAVEPOINT active_record_1
1284
+ Fixture Delete (0.1ms) DELETE FROM "users"
1285
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:38', '2014-03-19 01:34:38')
1286
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:38', '2014-03-19 01:34:38')
1287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1288
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
1289
+
1290
+
1291
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1292
+ Processing by Devise::SessionsController#new as HTML
1293
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.3ms)
1294
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (14.3ms)
1295
+ Completed 200 OK in 25ms (Views: 23.3ms | ActiveRecord: 0.0ms)
1296
+
1297
+
1298
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1299
+ Processing by Devise::SessionsController#create as HTML
1300
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1301
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
1302
+  (0.1ms) SAVEPOINT active_record_1
1303
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:34:39.158467', "current_sign_in_at" = '2014-03-19 01:34:39.158467', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:34:39.159292' WHERE "users"."id" = 2
1304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1305
+ Redirected to http://www.example.com/
1306
+ Completed 302 Found in 88ms (ActiveRecord: 0.0ms)
1307
+
1308
+
1309
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1310
+ Processing by HomeController#index as HTML
1311
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1312
+ Rendered home/index.html.erb within layouts/application (2.7ms)
1313
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.2ms)
1314
+
1315
+
1316
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1317
+ Processing by HomeController#index as HTML
1318
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1319
+ Rendered home/index.html.erb within layouts/application (1.6ms)
1320
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)
1321
+
1322
+
1323
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1324
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1325
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1326
+ Redirected to http://www.example.com/
1327
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
1328
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
1329
+
1330
+
1331
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1332
+ Processing by HomeController#index as HTML
1333
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1334
+ Rendered home/index.html.erb within layouts/application (1.2ms)
1335
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)
1336
+  (0.2ms) rollback transaction
1337
+  (0.0ms) begin transaction
1338
+  (0.1ms) SAVEPOINT active_record_1
1339
+ Fixture Delete (0.1ms) DELETE FROM "users"
1340
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:39', '2014-03-19 01:34:39')
1341
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:39', '2014-03-19 01:34:39')
1342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1343
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
1344
+
1345
+
1346
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1347
+ Processing by Devise::SessionsController#new as HTML
1348
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.0ms)
1349
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (8.2ms)
1350
+ Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.0ms)
1351
+
1352
+
1353
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1354
+ Processing by Devise::SessionsController#create as HTML
1355
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1356
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
1357
+  (0.1ms) SAVEPOINT active_record_1
1358
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:34:39.323209', "current_sign_in_at" = '2014-03-19 01:34:39.323209', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:34:39.323802' WHERE "users"."id" = 1
1359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1360
+ Redirected to http://www.example.com/
1361
+ Completed 302 Found in 84ms (ActiveRecord: 0.0ms)
1362
+
1363
+
1364
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1365
+ Processing by HomeController#index as HTML
1366
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1367
+ Rendered home/index.html.erb within layouts/application (1.1ms)
1368
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
1369
+
1370
+
1371
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1372
+ Processing by HomeController#index as HTML
1373
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1374
+ Rendered home/index.html.erb within layouts/application (1.3ms)
1375
+ Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.2ms)
1376
+
1377
+
1378
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1379
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1380
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1381
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
1382
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
1383
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.5ms)
1384
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.5ms)
1385
+
1386
+
1387
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1388
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1389
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
1390
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1391
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
1392
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
1393
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
1394
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)
1395
+
1396
+
1397
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1398
+ Processing by UserImpersonate::ImpersonateController#create as HTML
1399
+ Parameters: {"user_id"=>"2"}
1400
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1401
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1402
+  (0.0ms) SAVEPOINT active_record_1
1403
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:34:39.355470', "current_sign_in_at" = '2014-03-19 01:34:39.355470', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:34:39.355750' WHERE "users"."id" = 2
1404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1405
+ Redirected to http://www.example.com/
1406
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1407
+
1408
+
1409
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1410
+ Processing by HomeController#index as HTML
1411
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1412
+ Rendered home/index.html.erb within layouts/application (0.6ms)
1413
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1414
+ Rendered user_impersonate/_header.html.erb (1.3ms)
1415
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
1416
+
1417
+
1418
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1419
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
1420
+ Parameters: {"utf8"=>"✓"}
1421
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1422
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1423
+  (0.0ms) SAVEPOINT active_record_1
1424
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:34:39.370119', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:34:39.370572' WHERE "users"."id" = 1
1425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1426
+ Redirected to http://www.example.com/
1427
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1428
+
1429
+
1430
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:39 -0700
1431
+ Processing by HomeController#index as HTML
1432
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1433
+ Rendered home/index.html.erb within layouts/application (1.1ms)
1434
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
1435
+  (0.2ms) rollback transaction
1436
+ Connecting to database specified by database.yml
1437
+  (0.3ms) begin transaction
1438
+ Processing by UserImpersonate::ImpersonateController#create as HTML
1439
+ Completed 401 Unauthorized in 1ms
1440
+ Rendered text template (0.0ms)
1441
+  (0.1ms) rollback transaction
1442
+  (0.0ms) begin transaction
1443
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
1444
+ Redirected to http://test.host/
1445
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1446
+  (0.0ms) rollback transaction
1447
+  (0.0ms) begin transaction
1448
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1449
+ Completed 401 Unauthorized in 0ms
1450
+  (0.0ms) rollback transaction
1451
+  (0.1ms) begin transaction
1452
+  (0.0ms) rollback transaction
1453
+ Connecting to database specified by database.yml
1454
+  (0.4ms) begin transaction
1455
+  (0.0ms) SAVEPOINT active_record_1
1456
+ Fixture Delete (0.1ms) DELETE FROM "users"
1457
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:36:58', '2014-03-19 01:36:58')
1458
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:36:58', '2014-03-19 01:36:58')
1459
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1460
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
1461
+
1462
+
1463
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1464
+ Processing by Devise::SessionsController#new as HTML
1465
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.0ms)
1466
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (9.2ms)
1467
+ Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms)
1468
+
1469
+
1470
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1471
+ Processing by Devise::SessionsController#create as HTML
1472
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1473
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
1474
+  (0.0ms) SAVEPOINT active_record_1
1475
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:36:59.147171', "current_sign_in_at" = '2014-03-19 01:36:59.147171', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:36:59.147833' WHERE "users"."id" = 2
1476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1477
+ Redirected to http://www.example.com/
1478
+ Completed 302 Found in 74ms (ActiveRecord: 0.0ms)
1479
+
1480
+
1481
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1482
+ Processing by HomeController#index as HTML
1483
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1484
+ Rendered home/index.html.erb within layouts/application (1.4ms)
1485
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
1486
+
1487
+
1488
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1489
+ Processing by HomeController#index as HTML
1490
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1491
+ Rendered home/index.html.erb within layouts/application (0.6ms)
1492
+ Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
1493
+
1494
+
1495
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1496
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1497
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1498
+ Redirected to http://www.example.com/
1499
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
1500
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
1501
+
1502
+
1503
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1504
+ Processing by HomeController#index as HTML
1505
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1506
+ Rendered home/index.html.erb within layouts/application (0.6ms)
1507
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
1508
+  (0.1ms) rollback transaction
1509
+  (0.0ms) begin transaction
1510
+  (0.0ms) SAVEPOINT active_record_1
1511
+ Fixture Delete (0.1ms) DELETE FROM "users"
1512
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:36:59', '2014-03-19 01:36:59')
1513
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:36:59', '2014-03-19 01:36:59')
1514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1515
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
1516
+
1517
+
1518
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1519
+ Processing by Devise::SessionsController#new as HTML
1520
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
1521
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (2.0ms)
1522
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
1523
+
1524
+
1525
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1526
+ Processing by Devise::SessionsController#create as HTML
1527
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1528
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
1529
+  (0.1ms) SAVEPOINT active_record_1
1530
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:36:59.257509', "current_sign_in_at" = '2014-03-19 01:36:59.257509', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:36:59.258048' WHERE "users"."id" = 1
1531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1532
+ Redirected to http://www.example.com/
1533
+ Completed 302 Found in 76ms (ActiveRecord: 0.0ms)
1534
+
1535
+
1536
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1537
+ Processing by HomeController#index as HTML
1538
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1539
+ Rendered home/index.html.erb within layouts/application (1.1ms)
1540
+ Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.1ms)
1541
+
1542
+
1543
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1544
+ Processing by HomeController#index as HTML
1545
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1546
+ Rendered home/index.html.erb within layouts/application (1.1ms)
1547
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
1548
+
1549
+
1550
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1551
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1552
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1553
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
1554
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
1555
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.7ms)
1556
+ Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms)
1557
+
1558
+
1559
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1560
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1561
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
1562
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1563
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
1564
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
1565
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
1566
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
1567
+
1568
+
1569
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1570
+ Processing by UserImpersonate::ImpersonateController#create as HTML
1571
+ Parameters: {"user_id"=>"2"}
1572
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1573
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1574
+  (0.0ms) SAVEPOINT active_record_1
1575
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:36:59.321330', "current_sign_in_at" = '2014-03-19 01:36:59.321330', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:36:59.321728' WHERE "users"."id" = 2
1576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1577
+ Redirected to http://www.example.com/
1578
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1579
+
1580
+
1581
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1582
+ Processing by HomeController#index as HTML
1583
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1584
+ Rendered home/index.html.erb within layouts/application (0.6ms)
1585
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1586
+ Rendered user_impersonate/_header.html.erb (1.1ms)
1587
+ Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.1ms)
1588
+
1589
+
1590
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1591
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
1592
+ Parameters: {"utf8"=>"✓"}
1593
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1594
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1595
+  (0.0ms) SAVEPOINT active_record_1
1596
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:36:59.334380', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:36:59.334855' WHERE "users"."id" = 1
1597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1598
+ Redirected to http://www.example.com/
1599
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1600
+
1601
+
1602
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:36:59 -0700
1603
+ Processing by HomeController#index as HTML
1604
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1605
+ Rendered home/index.html.erb within layouts/application (1.0ms)
1606
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
1607
+  (0.2ms) rollback transaction
1608
+ Connecting to database specified by database.yml
1609
+  (0.4ms) begin transaction
1610
+ Processing by UserImpersonate::ImpersonateController#create as HTML
1611
+ Completed 401 Unauthorized in 1ms
1612
+ Rendered text template (0.0ms)
1613
+  (0.0ms) rollback transaction
1614
+  (0.0ms) begin transaction
1615
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
1616
+ Redirected to http://test.host/
1617
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1618
+  (0.0ms) rollback transaction
1619
+  (0.0ms) begin transaction
1620
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1621
+ Completed 401 Unauthorized in 0ms
1622
+  (0.0ms) rollback transaction
1623
+  (0.1ms) begin transaction
1624
+  (0.0ms) rollback transaction
1625
+ Connecting to database specified by database.yml
1626
+  (0.3ms) begin transaction
1627
+  (0.0ms) SAVEPOINT active_record_1
1628
+ Fixture Delete (0.1ms) DELETE FROM "users"
1629
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:37:08', '2014-03-19 01:37:08')
1630
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:37:08', '2014-03-19 01:37:08')
1631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1632
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
1633
+
1634
+
1635
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1636
+ Processing by Devise::SessionsController#new as HTML
1637
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.1ms)
1638
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (10.9ms)
1639
+ Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.0ms)
1640
+
1641
+
1642
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1643
+ Processing by Devise::SessionsController#create as HTML
1644
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1645
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
1646
+  (0.0ms) SAVEPOINT active_record_1
1647
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:37:08.682568', "current_sign_in_at" = '2014-03-19 01:37:08.682568', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:37:08.683190' WHERE "users"."id" = 2
1648
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1649
+ Redirected to http://www.example.com/
1650
+ Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
1651
+
1652
+
1653
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1654
+ Processing by HomeController#index as HTML
1655
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1656
+ Rendered home/index.html.erb within layouts/application (1.3ms)
1657
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
1658
+
1659
+
1660
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1661
+ Processing by HomeController#index as HTML
1662
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1663
+ Rendered home/index.html.erb within layouts/application (0.6ms)
1664
+ Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
1665
+
1666
+
1667
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1668
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1669
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1670
+ Redirected to http://www.example.com/
1671
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
1672
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
1673
+
1674
+
1675
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1676
+ Processing by HomeController#index as HTML
1677
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1678
+ Rendered home/index.html.erb within layouts/application (0.6ms)
1679
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.1ms)
1680
+  (0.1ms) rollback transaction
1681
+  (0.0ms) begin transaction
1682
+  (0.1ms) SAVEPOINT active_record_1
1683
+ Fixture Delete (0.1ms) DELETE FROM "users"
1684
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:37:08', '2014-03-19 01:37:08')
1685
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:37:08', '2014-03-19 01:37:08')
1686
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1687
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
1688
+
1689
+
1690
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1691
+ Processing by Devise::SessionsController#new as HTML
1692
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.2ms)
1693
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (1.8ms)
1694
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
1695
+
1696
+
1697
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1698
+ Processing by Devise::SessionsController#create as HTML
1699
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1700
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
1701
+  (0.1ms) SAVEPOINT active_record_1
1702
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:37:08.793504', "current_sign_in_at" = '2014-03-19 01:37:08.793504', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:37:08.794005' WHERE "users"."id" = 1
1703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1704
+ Redirected to http://www.example.com/
1705
+ Completed 302 Found in 77ms (ActiveRecord: 0.0ms)
1706
+
1707
+
1708
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1709
+ Processing by HomeController#index as HTML
1710
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1711
+ Rendered home/index.html.erb within layouts/application (1.0ms)
1712
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
1713
+
1714
+
1715
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1716
+ Processing by HomeController#index as HTML
1717
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1718
+ Rendered home/index.html.erb within layouts/application (1.0ms)
1719
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
1720
+
1721
+
1722
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1723
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1724
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1725
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
1726
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
1727
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.5ms)
1728
+ Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.3ms)
1729
+
1730
+
1731
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1732
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1733
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
1734
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1735
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
1736
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
1737
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.2ms)
1738
+ Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms)
1739
+
1740
+
1741
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1742
+ Processing by UserImpersonate::ImpersonateController#create as HTML
1743
+ Parameters: {"user_id"=>"2"}
1744
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1745
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1746
+  (0.0ms) SAVEPOINT active_record_1
1747
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:37:08.822673', "current_sign_in_at" = '2014-03-19 01:37:08.822673', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:37:08.822993' WHERE "users"."id" = 2
1748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1749
+ Redirected to http://www.example.com/
1750
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1751
+
1752
+
1753
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1754
+ Processing by HomeController#index as HTML
1755
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1756
+ Rendered home/index.html.erb within layouts/application (0.7ms)
1757
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1758
+ Rendered user_impersonate/_header.html.erb (1.3ms)
1759
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)
1760
+
1761
+
1762
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1763
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
1764
+ Parameters: {"utf8"=>"✓"}
1765
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1766
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1767
+  (0.0ms) SAVEPOINT active_record_1
1768
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:37:08.835149', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:37:08.835536' WHERE "users"."id" = 1
1769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1770
+ Redirected to http://www.example.com/
1771
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1772
+
1773
+
1774
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:08 -0700
1775
+ Processing by HomeController#index as HTML
1776
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1777
+ Rendered home/index.html.erb within layouts/application (1.0ms)
1778
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
1779
+  (0.1ms) rollback transaction
1780
+ Connecting to database specified by database.yml
1781
+  (0.4ms) begin transaction
1782
+ Processing by UserImpersonate::ImpersonateController#create as HTML
1783
+ Completed 401 Unauthorized in 1ms
1784
+ Rendered text template (0.0ms)
1785
+  (0.1ms) rollback transaction
1786
+  (0.0ms) begin transaction
1787
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
1788
+ Redirected to http://test.host/
1789
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1790
+  (0.0ms) rollback transaction
1791
+  (0.0ms) begin transaction
1792
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1793
+ Completed 401 Unauthorized in 0ms
1794
+  (0.0ms) rollback transaction
1795
+  (0.0ms) begin transaction
1796
+  (0.0ms) rollback transaction
1797
+ Connecting to database specified by database.yml
1798
+  (0.4ms) begin transaction
1799
+  (0.0ms) SAVEPOINT active_record_1
1800
+ Fixture Delete (0.1ms) DELETE FROM "users"
1801
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:45', '2014-03-19 01:40:45')
1802
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:45', '2014-03-19 01:40:45')
1803
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1804
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
1805
+
1806
+
1807
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1808
+ Processing by Devise::SessionsController#new as HTML
1809
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.1ms)
1810
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (10.2ms)
1811
+ Completed 200 OK in 17ms (Views: 15.7ms | ActiveRecord: 0.0ms)
1812
+
1813
+
1814
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1815
+ Processing by Devise::SessionsController#create as HTML
1816
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1817
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
1818
+  (0.0ms) SAVEPOINT active_record_1
1819
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:40:45.550648', "current_sign_in_at" = '2014-03-19 01:40:45.550648', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:40:45.551352' WHERE "users"."id" = 2
1820
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1821
+ Redirected to http://www.example.com/
1822
+ Completed 302 Found in 74ms (ActiveRecord: 0.0ms)
1823
+
1824
+
1825
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1826
+ Processing by HomeController#index as HTML
1827
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1828
+ Rendered home/index.html.erb within layouts/application (1.4ms)
1829
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
1830
+
1831
+
1832
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1833
+ Processing by HomeController#index as HTML
1834
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1835
+ Rendered home/index.html.erb within layouts/application (0.6ms)
1836
+ Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
1837
+
1838
+
1839
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1840
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1841
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1842
+ Redirected to http://www.example.com/
1843
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
1844
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
1845
+
1846
+
1847
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1848
+ Processing by HomeController#index as HTML
1849
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1850
+ Rendered home/index.html.erb within layouts/application (0.7ms)
1851
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
1852
+  (0.2ms) rollback transaction
1853
+  (0.0ms) begin transaction
1854
+  (0.0ms) SAVEPOINT active_record_1
1855
+ Fixture Delete (0.1ms) DELETE FROM "users"
1856
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:45', '2014-03-19 01:40:45')
1857
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:45', '2014-03-19 01:40:45')
1858
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1859
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
1860
+
1861
+
1862
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1863
+ Processing by Devise::SessionsController#new as HTML
1864
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
1865
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (2.0ms)
1866
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
1867
+
1868
+
1869
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1870
+ Processing by Devise::SessionsController#create as HTML
1871
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1872
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
1873
+  (0.1ms) SAVEPOINT active_record_1
1874
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:40:45.659803', "current_sign_in_at" = '2014-03-19 01:40:45.659803', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:40:45.660319' WHERE "users"."id" = 1
1875
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1876
+ Redirected to http://www.example.com/
1877
+ Completed 302 Found in 74ms (ActiveRecord: 0.0ms)
1878
+
1879
+
1880
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1881
+ Processing by HomeController#index as HTML
1882
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1883
+ Rendered home/index.html.erb within layouts/application (1.1ms)
1884
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
1885
+
1886
+
1887
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1888
+ Processing by HomeController#index as HTML
1889
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1890
+ Rendered home/index.html.erb within layouts/application (1.1ms)
1891
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
1892
+
1893
+
1894
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1895
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1896
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1897
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
1898
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
1899
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.8ms)
1900
+ Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
1901
+
1902
+
1903
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1904
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1905
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
1906
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1907
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
1908
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
1909
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
1910
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)
1911
+
1912
+
1913
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1914
+ Processing by UserImpersonate::ImpersonateController#create as HTML
1915
+ Parameters: {"user_id"=>"2"}
1916
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1917
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1918
+  (0.0ms) SAVEPOINT active_record_1
1919
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:40:45.723564', "current_sign_in_at" = '2014-03-19 01:40:45.723564', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:40:45.723948' WHERE "users"."id" = 2
1920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1921
+ Redirected to http://www.example.com/
1922
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1923
+
1924
+
1925
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1926
+ Processing by HomeController#index as HTML
1927
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1928
+ Rendered home/index.html.erb within layouts/application (0.6ms)
1929
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1930
+ Rendered user_impersonate/_header.html.erb (1.1ms)
1931
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
1932
+
1933
+
1934
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1935
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
1936
+ Parameters: {"utf8"=>"✓"}
1937
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1938
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1939
+  (0.0ms) SAVEPOINT active_record_1
1940
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:40:45.736753', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:40:45.737198' WHERE "users"."id" = 1
1941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1942
+ Redirected to http://www.example.com/
1943
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1944
+
1945
+
1946
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:45 -0700
1947
+ Processing by HomeController#index as HTML
1948
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1949
+ Rendered home/index.html.erb within layouts/application (1.1ms)
1950
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
1951
+  (0.2ms) rollback transaction
1952
+ Connecting to database specified by database.yml
1953
+  (0.4ms) begin transaction
1954
+ Processing by UserImpersonate::ImpersonateController#create as HTML
1955
+ Completed 401 Unauthorized in 1ms
1956
+ Rendered text template (0.0ms)
1957
+  (0.1ms) rollback transaction
1958
+  (0.0ms) begin transaction
1959
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
1960
+ Redirected to http://test.host/
1961
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
1962
+  (0.0ms) rollback transaction
1963
+  (0.0ms) begin transaction
1964
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1965
+ Completed 401 Unauthorized in 0ms
1966
+  (0.0ms) rollback transaction
1967
+  (0.0ms) begin transaction
1968
+  (0.0ms) rollback transaction
1969
+ Connecting to database specified by database.yml
1970
+  (0.4ms) begin transaction
1971
+  (0.0ms) SAVEPOINT active_record_1
1972
+ Fixture Delete (0.2ms) DELETE FROM "users"
1973
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:54', '2014-03-19 01:40:54')
1974
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:54', '2014-03-19 01:40:54')
1975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1976
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
1977
+
1978
+
1979
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:54 -0700
1980
+ Processing by Devise::SessionsController#new as HTML
1981
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.2ms)
1982
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (16.6ms)
1983
+ Completed 200 OK in 23ms (Views: 22.5ms | ActiveRecord: 0.0ms)
1984
+
1985
+
1986
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
1987
+ Processing by Devise::SessionsController#create as HTML
1988
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1989
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
1990
+  (0.0ms) SAVEPOINT active_record_1
1991
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:40:55.106183', "current_sign_in_at" = '2014-03-19 01:40:55.106183', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:40:55.106820' WHERE "users"."id" = 2
1992
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1993
+ Redirected to http://www.example.com/
1994
+ Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
1995
+
1996
+
1997
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
1998
+ Processing by HomeController#index as HTML
1999
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2000
+ Rendered home/index.html.erb within layouts/application (1.3ms)
2001
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
2002
+
2003
+
2004
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2005
+ Processing by HomeController#index as HTML
2006
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2007
+ Rendered home/index.html.erb within layouts/application (0.7ms)
2008
+ Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
2009
+
2010
+
2011
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2012
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2013
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2014
+ Redirected to http://www.example.com/
2015
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
2016
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
2017
+
2018
+
2019
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2020
+ Processing by HomeController#index as HTML
2021
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2022
+ Rendered home/index.html.erb within layouts/application (0.6ms)
2023
+ Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
2024
+  (0.1ms) rollback transaction
2025
+  (0.0ms) begin transaction
2026
+  (0.0ms) SAVEPOINT active_record_1
2027
+ Fixture Delete (0.1ms) DELETE FROM "users"
2028
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:55', '2014-03-19 01:40:55')
2029
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:55', '2014-03-19 01:40:55')
2030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2031
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
2032
+
2033
+
2034
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2035
+ Processing by Devise::SessionsController#new as HTML
2036
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
2037
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (1.8ms)
2038
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
2039
+
2040
+
2041
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2042
+ Processing by Devise::SessionsController#create as HTML
2043
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2044
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
2045
+  (0.1ms) SAVEPOINT active_record_1
2046
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:40:55.217094', "current_sign_in_at" = '2014-03-19 01:40:55.217094', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:40:55.217626' WHERE "users"."id" = 1
2047
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2048
+ Redirected to http://www.example.com/
2049
+ Completed 302 Found in 77ms (ActiveRecord: 0.0ms)
2050
+
2051
+
2052
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2053
+ Processing by HomeController#index as HTML
2054
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2055
+ Rendered home/index.html.erb within layouts/application (1.0ms)
2056
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
2057
+
2058
+
2059
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2060
+ Processing by HomeController#index as HTML
2061
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2062
+ Rendered home/index.html.erb within layouts/application (0.8ms)
2063
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
2064
+
2065
+
2066
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2067
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2068
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2069
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
2070
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
2071
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.6ms)
2072
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)
2073
+
2074
+
2075
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2076
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2077
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
2078
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2079
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
2080
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
2081
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.1ms)
2082
+ Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
2083
+
2084
+
2085
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2086
+ Processing by UserImpersonate::ImpersonateController#create as HTML
2087
+ Parameters: {"user_id"=>"2"}
2088
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2089
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2090
+  (0.0ms) SAVEPOINT active_record_1
2091
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:40:55.245206', "current_sign_in_at" = '2014-03-19 01:40:55.245206', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:40:55.245500' WHERE "users"."id" = 2
2092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2093
+ Redirected to http://www.example.com/
2094
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
2095
+
2096
+
2097
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2098
+ Processing by HomeController#index as HTML
2099
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2100
+ Rendered home/index.html.erb within layouts/application (0.6ms)
2101
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2102
+ Rendered user_impersonate/_header.html.erb (1.2ms)
2103
+ Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.1ms)
2104
+
2105
+
2106
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2107
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
2108
+ Parameters: {"utf8"=>"✓"}
2109
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2110
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2111
+  (0.0ms) SAVEPOINT active_record_1
2112
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:40:55.256715', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:40:55.257107' WHERE "users"."id" = 1
2113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2114
+ Redirected to http://www.example.com/
2115
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2116
+
2117
+
2118
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:55 -0700
2119
+ Processing by HomeController#index as HTML
2120
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2121
+ Rendered home/index.html.erb within layouts/application (1.1ms)
2122
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
2123
+  (0.2ms) rollback transaction
2124
+ Connecting to database specified by database.yml
2125
+  (0.3ms) begin transaction
2126
+ Processing by UserImpersonate::ImpersonateController#create as HTML
2127
+ Completed 401 Unauthorized in 1ms
2128
+ Rendered text template (0.0ms)
2129
+  (0.1ms) rollback transaction
2130
+  (0.0ms) begin transaction
2131
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
2132
+ Redirected to http://test.host/
2133
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2134
+  (0.0ms) rollback transaction
2135
+  (0.0ms) begin transaction
2136
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2137
+ Completed 401 Unauthorized in 0ms
2138
+  (0.0ms) rollback transaction
2139
+  (0.0ms) begin transaction
2140
+  (0.0ms) rollback transaction
2141
+ Connecting to database specified by database.yml
2142
+  (0.3ms) begin transaction
2143
+  (0.0ms) SAVEPOINT active_record_1
2144
+ Fixture Delete (0.1ms) DELETE FROM "users"
2145
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:29', '2014-03-19 01:55:29')
2146
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:29', '2014-03-19 01:55:29')
2147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2148
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
2149
+
2150
+
2151
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2152
+ Processing by Devise::SessionsController#new as HTML
2153
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.1ms)
2154
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (9.4ms)
2155
+ Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.0ms)
2156
+
2157
+
2158
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2159
+ Processing by Devise::SessionsController#create as HTML
2160
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2161
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
2162
+  (0.0ms) SAVEPOINT active_record_1
2163
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:55:29.357923', "current_sign_in_at" = '2014-03-19 01:55:29.357923', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:55:29.358626' WHERE "users"."id" = 2
2164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2165
+ Redirected to http://www.example.com/
2166
+ Completed 302 Found in 81ms (ActiveRecord: 0.0ms)
2167
+
2168
+
2169
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2170
+ Processing by HomeController#index as HTML
2171
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2172
+ Rendered home/index.html.erb within layouts/application (1.4ms)
2173
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
2174
+
2175
+
2176
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2177
+ Processing by HomeController#index as HTML
2178
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2179
+ Rendered home/index.html.erb within layouts/application (0.6ms)
2180
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
2181
+
2182
+
2183
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2184
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2185
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2186
+ Redirected to http://www.example.com/
2187
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
2188
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
2189
+
2190
+
2191
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2192
+ Processing by HomeController#index as HTML
2193
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2194
+ Rendered home/index.html.erb within layouts/application (0.7ms)
2195
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
2196
+  (0.1ms) rollback transaction
2197
+  (0.0ms) begin transaction
2198
+  (0.0ms) SAVEPOINT active_record_1
2199
+ Fixture Delete (0.1ms) DELETE FROM "users"
2200
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:29', '2014-03-19 01:55:29')
2201
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:29', '2014-03-19 01:55:29')
2202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2203
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
2204
+
2205
+
2206
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2207
+ Processing by Devise::SessionsController#new as HTML
2208
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.2ms)
2209
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (1.9ms)
2210
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
2211
+
2212
+
2213
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2214
+ Processing by Devise::SessionsController#create as HTML
2215
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2216
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
2217
+  (0.1ms) SAVEPOINT active_record_1
2218
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:55:29.470669', "current_sign_in_at" = '2014-03-19 01:55:29.470669', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:55:29.471226' WHERE "users"."id" = 1
2219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2220
+ Redirected to http://www.example.com/
2221
+ Completed 302 Found in 77ms (ActiveRecord: 0.0ms)
2222
+
2223
+
2224
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2225
+ Processing by HomeController#index as HTML
2226
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2227
+ Rendered home/index.html.erb within layouts/application (1.1ms)
2228
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
2229
+
2230
+
2231
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2232
+ Processing by HomeController#index as HTML
2233
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2234
+ Rendered home/index.html.erb within layouts/application (1.1ms)
2235
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
2236
+
2237
+
2238
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2239
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2240
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2241
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
2242
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
2243
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (4.0ms)
2244
+ Completed 200 OK in 36ms (Views: 7.6ms | ActiveRecord: 0.4ms)
2245
+
2246
+
2247
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2248
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2249
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
2250
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2251
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
2252
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
2253
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.4ms)
2254
+ Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.4ms)
2255
+
2256
+
2257
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2258
+ Processing by UserImpersonate::ImpersonateController#create as HTML
2259
+ Parameters: {"user_id"=>"2"}
2260
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2261
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2262
+  (0.0ms) SAVEPOINT active_record_1
2263
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:55:29.532932', "current_sign_in_at" = '2014-03-19 01:55:29.532932', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:55:29.533359' WHERE "users"."id" = 2
2264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2265
+ Redirected to http://www.example.com/
2266
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2267
+
2268
+
2269
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2270
+ Processing by HomeController#index as HTML
2271
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2272
+ Rendered home/index.html.erb within layouts/application (0.7ms)
2273
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2274
+ Rendered user_impersonate/_header.html.erb (1.3ms)
2275
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
2276
+
2277
+
2278
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2279
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
2280
+ Parameters: {"utf8"=>"✓"}
2281
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2282
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2283
+  (0.0ms) SAVEPOINT active_record_1
2284
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:55:29.546428', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:55:29.546912' WHERE "users"."id" = 1
2285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2286
+ Redirected to http://www.example.com/
2287
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
2288
+
2289
+
2290
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:29 -0700
2291
+ Processing by HomeController#index as HTML
2292
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2293
+ Rendered home/index.html.erb within layouts/application (0.9ms)
2294
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
2295
+  (0.2ms) rollback transaction
2296
+ Connecting to database specified by database.yml
2297
+  (0.4ms) begin transaction
2298
+ Processing by UserImpersonate::ImpersonateController#create as HTML
2299
+ Completed 401 Unauthorized in 1ms
2300
+ Rendered text template (0.0ms)
2301
+  (0.1ms) rollback transaction
2302
+  (0.0ms) begin transaction
2303
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
2304
+ Redirected to http://test.host/
2305
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2306
+  (0.0ms) rollback transaction
2307
+  (0.0ms) begin transaction
2308
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2309
+ Completed 401 Unauthorized in 0ms
2310
+  (0.0ms) rollback transaction
2311
+  (0.0ms) begin transaction
2312
+  (0.0ms) rollback transaction
2313
+ Connecting to database specified by database.yml
2314
+  (0.4ms) begin transaction
2315
+  (0.0ms) SAVEPOINT active_record_1
2316
+ Fixture Delete (0.1ms) DELETE FROM "users"
2317
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:38', '2014-03-19 01:55:38')
2318
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:38', '2014-03-19 01:55:38')
2319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2320
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
2321
+
2322
+
2323
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:38 -0700
2324
+ Processing by Devise::SessionsController#new as HTML
2325
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.0ms)
2326
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (11.2ms)
2327
+ Completed 200 OK in 18ms (Views: 17.2ms | ActiveRecord: 0.0ms)
2328
+
2329
+
2330
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2331
+ Processing by Devise::SessionsController#create as HTML
2332
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2333
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
2334
+  (0.0ms) SAVEPOINT active_record_1
2335
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:55:39.095017', "current_sign_in_at" = '2014-03-19 01:55:39.095017', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:55:39.095647' WHERE "users"."id" = 2
2336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2337
+ Redirected to http://www.example.com/
2338
+ Completed 302 Found in 81ms (ActiveRecord: 0.0ms)
2339
+
2340
+
2341
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2342
+ Processing by HomeController#index as HTML
2343
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2344
+ Rendered home/index.html.erb within layouts/application (1.3ms)
2345
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
2346
+
2347
+
2348
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2349
+ Processing by HomeController#index as HTML
2350
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2351
+ Rendered home/index.html.erb within layouts/application (0.7ms)
2352
+ Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
2353
+
2354
+
2355
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2356
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2357
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2358
+ Redirected to http://www.example.com/
2359
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
2360
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
2361
+
2362
+
2363
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2364
+ Processing by HomeController#index as HTML
2365
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2366
+ Rendered home/index.html.erb within layouts/application (0.6ms)
2367
+ Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
2368
+  (0.2ms) rollback transaction
2369
+  (0.0ms) begin transaction
2370
+  (0.0ms) SAVEPOINT active_record_1
2371
+ Fixture Delete (0.1ms) DELETE FROM "users"
2372
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:39', '2014-03-19 01:55:39')
2373
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:39', '2014-03-19 01:55:39')
2374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2375
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
2376
+
2377
+
2378
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2379
+ Processing by Devise::SessionsController#new as HTML
2380
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
2381
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (1.8ms)
2382
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
2383
+
2384
+
2385
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2386
+ Processing by Devise::SessionsController#create as HTML
2387
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2388
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
2389
+  (0.1ms) SAVEPOINT active_record_1
2390
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:55:39.208192', "current_sign_in_at" = '2014-03-19 01:55:39.208192', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:55:39.208662' WHERE "users"."id" = 1
2391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2392
+ Redirected to http://www.example.com/
2393
+ Completed 302 Found in 78ms (ActiveRecord: 0.0ms)
2394
+
2395
+
2396
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2397
+ Processing by HomeController#index as HTML
2398
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2399
+ Rendered home/index.html.erb within layouts/application (1.1ms)
2400
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
2401
+
2402
+
2403
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2404
+ Processing by HomeController#index as HTML
2405
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2406
+ Rendered home/index.html.erb within layouts/application (0.8ms)
2407
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
2408
+
2409
+
2410
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2411
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2412
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2413
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
2414
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
2415
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.5ms)
2416
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)
2417
+
2418
+
2419
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2420
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2421
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
2422
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2423
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
2424
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
2425
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.2ms)
2426
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
2427
+
2428
+
2429
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2430
+ Processing by UserImpersonate::ImpersonateController#create as HTML
2431
+ Parameters: {"user_id"=>"2"}
2432
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2433
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2434
+  (0.0ms) SAVEPOINT active_record_1
2435
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:55:39.236567', "current_sign_in_at" = '2014-03-19 01:55:39.236567', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:55:39.236872' WHERE "users"."id" = 2
2436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2437
+ Redirected to http://www.example.com/
2438
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
2439
+
2440
+
2441
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2442
+ Processing by HomeController#index as HTML
2443
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2444
+ Rendered home/index.html.erb within layouts/application (0.6ms)
2445
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2446
+ Rendered user_impersonate/_header.html.erb (1.4ms)
2447
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)
2448
+
2449
+
2450
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2451
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
2452
+ Parameters: {"utf8"=>"✓"}
2453
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2454
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2455
+  (0.0ms) SAVEPOINT active_record_1
2456
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:55:39.251020', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:55:39.251394' WHERE "users"."id" = 1
2457
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2458
+ Redirected to http://www.example.com/
2459
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
2460
+
2461
+
2462
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:39 -0700
2463
+ Processing by HomeController#index as HTML
2464
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2465
+ Rendered home/index.html.erb within layouts/application (0.9ms)
2466
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
2467
+  (0.1ms) rollback transaction
2468
+ Connecting to database specified by database.yml
2469
+  (0.4ms) begin transaction
2470
+ Processing by UserImpersonate::ImpersonateController#create as HTML
2471
+ Completed 401 Unauthorized in 1ms
2472
+ Rendered text template (0.0ms)
2473
+  (0.1ms) rollback transaction
2474
+  (0.0ms) begin transaction
2475
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
2476
+ Redirected to http://test.host/
2477
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2478
+  (0.0ms) rollback transaction
2479
+  (0.0ms) begin transaction
2480
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2481
+ Completed 401 Unauthorized in 0ms
2482
+  (0.0ms) rollback transaction
2483
+  (0.1ms) begin transaction
2484
+  (0.0ms) rollback transaction
2485
+ Connecting to database specified by database.yml
2486
+  (0.3ms) begin transaction
2487
+  (0.0ms) SAVEPOINT active_record_1
2488
+ Fixture Delete (0.1ms) DELETE FROM "users"
2489
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:09', '2014-03-19 01:56:09')
2490
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:09', '2014-03-19 01:56:09')
2491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2492
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
2493
+
2494
+
2495
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2496
+ Processing by Devise::SessionsController#new as HTML
2497
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.2ms)
2498
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (9.8ms)
2499
+ Completed 200 OK in 19ms (Views: 18.0ms | ActiveRecord: 0.0ms)
2500
+
2501
+
2502
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2503
+ Processing by Devise::SessionsController#create as HTML
2504
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2505
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
2506
+  (0.1ms) SAVEPOINT active_record_1
2507
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:56:09.733084', "current_sign_in_at" = '2014-03-19 01:56:09.733084', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:56:09.733954' WHERE "users"."id" = 2
2508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2509
+ Redirected to http://www.example.com/
2510
+ Completed 302 Found in 82ms (ActiveRecord: 0.0ms)
2511
+
2512
+
2513
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2514
+ Processing by HomeController#index as HTML
2515
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2516
+ Rendered home/index.html.erb within layouts/application (1.7ms)
2517
+ Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
2518
+
2519
+
2520
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2521
+ Processing by HomeController#index as HTML
2522
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2523
+ Rendered home/index.html.erb within layouts/application (0.8ms)
2524
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
2525
+
2526
+
2527
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2528
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2529
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2530
+ Redirected to http://www.example.com/
2531
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
2532
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
2533
+
2534
+
2535
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2536
+ Processing by HomeController#index as HTML
2537
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2538
+ Rendered home/index.html.erb within layouts/application (0.9ms)
2539
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
2540
+  (0.2ms) rollback transaction
2541
+  (0.0ms) begin transaction
2542
+  (0.0ms) SAVEPOINT active_record_1
2543
+ Fixture Delete (0.1ms) DELETE FROM "users"
2544
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:09', '2014-03-19 01:56:09')
2545
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:09', '2014-03-19 01:56:09')
2546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2547
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
2548
+
2549
+
2550
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2551
+ Processing by Devise::SessionsController#new as HTML
2552
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.4ms)
2553
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (3.3ms)
2554
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
2555
+
2556
+
2557
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2558
+ Processing by Devise::SessionsController#create as HTML
2559
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2560
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
2561
+  (0.1ms) SAVEPOINT active_record_1
2562
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:56:09.853879', "current_sign_in_at" = '2014-03-19 01:56:09.853879', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:56:09.854437' WHERE "users"."id" = 1
2563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2564
+ Redirected to http://www.example.com/
2565
+ Completed 302 Found in 77ms (ActiveRecord: 0.0ms)
2566
+
2567
+
2568
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2569
+ Processing by HomeController#index as HTML
2570
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2571
+ Rendered home/index.html.erb within layouts/application (1.3ms)
2572
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.1ms)
2573
+
2574
+
2575
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2576
+ Processing by HomeController#index as HTML
2577
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2578
+ Rendered home/index.html.erb within layouts/application (1.3ms)
2579
+ Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.1ms)
2580
+
2581
+
2582
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2583
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2584
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2585
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
2586
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
2587
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (3.1ms)
2588
+ Completed 200 OK in 39ms (Views: 6.9ms | ActiveRecord: 0.4ms)
2589
+
2590
+
2591
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2592
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2593
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
2594
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2595
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
2596
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
2597
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.1ms)
2598
+ Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.5ms)
2599
+
2600
+
2601
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2602
+ Processing by UserImpersonate::ImpersonateController#create as HTML
2603
+ Parameters: {"user_id"=>"2"}
2604
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2605
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2606
+  (0.0ms) SAVEPOINT active_record_1
2607
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:56:09.921617', "current_sign_in_at" = '2014-03-19 01:56:09.921617', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:56:09.922029' WHERE "users"."id" = 2
2608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2609
+ Redirected to http://www.example.com/
2610
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2611
+
2612
+
2613
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2614
+ Processing by HomeController#index as HTML
2615
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2616
+ Rendered home/index.html.erb within layouts/application (0.8ms)
2617
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2618
+ Rendered user_impersonate/_header.html.erb (1.3ms)
2619
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.2ms)
2620
+
2621
+
2622
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2623
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
2624
+ Parameters: {"utf8"=>"✓"}
2625
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2626
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2627
+  (0.0ms) SAVEPOINT active_record_1
2628
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:56:09.936253', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:56:09.936721' WHERE "users"."id" = 1
2629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2630
+ Redirected to http://www.example.com/
2631
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
2632
+
2633
+
2634
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:09 -0700
2635
+ Processing by HomeController#index as HTML
2636
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2637
+ Rendered home/index.html.erb within layouts/application (1.0ms)
2638
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
2639
+  (0.2ms) rollback transaction
2640
+ Connecting to database specified by database.yml
2641
+  (0.3ms) begin transaction
2642
+ Processing by UserImpersonate::ImpersonateController#create as HTML
2643
+ Completed 401 Unauthorized in 1ms
2644
+ Rendered text template (0.0ms)
2645
+  (0.0ms) rollback transaction
2646
+  (0.0ms) begin transaction
2647
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
2648
+ Redirected to http://test.host/
2649
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2650
+  (0.0ms) rollback transaction
2651
+  (0.0ms) begin transaction
2652
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2653
+ Completed 401 Unauthorized in 0ms
2654
+  (0.0ms) rollback transaction
2655
+  (0.0ms) begin transaction
2656
+  (0.0ms) rollback transaction
2657
+ Connecting to database specified by database.yml
2658
+  (0.3ms) begin transaction
2659
+  (0.0ms) SAVEPOINT active_record_1
2660
+ Fixture Delete (0.1ms) DELETE FROM "users"
2661
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:19', '2014-03-19 01:56:19')
2662
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:19', '2014-03-19 01:56:19')
2663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2664
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
2665
+
2666
+
2667
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2668
+ Processing by Devise::SessionsController#new as HTML
2669
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.1ms)
2670
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (16.9ms)
2671
+ Completed 200 OK in 23ms (Views: 22.5ms | ActiveRecord: 0.0ms)
2672
+
2673
+
2674
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2675
+ Processing by Devise::SessionsController#create as HTML
2676
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2677
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
2678
+  (0.0ms) SAVEPOINT active_record_1
2679
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:56:19.677615', "current_sign_in_at" = '2014-03-19 01:56:19.677615', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:56:19.678233' WHERE "users"."id" = 2
2680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2681
+ Redirected to http://www.example.com/
2682
+ Completed 302 Found in 81ms (ActiveRecord: 0.0ms)
2683
+
2684
+
2685
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2686
+ Processing by HomeController#index as HTML
2687
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2688
+ Rendered home/index.html.erb within layouts/application (1.3ms)
2689
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
2690
+
2691
+
2692
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2693
+ Processing by HomeController#index as HTML
2694
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2695
+ Rendered home/index.html.erb within layouts/application (0.7ms)
2696
+ Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
2697
+
2698
+
2699
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2700
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2701
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2702
+ Redirected to http://www.example.com/
2703
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
2704
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
2705
+
2706
+
2707
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2708
+ Processing by HomeController#index as HTML
2709
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2710
+ Rendered home/index.html.erb within layouts/application (0.6ms)
2711
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.1ms)
2712
+  (0.2ms) rollback transaction
2713
+  (0.0ms) begin transaction
2714
+  (0.0ms) SAVEPOINT active_record_1
2715
+ Fixture Delete (0.1ms) DELETE FROM "users"
2716
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:19', '2014-03-19 01:56:19')
2717
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:19', '2014-03-19 01:56:19')
2718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2719
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
2720
+
2721
+
2722
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2723
+ Processing by Devise::SessionsController#new as HTML
2724
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
2725
+ Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (2.1ms)
2726
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
2727
+
2728
+
2729
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2730
+ Processing by Devise::SessionsController#create as HTML
2731
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2732
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
2733
+  (0.1ms) SAVEPOINT active_record_1
2734
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:56:19.790002', "current_sign_in_at" = '2014-03-19 01:56:19.790002', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:56:19.790455' WHERE "users"."id" = 1
2735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2736
+ Redirected to http://www.example.com/
2737
+ Completed 302 Found in 77ms (ActiveRecord: 0.0ms)
2738
+
2739
+
2740
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2741
+ Processing by HomeController#index as HTML
2742
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2743
+ Rendered home/index.html.erb within layouts/application (1.0ms)
2744
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
2745
+
2746
+
2747
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2748
+ Processing by HomeController#index as HTML
2749
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2750
+ Rendered home/index.html.erb within layouts/application (0.8ms)
2751
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
2752
+
2753
+
2754
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2755
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2756
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2757
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
2758
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
2759
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.5ms)
2760
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.3ms)
2761
+
2762
+
2763
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2764
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2765
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
2766
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2767
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
2768
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
2769
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.2ms)
2770
+ Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
2771
+
2772
+
2773
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2774
+ Processing by UserImpersonate::ImpersonateController#create as HTML
2775
+ Parameters: {"user_id"=>"2"}
2776
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2777
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2778
+  (0.0ms) SAVEPOINT active_record_1
2779
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-19 01:56:19.817838', "current_sign_in_at" = '2014-03-19 01:56:19.817838', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-19 01:56:19.818143' WHERE "users"."id" = 2
2780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2781
+ Redirected to http://www.example.com/
2782
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
2783
+
2784
+
2785
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2786
+ Processing by HomeController#index as HTML
2787
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2788
+ Rendered home/index.html.erb within layouts/application (0.9ms)
2789
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2790
+ Rendered user_impersonate/_header.html.erb (1.3ms)
2791
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.2ms)
2792
+
2793
+
2794
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2795
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
2796
+ Parameters: {"utf8"=>"✓"}
2797
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2798
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2799
+  (0.0ms) SAVEPOINT active_record_1
2800
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-19 01:56:19.830687', "sign_in_count" = 2, "updated_at" = '2014-03-19 01:56:19.831020' WHERE "users"."id" = 1
2801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2802
+ Redirected to http://www.example.com/
2803
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2804
+
2805
+
2806
+ Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:19 -0700
2807
+ Processing by HomeController#index as HTML
2808
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2809
+ Rendered home/index.html.erb within layouts/application (1.1ms)
2810
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
2811
+  (0.2ms) rollback transaction
2812
+ Connecting to database specified by database.yml
2813
+  (0.3ms) begin transaction
2814
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2815
+ Redirected to
2816
+ Redirected to http://test.host/
2817
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
2818
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2819
+  (0.1ms) rollback transaction
2820
+  (0.0ms) begin transaction
2821
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2822
+ Redirected to
2823
+ Redirected to http://test.host/
2824
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
2825
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2826
+  (0.0ms) rollback transaction
2827
+  (0.0ms) begin transaction
2828
+ Processing by UserImpersonate::ImpersonateController#create as HTML
2829
+ Completed 401 Unauthorized in 2ms
2830
+  (0.1ms) rollback transaction
2831
+  (0.0ms) begin transaction
2832
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
2833
+ Redirected to http://test.host/
2834
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
2835
+  (0.0ms) rollback transaction
2836
+  (0.3ms) begin transaction
2837
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2838
+ Completed 401 Unauthorized in 0ms
2839
+  (0.0ms) rollback transaction
2840
+  (0.0ms) begin transaction
2841
+  (0.0ms) rollback transaction
2842
+ Connecting to database specified by database.yml
2843
+  (0.5ms) begin transaction
2844
+  (0.0ms) SAVEPOINT active_record_1
2845
+ Fixture Delete (0.1ms) DELETE FROM "users"
2846
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:14', '2014-04-09 05:45:14')
2847
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:14', '2014-04-09 05:45:14')
2848
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2849
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
2850
+
2851
+
2852
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2853
+ Processing by Devise::SessionsController#new as HTML
2854
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.1ms)
2855
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (39.3ms)
2856
+ Completed 200 OK in 48ms (Views: 46.7ms | ActiveRecord: 0.0ms)
2857
+
2858
+
2859
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2860
+ Processing by Devise::SessionsController#create as HTML
2861
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2862
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
2863
+  (0.0ms) SAVEPOINT active_record_1
2864
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-04-09 05:45:14.220462', "current_sign_in_at" = '2014-04-09 05:45:14.220462', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-04-09 05:45:14.221085' WHERE "users"."id" = 2
2865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2866
+ Redirected to http://www.example.com/
2867
+ Completed 302 Found in 75ms (ActiveRecord: 0.0ms)
2868
+
2869
+
2870
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2871
+ Processing by HomeController#index as HTML
2872
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2873
+ Rendered home/index.html.erb within layouts/application (1.4ms)
2874
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
2875
+
2876
+
2877
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2878
+ Processing by HomeController#index as HTML
2879
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2880
+ Rendered home/index.html.erb within layouts/application (0.7ms)
2881
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
2882
+
2883
+
2884
+ Started GET "/impersonate" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2885
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2886
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2887
+ Redirected to http://www.example.com/
2888
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
2889
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
2890
+
2891
+
2892
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2893
+ Processing by HomeController#index as HTML
2894
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2895
+ Rendered home/index.html.erb within layouts/application (0.7ms)
2896
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
2897
+  (0.3ms) rollback transaction
2898
+  (0.0ms) begin transaction
2899
+  (0.0ms) SAVEPOINT active_record_1
2900
+ Fixture Delete (0.1ms) DELETE FROM "users"
2901
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:14', '2014-04-09 05:45:14')
2902
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:14', '2014-04-09 05:45:14')
2903
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2904
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
2905
+
2906
+
2907
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2908
+ Processing by Devise::SessionsController#new as HTML
2909
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
2910
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (2.2ms)
2911
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
2912
+
2913
+
2914
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2915
+ Processing by Devise::SessionsController#create as HTML
2916
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
2917
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
2918
+  (0.0ms) SAVEPOINT active_record_1
2919
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-04-09 05:45:14.336773', "current_sign_in_at" = '2014-04-09 05:45:14.336773', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-04-09 05:45:14.337264' WHERE "users"."id" = 1
2920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2921
+ Redirected to http://www.example.com/
2922
+ Completed 302 Found in 74ms (ActiveRecord: 0.0ms)
2923
+
2924
+
2925
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2926
+ Processing by HomeController#index as HTML
2927
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2928
+ Rendered home/index.html.erb within layouts/application (30.1ms)
2929
+ Completed 200 OK in 31ms (Views: 31.1ms | ActiveRecord: 0.1ms)
2930
+
2931
+
2932
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2933
+ Processing by HomeController#index as HTML
2934
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2935
+ Rendered home/index.html.erb within layouts/application (1.3ms)
2936
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.2ms)
2937
+
2938
+
2939
+ Started GET "/impersonate" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2940
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2941
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2942
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
2943
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
2944
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (3.0ms)
2945
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)
2946
+
2947
+
2948
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2949
+ Processing by UserImpersonate::ImpersonateController#index as HTML
2950
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
2951
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2952
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
2953
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
2954
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
2955
+ Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.3ms)
2956
+
2957
+
2958
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2959
+ Processing by UserImpersonate::ImpersonateController#create as HTML
2960
+ Parameters: {"user_id"=>"2"}
2961
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2962
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
2963
+  (0.0ms) SAVEPOINT active_record_1
2964
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-04-09 05:45:14.401689', "current_sign_in_at" = '2014-04-09 05:45:14.401689', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-04-09 05:45:14.402128' WHERE "users"."id" = 2
2965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2966
+ Redirected to http://www.example.com/
2967
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
2968
+
2969
+
2970
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2971
+ Processing by HomeController#index as HTML
2972
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2973
+ Rendered home/index.html.erb within layouts/application (1.6ms)
2974
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2975
+ Rendered user_impersonate/_header.html.erb (1.2ms)
2976
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms)
2977
+
2978
+
2979
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2980
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
2981
+ Parameters: {"utf8"=>"✓"}
2982
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2983
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
2984
+  (0.0ms) SAVEPOINT active_record_1
2985
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-04-09 05:45:14.419554', "sign_in_count" = 2, "updated_at" = '2014-04-09 05:45:14.420125' WHERE "users"."id" = 1
2986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2987
+ Redirected to http://www.example.com/
2988
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
2989
+
2990
+
2991
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:14 -0700
2992
+ Processing by HomeController#index as HTML
2993
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
2994
+ Rendered home/index.html.erb within layouts/application (0.9ms)
2995
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
2996
+  (0.4ms) rollback transaction
2997
+ Connecting to database specified by database.yml
2998
+  (0.4ms) begin transaction
2999
+ Processing by UserImpersonate::ImpersonateController#index as HTML
3000
+ Redirected to
3001
+ Redirected to http://test.host/
3002
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
3003
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
3004
+  (0.1ms) rollback transaction
3005
+  (0.0ms) begin transaction
3006
+ Processing by UserImpersonate::ImpersonateController#index as HTML
3007
+ Redirected to
3008
+ Redirected to http://test.host/
3009
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
3010
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
3011
+  (0.0ms) rollback transaction
3012
+  (0.0ms) begin transaction
3013
+ Processing by UserImpersonate::ImpersonateController#create as HTML
3014
+ Completed 401 Unauthorized in 1ms
3015
+  (0.1ms) rollback transaction
3016
+  (0.0ms) begin transaction
3017
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
3018
+ Redirected to http://test.host/
3019
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
3020
+  (0.1ms) rollback transaction
3021
+  (0.0ms) begin transaction
3022
+ Processing by UserImpersonate::ImpersonateController#index as HTML
3023
+ Completed 401 Unauthorized in 0ms
3024
+  (0.1ms) rollback transaction
3025
+  (0.1ms) begin transaction
3026
+  (0.1ms) rollback transaction
3027
+ Connecting to database specified by database.yml
3028
+  (0.3ms) begin transaction
3029
+  (0.0ms) SAVEPOINT active_record_1
3030
+ Fixture Delete (0.1ms) DELETE FROM "users"
3031
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:23', '2014-04-09 05:45:23')
3032
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:23', '2014-04-09 05:45:23')
3033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3034
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
3035
+
3036
+
3037
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3038
+ Processing by Devise::SessionsController#new as HTML
3039
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (1.2ms)
3040
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (36.7ms)
3041
+ Completed 200 OK in 43ms (Views: 42.2ms | ActiveRecord: 0.0ms)
3042
+
3043
+
3044
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3045
+ Processing by Devise::SessionsController#create as HTML
3046
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
3047
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
3048
+  (0.0ms) SAVEPOINT active_record_1
3049
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-04-09 05:45:23.650278', "current_sign_in_at" = '2014-04-09 05:45:23.650278', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-04-09 05:45:23.650974' WHERE "users"."id" = 2
3050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3051
+ Redirected to http://www.example.com/
3052
+ Completed 302 Found in 81ms (ActiveRecord: 0.0ms)
3053
+
3054
+
3055
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3056
+ Processing by HomeController#index as HTML
3057
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3058
+ Rendered home/index.html.erb within layouts/application (1.5ms)
3059
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
3060
+
3061
+
3062
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3063
+ Processing by HomeController#index as HTML
3064
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3065
+ Rendered home/index.html.erb within layouts/application (0.8ms)
3066
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
3067
+
3068
+
3069
+ Started GET "/impersonate" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3070
+ Processing by UserImpersonate::ImpersonateController#index as HTML
3071
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3072
+ Redirected to http://www.example.com/
3073
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
3074
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
3075
+
3076
+
3077
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3078
+ Processing by HomeController#index as HTML
3079
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3080
+ Rendered home/index.html.erb within layouts/application (0.7ms)
3081
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
3082
+  (0.1ms) rollback transaction
3083
+  (0.0ms) begin transaction
3084
+  (0.0ms) SAVEPOINT active_record_1
3085
+ Fixture Delete (0.1ms) DELETE FROM "users"
3086
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:23', '2014-04-09 05:45:23')
3087
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:23', '2014-04-09 05:45:23')
3088
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3089
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
3090
+
3091
+
3092
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3093
+ Processing by Devise::SessionsController#new as HTML
3094
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/shared/_links.erb (0.3ms)
3095
+ Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-2.1.2/app/views/devise/sessions/new.html.erb within layouts/application (2.1ms)
3096
+ Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
3097
+
3098
+
3099
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3100
+ Processing by Devise::SessionsController#create as HTML
3101
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
3102
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
3103
+  (0.1ms) SAVEPOINT active_record_1
3104
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-04-09 05:45:23.771116', "current_sign_in_at" = '2014-04-09 05:45:23.771116', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-04-09 05:45:23.771655' WHERE "users"."id" = 1
3105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3106
+ Redirected to http://www.example.com/
3107
+ Completed 302 Found in 83ms (ActiveRecord: 0.0ms)
3108
+
3109
+
3110
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3111
+ Processing by HomeController#index as HTML
3112
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
3113
+ Rendered home/index.html.erb within layouts/application (28.8ms)
3114
+ Completed 200 OK in 30ms (Views: 29.8ms | ActiveRecord: 0.1ms)
3115
+
3116
+
3117
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3118
+ Processing by HomeController#index as HTML
3119
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
3120
+ Rendered home/index.html.erb within layouts/application (1.5ms)
3121
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.2ms)
3122
+
3123
+
3124
+ Started GET "/impersonate" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3125
+ Processing by UserImpersonate::ImpersonateController#index as HTML
3126
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
3127
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
3128
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
3129
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (3.0ms)
3130
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)
3131
+
3132
+
3133
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3134
+ Processing by UserImpersonate::ImpersonateController#index as HTML
3135
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
3136
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
3137
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
3138
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
3139
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.5ms)
3140
+ Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.3ms)
3141
+
3142
+
3143
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3144
+ Processing by UserImpersonate::ImpersonateController#create as HTML
3145
+ Parameters: {"user_id"=>"2"}
3146
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
3147
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
3148
+  (0.0ms) SAVEPOINT active_record_1
3149
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-04-09 05:45:23.832284', "current_sign_in_at" = '2014-04-09 05:45:23.832284', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-04-09 05:45:23.832668' WHERE "users"."id" = 2
3150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3151
+ Redirected to http://www.example.com/
3152
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
3153
+
3154
+
3155
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3156
+ Processing by HomeController#index as HTML
3157
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3158
+ Rendered home/index.html.erb within layouts/application (0.9ms)
3159
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3160
+ Rendered user_impersonate/_header.html.erb (1.5ms)
3161
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.2ms)
3162
+
3163
+
3164
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3165
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
3166
+ Parameters: {"utf8"=>"✓"}
3167
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3168
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
3169
+  (0.0ms) SAVEPOINT active_record_1
3170
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-04-09 05:45:23.851432', "sign_in_count" = 2, "updated_at" = '2014-04-09 05:45:23.851926' WHERE "users"."id" = 1
3171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3172
+ Redirected to http://www.example.com/
3173
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
3174
+
3175
+
3176
+ Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:23 -0700
3177
+ Processing by HomeController#index as HTML
3178
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
3179
+ Rendered home/index.html.erb within layouts/application (0.9ms)
3180
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
3181
+  (0.1ms) rollback transaction