user_impersonate2 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -12
  3. data/Rakefile +6 -4
  4. data/app/controllers/user_impersonate/impersonate_controller.rb +1 -1
  5. data/lib/user_impersonate/version.rb +1 -1
  6. data/test/{dummy → dummy-rails3}/README.rdoc +0 -0
  7. data/test/{dummy → dummy-rails3}/Rakefile +0 -0
  8. data/test/{dummy → dummy-rails3}/app/assets/javascripts/application.js +0 -0
  9. data/test/{dummy → dummy-rails3}/app/assets/javascripts/home.js +0 -0
  10. data/test/{dummy → dummy-rails3}/app/assets/stylesheets/application.css +0 -0
  11. data/test/{dummy → dummy-rails3}/app/assets/stylesheets/home.css +0 -0
  12. data/test/{dummy → dummy-rails3}/app/controllers/application_controller.rb +0 -0
  13. data/test/{dummy → dummy-rails3}/app/controllers/home_controller.rb +0 -0
  14. data/test/{dummy → dummy-rails3}/app/helpers/application_helper.rb +0 -0
  15. data/test/{dummy → dummy-rails3}/app/helpers/home_helper.rb +0 -0
  16. data/test/{dummy → dummy-rails3}/app/models/user.rb +0 -0
  17. data/test/{dummy → dummy-rails3}/app/views/home/index.html.erb +0 -0
  18. data/test/{dummy → dummy-rails3}/app/views/layouts/application.html.erb +0 -0
  19. data/test/{dummy → dummy-rails3}/app/views/user_impersonate/_header.html.erb +0 -0
  20. data/test/{dummy → dummy-rails3}/config.ru +0 -0
  21. data/test/{dummy → dummy-rails3}/config/application.rb +0 -0
  22. data/test/{dummy → dummy-rails3}/config/boot.rb +0 -0
  23. data/test/{dummy → dummy-rails3}/config/database.yml +0 -0
  24. data/test/{dummy → dummy-rails3}/config/environment.rb +0 -0
  25. data/test/{dummy → dummy-rails3}/config/environments/development.rb +0 -0
  26. data/test/{dummy → dummy-rails3}/config/environments/production.rb +0 -0
  27. data/test/{dummy → dummy-rails3}/config/environments/test.rb +0 -0
  28. data/test/{dummy → dummy-rails3}/config/initializers/backtrace_silencers.rb +0 -0
  29. data/test/{dummy → dummy-rails3}/config/initializers/devise.rb +0 -0
  30. data/test/{dummy → dummy-rails3}/config/initializers/inflections.rb +0 -0
  31. data/test/{dummy → dummy-rails3}/config/initializers/mime_types.rb +0 -0
  32. data/test/{dummy → dummy-rails3}/config/initializers/secret_token.rb +0 -0
  33. data/test/{dummy → dummy-rails3}/config/initializers/session_store.rb +0 -0
  34. data/test/{dummy → dummy-rails3}/config/initializers/user_impersonate.rb +0 -0
  35. data/test/{dummy → dummy-rails3}/config/initializers/wrap_parameters.rb +0 -0
  36. data/test/{dummy → dummy-rails3}/config/locales/devise.en.yml +0 -0
  37. data/test/{dummy → dummy-rails3}/config/locales/en.yml +0 -0
  38. data/test/{dummy → dummy-rails3}/config/routes.rb +0 -0
  39. data/test/{dummy → dummy-rails3}/db/development.sqlite3 +0 -0
  40. data/test/{dummy → dummy-rails3}/db/migrate/20120914174453_devise_create_users.rb +0 -0
  41. data/test/{dummy → dummy-rails3}/db/migrate/20120914184123_add_staff_flag_to_users.rb +0 -0
  42. data/test/{dummy → dummy-rails3}/db/schema.rb +0 -0
  43. data/test/{dummy → dummy-rails3}/db/test.sqlite3 +0 -0
  44. data/test/{dummy → dummy-rails3}/lib/tasks/cucumber.rake +0 -0
  45. data/test/dummy-rails3/log/development.log +262 -0
  46. data/test/dummy-rails3/log/test.log +1091 -0
  47. data/test/{dummy → dummy-rails3}/public/404.html +0 -0
  48. data/test/{dummy → dummy-rails3}/public/422.html +0 -0
  49. data/test/{dummy → dummy-rails3}/public/500.html +0 -0
  50. data/test/{dummy → dummy-rails3}/public/favicon.ico +0 -0
  51. data/test/{dummy → dummy-rails3}/script/rails +0 -0
  52. data/test/{dummy → dummy-rails3}/test/fixtures/users.yml +0 -0
  53. data/test/{dummy → dummy-rails3}/test/unit/helpers/home_helper_test.rb +0 -0
  54. data/test/{dummy → dummy-rails3}/test/unit/user_test.rb +0 -0
  55. data/test/dummy-rails4/README.rdoc +261 -0
  56. data/test/dummy-rails4/Rakefile +7 -0
  57. data/test/dummy-rails4/app/assets/javascripts/application.js +15 -0
  58. data/test/dummy-rails4/app/assets/javascripts/home.js +2 -0
  59. data/test/dummy-rails4/app/assets/stylesheets/application.css +16 -0
  60. data/test/dummy-rails4/app/assets/stylesheets/home.css +7 -0
  61. data/test/dummy-rails4/app/controllers/application_controller.rb +3 -0
  62. data/test/dummy-rails4/app/controllers/home_controller.rb +4 -0
  63. data/test/dummy-rails4/app/helpers/application_helper.rb +2 -0
  64. data/test/dummy-rails4/app/helpers/home_helper.rb +2 -0
  65. data/test/dummy-rails4/app/models/user.rb +17 -0
  66. data/test/dummy-rails4/app/views/home/index.html.erb +11 -0
  67. data/test/dummy-rails4/app/views/layouts/application.html.erb +22 -0
  68. data/test/dummy-rails4/app/views/user_impersonate/_header.html.erb +65 -0
  69. data/test/dummy-rails4/config.ru +4 -0
  70. data/test/dummy-rails4/config/application.rb +57 -0
  71. data/test/dummy-rails4/config/boot.rb +10 -0
  72. data/test/dummy-rails4/config/database.yml +25 -0
  73. data/test/dummy-rails4/config/environment.rb +5 -0
  74. data/test/dummy-rails4/config/environments/development.rb +36 -0
  75. data/test/dummy-rails4/config/environments/production.rb +69 -0
  76. data/test/dummy-rails4/config/environments/test.rb +33 -0
  77. data/test/dummy-rails4/config/initializers/backtrace_silencers.rb +7 -0
  78. data/test/dummy-rails4/config/initializers/devise.rb +234 -0
  79. data/test/dummy-rails4/config/initializers/inflections.rb +15 -0
  80. data/test/dummy-rails4/config/initializers/mime_types.rb +5 -0
  81. data/test/dummy-rails4/config/initializers/secret_token.rb +9 -0
  82. data/test/dummy-rails4/config/initializers/session_store.rb +8 -0
  83. data/test/dummy-rails4/config/initializers/user_impersonate.rb +18 -0
  84. data/test/dummy-rails4/config/initializers/wrap_parameters.rb +14 -0
  85. data/test/dummy-rails4/config/locales/devise.en.yml +58 -0
  86. data/test/dummy-rails4/config/locales/en.yml +5 -0
  87. data/test/dummy-rails4/config/routes.rb +8 -0
  88. data/test/dummy-rails4/db/development.sqlite3 +0 -0
  89. data/test/dummy-rails4/db/migrate/20120914174453_devise_create_users.rb +48 -0
  90. data/test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb +5 -0
  91. data/test/dummy-rails4/db/schema.rb +36 -0
  92. data/test/dummy-rails4/db/test.sqlite3 +0 -0
  93. data/test/dummy-rails4/lib/tasks/cucumber.rake +65 -0
  94. data/test/dummy-rails4/log/development.log +27 -0
  95. data/test/dummy-rails4/log/test.log +465 -0
  96. data/test/dummy-rails4/public/404.html +26 -0
  97. data/test/dummy-rails4/public/422.html +26 -0
  98. data/test/dummy-rails4/public/500.html +25 -0
  99. data/test/dummy-rails4/public/favicon.ico +0 -0
  100. data/test/dummy-rails4/script/rails +6 -0
  101. data/test/dummy-rails4/test/fixtures/users.yml +14 -0
  102. data/test/dummy-rails4/test/unit/helpers/home_helper_test.rb +4 -0
  103. data/test/dummy-rails4/test/unit/user_test.rb +7 -0
  104. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  105. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c +0 -0
  106. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/2625847957ecb8614efc9b58b07cabdf +0 -0
  107. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  108. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  109. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/35f33ae400a6b0b5bf527436a68133b5 +0 -0
  110. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/3b83d2c20dfdb631259eb9d056ea4419 +0 -0
  111. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/40fc2f3d2a468a00e463f1d313cb1683 +0 -0
  112. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/5f1c168e97e274509aa4673eab0d86f6 +0 -0
  113. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/681d1010f98d5ed273e67645c7cb454d +0 -0
  114. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/7411b44628aea038332f13f5ed73e073 +0 -0
  115. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/7f14251885cab31b58c878119cbdc199 +0 -0
  116. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8483b329d12e7e986bc5a2204bbcb4f8 +0 -0
  117. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8ff157af159f38d424ce1367e29760a2 +0 -0
  118. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/b6f020b01a84691088a0c459a18f9c7e +0 -0
  119. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e +0 -0
  120. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/bdaaf186999b6b59a3063d23b589d307 +0 -0
  121. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  122. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/d0cde4ef34755468270bb49c4a3689f1 +0 -0
  123. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  124. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/edbef6e0d0a4742346cf479f2c522eb0 +0 -0
  125. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/f1aac9109f5dae028b3c56eb07311208 +0 -0
  126. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  127. data/test/dummy-rails4/tmp/cache/assets/test/sprockets/fd6c8e27b44aa2db77bf0a8b5118bdf8 +0 -0
  128. data/test/functional/impersonate_controller_test.rb +19 -0
  129. data/test/test_helper.rb +18 -4
  130. data/test/test_utils.rb +49 -0
  131. metadata +262 -112
  132. data/test/dummy/log/development.log +0 -751
  133. data/test/dummy/log/test.log +0 -8348
@@ -0,0 +1,1091 @@
1
+ Connecting to database specified by database.yml
2
+  (0.3ms) begin transaction
3
+ Processing by UserImpersonate::ImpersonateController#create as HTML
4
+ Completed 500 Internal Server Error in 0ms
5
+  (0.1ms) rollback transaction
6
+  (0.0ms) begin transaction
7
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
8
+ Completed 500 Internal Server Error in 0ms
9
+  (0.1ms) rollback transaction
10
+  (0.1ms) begin transaction
11
+  (0.0ms) rollback transaction
12
+  (0.0ms) begin transaction
13
+ Processing by UserImpersonate::ImpersonateController#index as HTML
14
+ Completed 500 Internal Server Error in 0ms
15
+  (0.1ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+  (0.1ms) rollback transaction
18
+ Connecting to database specified by database.yml
19
+  (0.3ms) begin transaction
20
+ Processing by UserImpersonate::ImpersonateController#create as HTML
21
+ Completed 500 Internal Server Error in 0ms
22
+  (0.1ms) rollback transaction
23
+  (0.0ms) begin transaction
24
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
25
+ Redirected to http://test.host/
26
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
27
+  (0.1ms) rollback transaction
28
+  (0.1ms) begin transaction
29
+  (0.0ms) rollback transaction
30
+  (0.0ms) begin transaction
31
+ Processing by UserImpersonate::ImpersonateController#index as HTML
32
+ Completed 500 Internal Server Error in 0ms
33
+  (0.0ms) rollback transaction
34
+  (0.1ms) begin transaction
35
+  (0.0ms) rollback transaction
36
+ Connecting to database specified by database.yml
37
+  (0.4ms) begin transaction
38
+ Processing by UserImpersonate::ImpersonateController#create as HTML
39
+ Completed 500 Internal Server Error in 1ms
40
+  (0.1ms) rollback transaction
41
+  (0.2ms) begin transaction
42
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
43
+ Redirected to http://test.host/
44
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
45
+  (0.1ms) rollback transaction
46
+  (0.0ms) begin transaction
47
+  (0.1ms) rollback transaction
48
+  (0.1ms) begin transaction
49
+ Processing by UserImpersonate::ImpersonateController#index as HTML
50
+ Completed 500 Internal Server Error in 0ms
51
+  (0.1ms) rollback transaction
52
+  (0.1ms) begin transaction
53
+  (0.0ms) rollback transaction
54
+ Connecting to database specified by database.yml
55
+  (0.3ms) begin transaction
56
+ Processing by UserImpersonate::ImpersonateController#create as HTML
57
+ Completed 500 Internal Server Error in 0ms
58
+  (0.1ms) rollback transaction
59
+  (0.1ms) begin transaction
60
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
61
+ Completed 500 Internal Server Error in 0ms
62
+  (0.1ms) rollback transaction
63
+  (0.1ms) begin transaction
64
+  (0.0ms) rollback transaction
65
+  (0.1ms) begin transaction
66
+ Processing by UserImpersonate::ImpersonateController#index as HTML
67
+ Completed 500 Internal Server Error in 0ms
68
+  (0.1ms) rollback transaction
69
+  (0.1ms) begin transaction
70
+  (0.0ms) rollback transaction
71
+ Connecting to database specified by database.yml
72
+  (0.3ms) begin transaction
73
+ Processing by UserImpersonate::ImpersonateController#create as HTML
74
+ Completed 401 Unauthorized in 2ms
75
+ Rendered text template (0.0ms)
76
+  (0.1ms) rollback transaction
77
+  (0.0ms) begin transaction
78
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
79
+ Completed 401 Unauthorized in 0ms
80
+  (0.0ms) rollback transaction
81
+  (0.0ms) begin transaction
82
+  (0.0ms) rollback transaction
83
+  (0.0ms) begin transaction
84
+ Processing by UserImpersonate::ImpersonateController#index as HTML
85
+ Completed 401 Unauthorized in 0ms
86
+  (0.0ms) rollback transaction
87
+  (0.0ms) begin transaction
88
+  (0.0ms) rollback transaction
89
+ Connecting to database specified by database.yml
90
+  (0.2ms) begin transaction
91
+ Processing by UserImpersonate::ImpersonateController#create as HTML
92
+ Completed 401 Unauthorized in 1ms
93
+ Rendered text template (0.0ms)
94
+  (0.1ms) rollback transaction
95
+  (0.0ms) begin transaction
96
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
97
+ Redirected to http://test.host/
98
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
99
+  (0.0ms) rollback transaction
100
+  (0.0ms) begin transaction
101
+  (0.0ms) rollback transaction
102
+  (0.0ms) begin transaction
103
+ Processing by UserImpersonate::ImpersonateController#index as HTML
104
+ Completed 401 Unauthorized in 1ms
105
+  (0.0ms) rollback transaction
106
+  (0.0ms) begin transaction
107
+  (0.0ms) rollback transaction
108
+ Connecting to database specified by database.yml
109
+  (0.3ms) begin transaction
110
+ Processing by UserImpersonate::ImpersonateController#create as HTML
111
+ Completed 401 Unauthorized in 1ms
112
+ Rendered text template (0.0ms)
113
+  (0.1ms) rollback transaction
114
+  (0.0ms) begin transaction
115
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
116
+ Redirected to http://test.host/
117
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
118
+  (0.0ms) rollback transaction
119
+  (0.0ms) begin transaction
120
+ Processing by UserImpersonate::ImpersonateController#index as HTML
121
+ Completed 401 Unauthorized in 0ms
122
+  (0.0ms) rollback transaction
123
+  (0.0ms) begin transaction
124
+  (0.0ms) rollback transaction
125
+ Connecting to database specified by database.yml
126
+  (0.3ms) begin transaction
127
+ Processing by UserImpersonate::ImpersonateController#create as HTML
128
+ Completed 401 Unauthorized in 1ms
129
+ Rendered text template (0.0ms)
130
+  (0.1ms) rollback transaction
131
+  (0.0ms) begin transaction
132
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
133
+
134
+ ***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
135
+
136
+ Redirected to http://test.host/
137
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
138
+  (0.1ms) rollback transaction
139
+  (0.0ms) begin transaction
140
+ Processing by UserImpersonate::ImpersonateController#index as HTML
141
+ Completed 401 Unauthorized in 0ms
142
+  (0.0ms) rollback transaction
143
+ Connecting to database specified by database.yml
144
+  (0.2ms) begin transaction
145
+ Processing by UserImpersonate::ImpersonateController#create as HTML
146
+ Completed 401 Unauthorized in 1ms
147
+ Rendered text template (0.0ms)
148
+  (0.1ms) rollback transaction
149
+  (0.0ms) begin transaction
150
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
151
+
152
+ ***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
153
+
154
+ Redirected to http://test.host/
155
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
156
+  (0.1ms) rollback transaction
157
+  (0.0ms) begin transaction
158
+ Processing by UserImpersonate::ImpersonateController#index as HTML
159
+ Completed 401 Unauthorized in 1ms
160
+  (0.1ms) rollback transaction
161
+ Connecting to database specified by database.yml
162
+  (0.4ms) begin transaction
163
+ Processing by UserImpersonate::ImpersonateController#create as HTML
164
+ Completed 401 Unauthorized in 2ms
165
+ Rendered text template (0.0ms)
166
+  (0.1ms) rollback transaction
167
+  (0.0ms) begin transaction
168
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
169
+ Connecting to database specified by database.yml
170
+  (0.2ms) begin transaction
171
+ Processing by UserImpersonate::ImpersonateController#create as HTML
172
+ Completed 401 Unauthorized in 1ms
173
+ Rendered text template (0.0ms)
174
+  (0.1ms) rollback transaction
175
+  (0.0ms) begin transaction
176
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
177
+ Connecting to database specified by database.yml
178
+  (0.3ms) begin transaction
179
+ Processing by UserImpersonate::ImpersonateController#create as HTML
180
+ Completed 401 Unauthorized in 1ms
181
+ Rendered text template (0.0ms)
182
+  (0.1ms) rollback transaction
183
+  (0.0ms) begin transaction
184
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
185
+ Connecting to database specified by database.yml
186
+  (0.2ms) begin transaction
187
+ Processing by UserImpersonate::ImpersonateController#create as HTML
188
+ Completed 401 Unauthorized in 1ms
189
+ Rendered text template (0.0ms)
190
+  (0.1ms) rollback transaction
191
+  (0.0ms) begin transaction
192
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
193
+ Connecting to database specified by database.yml
194
+  (0.3ms) begin transaction
195
+ Processing by UserImpersonate::ImpersonateController#create as HTML
196
+ Completed 401 Unauthorized in 1ms
197
+ Rendered text template (0.0ms)
198
+  (0.1ms) rollback transaction
199
+  (0.0ms) begin transaction
200
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
201
+ Redirected to http://test.host/
202
+ Completed 302 Found in 17463ms (ActiveRecord: 0.0ms)
203
+  (0.2ms) rollback transaction
204
+  (0.2ms) begin transaction
205
+ Processing by UserImpersonate::ImpersonateController#index as HTML
206
+ Completed 401 Unauthorized in 2ms
207
+  (0.2ms) rollback transaction
208
+ Connecting to database specified by database.yml
209
+  (0.3ms) begin transaction
210
+ Processing by UserImpersonate::ImpersonateController#create as HTML
211
+ Completed 401 Unauthorized in 1ms
212
+ Rendered text template (0.0ms)
213
+  (0.1ms) rollback transaction
214
+  (0.1ms) begin transaction
215
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
216
+ Redirected to http://test.host/
217
+ Completed 302 Found in 2019ms (ActiveRecord: 0.0ms)
218
+  (0.2ms) rollback transaction
219
+  (0.3ms) begin transaction
220
+ Processing by UserImpersonate::ImpersonateController#index as HTML
221
+ Completed 401 Unauthorized in 2ms
222
+  (0.2ms) rollback transaction
223
+ Connecting to database specified by database.yml
224
+  (0.4ms) begin transaction
225
+  (0.0ms) SAVEPOINT active_record_1
226
+ Fixture Delete (0.1ms) DELETE FROM "users"
227
+ 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-18 23:16:17', '2014-03-18 23:16:17')
228
+ 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-18 23:16:17', '2014-03-18 23:16:17')
229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
231
+
232
+
233
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
234
+ Processing by Devise::SessionsController#new as HTML
235
+ 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)
236
+ 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 (40.5ms)
237
+ Completed 200 OK in 47ms (Views: 46.1ms | ActiveRecord: 0.0ms)
238
+
239
+
240
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
241
+ Processing by Devise::SessionsController#create as HTML
242
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
243
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
244
+  (0.0ms) SAVEPOINT active_record_1
245
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:16:17.630367', "current_sign_in_at" = '2014-03-18 23:16:17.630367', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:16:17.630997' WHERE "users"."id" = 2
246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
247
+ Redirected to http://www.example.com/
248
+ Completed 302 Found in 83ms (ActiveRecord: 0.0ms)
249
+
250
+
251
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
252
+ Processing by HomeController#index as HTML
253
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
254
+ Rendered home/index.html.erb within layouts/application (1.5ms)
255
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.1ms)
256
+
257
+
258
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
259
+ Processing by HomeController#index as HTML
260
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
261
+ Rendered home/index.html.erb within layouts/application (0.7ms)
262
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
263
+
264
+
265
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
266
+ Processing by UserImpersonate::ImpersonateController#index as HTML
267
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
268
+ Redirected to http://www.example.com/
269
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
270
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
271
+
272
+
273
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
274
+ Processing by HomeController#index as HTML
275
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
276
+ Rendered home/index.html.erb within layouts/application (0.7ms)
277
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
278
+  (0.2ms) rollback transaction
279
+  (0.0ms) begin transaction
280
+  (0.0ms) SAVEPOINT active_record_1
281
+ Fixture Delete (0.1ms) DELETE FROM "users"
282
+ 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-18 23:16:17', '2014-03-18 23:16:17')
283
+ 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-18 23:16:17', '2014-03-18 23:16:17')
284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
285
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
286
+
287
+
288
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
289
+ Processing by Devise::SessionsController#new as HTML
290
+ 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)
291
+ 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)
292
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
293
+
294
+
295
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
296
+ Processing by Devise::SessionsController#create as HTML
297
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
298
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
299
+  (0.1ms) SAVEPOINT active_record_1
300
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:16:17.782350', "current_sign_in_at" = '2014-03-18 23:16:17.782350', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:16:17.782892' WHERE "users"."id" = 1
301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
302
+ Redirected to http://www.example.com/
303
+ Completed 302 Found in 79ms (ActiveRecord: 0.0ms)
304
+
305
+
306
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
307
+ Processing by HomeController#index as HTML
308
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
309
+ Rendered home/index.html.erb within layouts/application (1.1ms)
310
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
311
+
312
+
313
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
314
+ Processing by HomeController#index as HTML
315
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
316
+ Rendered home/index.html.erb within layouts/application (1.1ms)
317
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
318
+
319
+
320
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
321
+ Processing by UserImpersonate::ImpersonateController#index as HTML
322
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
323
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
324
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
325
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.6ms)
326
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms)
327
+
328
+
329
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
330
+ Processing by UserImpersonate::ImpersonateController#index as HTML
331
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
332
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
333
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
334
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
335
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
336
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
337
+
338
+
339
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
340
+ Processing by UserImpersonate::ImpersonateController#create as HTML
341
+ Parameters: {"user_id"=>"2"}
342
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
343
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
344
+  (0.1ms) SAVEPOINT active_record_1
345
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:16:17.812604', "current_sign_in_at" = '2014-03-18 23:16:17.812604', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:16:17.813083' WHERE "users"."id" = 2
346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
347
+ Redirected to http://www.example.com/
348
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
349
+
350
+
351
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
352
+ Processing by HomeController#index as HTML
353
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
354
+ Rendered home/index.html.erb within layouts/application (0.6ms)
355
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
356
+ Rendered user_impersonate/_header.html.erb (1.2ms)
357
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
358
+
359
+
360
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:16:17 -0700
361
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
362
+ Parameters: {"utf8"=>"✓"}
363
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
364
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
365
+  (0.2ms) SAVEPOINT active_record_1
366
+  (0.4ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-18 23:16:19.382613', "sign_in_count" = 2, "updated_at" = '2014-03-18 23:16:19.385571' WHERE "users"."id" = 1
367
+  (0.2ms) RELEASE SAVEPOINT active_record_1
368
+ Redirected to http://www.example.com/
369
+ Completed 302 Found in 1790ms (ActiveRecord: 1.7ms)
370
+
371
+
372
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:19 -0700
373
+ Processing by HomeController#index as HTML
374
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
375
+ Rendered home/index.html.erb within layouts/application (5.8ms)
376
+ Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.5ms)
377
+  (0.7ms) rollback transaction
378
+ Connecting to database specified by database.yml
379
+  (0.4ms) begin transaction
380
+ Processing by UserImpersonate::ImpersonateController#create as HTML
381
+ Completed 401 Unauthorized in 1ms
382
+ Rendered text template (0.0ms)
383
+  (0.1ms) rollback transaction
384
+  (0.0ms) begin transaction
385
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
386
+ Redirected to http://test.host/
387
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
388
+  (0.1ms) rollback transaction
389
+  (0.0ms) begin transaction
390
+ Processing by UserImpersonate::ImpersonateController#index as HTML
391
+ Completed 401 Unauthorized in 0ms
392
+  (0.0ms) rollback transaction
393
+ Connecting to database specified by database.yml
394
+  (0.3ms) begin transaction
395
+  (0.0ms) SAVEPOINT active_record_1
396
+ Fixture Delete (0.1ms) DELETE FROM "users"
397
+ Fixture Insert (0.2ms) 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-18 23:16:50', '2014-03-18 23:16:50')
398
+ 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-18 23:16:50', '2014-03-18 23:16:50')
399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
400
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
401
+
402
+
403
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
404
+ Processing by Devise::SessionsController#new as HTML
405
+ 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)
406
+ 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)
407
+ Completed 200 OK in 41ms (Views: 40.5ms | ActiveRecord: 0.0ms)
408
+
409
+
410
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
411
+ Processing by Devise::SessionsController#create as HTML
412
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
413
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
414
+  (0.0ms) SAVEPOINT active_record_1
415
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:16:50.609090', "current_sign_in_at" = '2014-03-18 23:16:50.609090', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:16:50.609774' WHERE "users"."id" = 2
416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
417
+ Redirected to http://www.example.com/
418
+ Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
419
+
420
+
421
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
422
+ Processing by HomeController#index as HTML
423
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
424
+ Rendered home/index.html.erb within layouts/application (1.5ms)
425
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
426
+
427
+
428
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
429
+ Processing by HomeController#index as HTML
430
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
431
+ Rendered home/index.html.erb within layouts/application (0.6ms)
432
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
433
+
434
+
435
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
436
+ Processing by UserImpersonate::ImpersonateController#index as HTML
437
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
438
+ Redirected to http://www.example.com/
439
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
440
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
441
+
442
+
443
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
444
+ Processing by HomeController#index as HTML
445
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
446
+ Rendered home/index.html.erb within layouts/application (0.7ms)
447
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
448
+  (0.2ms) rollback transaction
449
+  (0.0ms) begin transaction
450
+  (0.0ms) SAVEPOINT active_record_1
451
+ Fixture Delete (0.1ms) DELETE FROM "users"
452
+ 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-18 23:16:50', '2014-03-18 23:16:50')
453
+ 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-18 23:16:50', '2014-03-18 23:16:50')
454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
455
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
456
+
457
+
458
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
459
+ Processing by Devise::SessionsController#new as HTML
460
+ 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)
461
+ 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)
462
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
463
+
464
+
465
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
466
+ Processing by Devise::SessionsController#create as HTML
467
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
468
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
469
+  (0.1ms) SAVEPOINT active_record_1
470
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:16:50.721631', "current_sign_in_at" = '2014-03-18 23:16:50.721631', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:16:50.722173' WHERE "users"."id" = 1
471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
472
+ Redirected to http://www.example.com/
473
+ Completed 302 Found in 78ms (ActiveRecord: 0.0ms)
474
+
475
+
476
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
477
+ Processing by HomeController#index as HTML
478
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
479
+ Rendered home/index.html.erb within layouts/application (1.1ms)
480
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
481
+
482
+
483
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
484
+ Processing by HomeController#index as HTML
485
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
486
+ Rendered home/index.html.erb within layouts/application (1.1ms)
487
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
488
+
489
+
490
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
491
+ Processing by UserImpersonate::ImpersonateController#index as HTML
492
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
493
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
494
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
495
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.6ms)
496
+ Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
497
+
498
+
499
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
500
+ Processing by UserImpersonate::ImpersonateController#index as HTML
501
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
502
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
503
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
504
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
505
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
506
+ Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms)
507
+
508
+
509
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
510
+ Processing by UserImpersonate::ImpersonateController#create as HTML
511
+ Parameters: {"user_id"=>"2"}
512
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
513
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
514
+  (0.0ms) SAVEPOINT active_record_1
515
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:16:50.783985', "current_sign_in_at" = '2014-03-18 23:16:50.783985', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:16:50.784377' WHERE "users"."id" = 2
516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
517
+ Redirected to http://www.example.com/
518
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
519
+
520
+
521
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
522
+ Processing by HomeController#index as HTML
523
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
524
+ Rendered home/index.html.erb within layouts/application (0.7ms)
525
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
526
+ Rendered user_impersonate/_header.html.erb (1.3ms)
527
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
528
+
529
+
530
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
531
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
532
+ Parameters: {"utf8"=>"✓"}
533
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
534
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
535
+  (0.0ms) SAVEPOINT active_record_1
536
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-18 23:16:50.797905', "sign_in_count" = 2, "updated_at" = '2014-03-18 23:16:50.798367' WHERE "users"."id" = 1
537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
538
+ Redirected to http://www.example.com/
539
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
540
+
541
+
542
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:16:50 -0700
543
+ Processing by HomeController#index as HTML
544
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
545
+ Rendered home/index.html.erb within layouts/application (0.8ms)
546
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
547
+  (0.2ms) rollback transaction
548
+ Connecting to database specified by database.yml
549
+  (0.4ms) begin transaction
550
+ Processing by UserImpersonate::ImpersonateController#create as HTML
551
+ Completed 401 Unauthorized in 1ms
552
+ Rendered text template (0.0ms)
553
+  (0.1ms) rollback transaction
554
+  (0.0ms) begin transaction
555
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
556
+ Completed 401 Unauthorized in 0ms
557
+  (0.0ms) rollback transaction
558
+  (0.0ms) begin transaction
559
+ Processing by UserImpersonate::ImpersonateController#index as HTML
560
+ Completed 401 Unauthorized in 0ms
561
+  (0.0ms) rollback transaction
562
+ Connecting to database specified by database.yml
563
+  (0.4ms) begin transaction
564
+ Processing by UserImpersonate::ImpersonateController#create as HTML
565
+ Completed 401 Unauthorized in 2ms
566
+ Rendered text template (0.0ms)
567
+  (0.1ms) rollback transaction
568
+  (0.0ms) begin transaction
569
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
570
+ Redirected to http://test.host/
571
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
572
+  (0.1ms) rollback transaction
573
+  (0.0ms) begin transaction
574
+ Processing by UserImpersonate::ImpersonateController#index as HTML
575
+ Completed 401 Unauthorized in 0ms
576
+  (0.0ms) rollback transaction
577
+ Connecting to database specified by database.yml
578
+  (0.3ms) begin transaction
579
+  (0.0ms) SAVEPOINT active_record_1
580
+ Fixture Delete (0.1ms) DELETE FROM "users"
581
+ Fixture Insert (0.2ms) 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-18 23:17:25', '2014-03-18 23:17:25')
582
+ 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-18 23:17:25', '2014-03-18 23:17:25')
583
+  (0.0ms) RELEASE SAVEPOINT active_record_1
584
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
585
+
586
+
587
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
588
+ Processing by Devise::SessionsController#new as HTML
589
+ 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)
590
+ 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)
591
+ Completed 200 OK in 41ms (Views: 39.7ms | ActiveRecord: 0.0ms)
592
+
593
+
594
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
595
+ Processing by Devise::SessionsController#create as HTML
596
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
597
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
598
+  (0.0ms) SAVEPOINT active_record_1
599
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:17:25.899234', "current_sign_in_at" = '2014-03-18 23:17:25.899234', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:17:25.899878' WHERE "users"."id" = 2
600
+  (0.0ms) RELEASE SAVEPOINT active_record_1
601
+ Redirected to http://www.example.com/
602
+ Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
603
+
604
+
605
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
606
+ Processing by HomeController#index as HTML
607
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
608
+ Rendered home/index.html.erb within layouts/application (1.4ms)
609
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)
610
+
611
+
612
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
613
+ Processing by HomeController#index as HTML
614
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
615
+ Rendered home/index.html.erb within layouts/application (0.6ms)
616
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
617
+
618
+
619
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
620
+ Processing by UserImpersonate::ImpersonateController#index as HTML
621
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
622
+ Redirected to http://www.example.com/
623
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
624
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
625
+
626
+
627
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
628
+ Processing by HomeController#index as HTML
629
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
630
+ Rendered home/index.html.erb within layouts/application (0.7ms)
631
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
632
+  (0.2ms) rollback transaction
633
+  (0.0ms) begin transaction
634
+  (0.0ms) SAVEPOINT active_record_1
635
+ Fixture Delete (0.1ms) DELETE FROM "users"
636
+ 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-18 23:17:25', '2014-03-18 23:17:25')
637
+ 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-18 23:17:25', '2014-03-18 23:17:25')
638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
639
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
640
+
641
+
642
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
643
+ Processing by Devise::SessionsController#new as HTML
644
+ 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)
645
+ 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.3ms)
646
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
647
+
648
+
649
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:17:25 -0700
650
+ Processing by Devise::SessionsController#create as HTML
651
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
652
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
653
+  (0.0ms) SAVEPOINT active_record_1
654
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:17:26.016416', "current_sign_in_at" = '2014-03-18 23:17:26.016416', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:17:26.016835' WHERE "users"."id" = 1
655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
656
+ Redirected to http://www.example.com/
657
+ Completed 302 Found in 79ms (ActiveRecord: 0.0ms)
658
+
659
+
660
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
661
+ Processing by HomeController#index as HTML
662
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
663
+ Rendered home/index.html.erb within layouts/application (1.1ms)
664
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
665
+
666
+
667
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
668
+ Processing by HomeController#index as HTML
669
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
670
+ Rendered home/index.html.erb within layouts/application (1.1ms)
671
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
672
+
673
+
674
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
675
+ Processing by UserImpersonate::ImpersonateController#index as HTML
676
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
677
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
678
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
679
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.8ms)
680
+ Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)
681
+
682
+
683
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
684
+ Processing by UserImpersonate::ImpersonateController#index as HTML
685
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
686
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
687
+  (0.2ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
688
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
689
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.5ms)
690
+ Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.5ms)
691
+
692
+
693
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
694
+ Processing by UserImpersonate::ImpersonateController#create as HTML
695
+ Parameters: {"user_id"=>"2"}
696
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
697
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
698
+  (0.0ms) SAVEPOINT active_record_1
699
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:17:26.079401', "current_sign_in_at" = '2014-03-18 23:17:26.079401', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:17:26.079820' WHERE "users"."id" = 2
700
+  (0.0ms) RELEASE SAVEPOINT active_record_1
701
+ Redirected to http://www.example.com/
702
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
703
+
704
+
705
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
706
+ Processing by HomeController#index as HTML
707
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
708
+ Rendered home/index.html.erb within layouts/application (0.7ms)
709
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
710
+ Rendered user_impersonate/_header.html.erb (1.2ms)
711
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)
712
+
713
+
714
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
715
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
716
+ Parameters: {"utf8"=>"✓"}
717
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
718
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
719
+  (0.0ms) SAVEPOINT active_record_1
720
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-18 23:17:26.093972', "sign_in_count" = 2, "updated_at" = '2014-03-18 23:17:26.094503' WHERE "users"."id" = 1
721
+  (0.0ms) RELEASE SAVEPOINT active_record_1
722
+ Redirected to http://www.example.com/
723
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
724
+
725
+
726
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:17:26 -0700
727
+ Processing by HomeController#index as HTML
728
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
729
+ Rendered home/index.html.erb within layouts/application (0.9ms)
730
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
731
+  (0.1ms) rollback transaction
732
+ Connecting to database specified by database.yml
733
+  (0.3ms) begin transaction
734
+ Processing by UserImpersonate::ImpersonateController#create as HTML
735
+ Completed 401 Unauthorized in 1ms
736
+ Rendered text template (0.0ms)
737
+  (0.1ms) rollback transaction
738
+  (0.0ms) begin transaction
739
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
740
+ Completed 401 Unauthorized in 0ms
741
+  (0.0ms) rollback transaction
742
+  (0.0ms) begin transaction
743
+ Processing by UserImpersonate::ImpersonateController#index as HTML
744
+ Completed 401 Unauthorized in 0ms
745
+  (0.0ms) rollback transaction
746
+  (0.0ms) begin transaction
747
+  (0.1ms) rollback transaction
748
+ Connecting to database specified by database.yml
749
+  (0.2ms) begin transaction
750
+ Processing by UserImpersonate::ImpersonateController#create as HTML
751
+ Completed 401 Unauthorized in 1ms
752
+ Rendered text template (0.0ms)
753
+  (0.1ms) rollback transaction
754
+  (0.0ms) begin transaction
755
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
756
+ Redirected to http://test.host/
757
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
758
+  (0.0ms) rollback transaction
759
+  (0.0ms) begin transaction
760
+ Processing by UserImpersonate::ImpersonateController#index as HTML
761
+ Completed 401 Unauthorized in 0ms
762
+  (0.0ms) rollback transaction
763
+  (0.0ms) begin transaction
764
+  (0.0ms) rollback transaction
765
+ Connecting to database specified by database.yml
766
+  (0.3ms) begin transaction
767
+  (0.0ms) SAVEPOINT active_record_1
768
+ Fixture Delete (0.1ms) DELETE FROM "users"
769
+ 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-18 23:24:41', '2014-03-18 23:24:41')
770
+ 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-18 23:24:41', '2014-03-18 23:24:41')
771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
772
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
773
+
774
+
775
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
776
+ Processing by Devise::SessionsController#new as HTML
777
+ 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.4ms)
778
+ 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.7ms)
779
+ Completed 200 OK in 16ms (Views: 15.1ms | ActiveRecord: 0.0ms)
780
+
781
+
782
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
783
+ Processing by Devise::SessionsController#create as HTML
784
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
785
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
786
+  (0.0ms) SAVEPOINT active_record_1
787
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:24:41.507772', "current_sign_in_at" = '2014-03-18 23:24:41.507772', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:24:41.508422' WHERE "users"."id" = 2
788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
789
+ Redirected to http://www.example.com/
790
+ Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
791
+
792
+
793
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
794
+ Processing by HomeController#index as HTML
795
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
796
+ Rendered home/index.html.erb within layouts/application (1.4ms)
797
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
798
+
799
+
800
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
801
+ Processing by HomeController#index as HTML
802
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
803
+ Rendered home/index.html.erb within layouts/application (0.7ms)
804
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
805
+
806
+
807
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
808
+ Processing by UserImpersonate::ImpersonateController#index as HTML
809
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
810
+ Redirected to http://www.example.com/
811
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
812
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
813
+
814
+
815
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
816
+ Processing by HomeController#index as HTML
817
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
818
+ Rendered home/index.html.erb within layouts/application (0.7ms)
819
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
820
+  (0.1ms) rollback transaction
821
+  (0.0ms) begin transaction
822
+  (0.0ms) SAVEPOINT active_record_1
823
+ Fixture Delete (0.1ms) DELETE FROM "users"
824
+ 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-18 23:24:41', '2014-03-18 23:24:41')
825
+ 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-18 23:24:41', '2014-03-18 23:24:41')
826
+  (0.0ms) RELEASE SAVEPOINT active_record_1
827
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
828
+
829
+
830
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
831
+ Processing by Devise::SessionsController#new as HTML
832
+ 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)
833
+ 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.5ms)
834
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
835
+
836
+
837
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
838
+ Processing by Devise::SessionsController#create as HTML
839
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
840
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
841
+  (0.1ms) SAVEPOINT active_record_1
842
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:24:41.624439', "current_sign_in_at" = '2014-03-18 23:24:41.624439', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:24:41.624968' WHERE "users"."id" = 1
843
+  (0.0ms) RELEASE SAVEPOINT active_record_1
844
+ Redirected to http://www.example.com/
845
+ Completed 302 Found in 79ms (ActiveRecord: 0.0ms)
846
+
847
+
848
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
849
+ Processing by HomeController#index as HTML
850
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
851
+ Rendered home/index.html.erb within layouts/application (1.1ms)
852
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
853
+
854
+
855
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
856
+ Processing by HomeController#index as HTML
857
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
858
+ Rendered home/index.html.erb within layouts/application (1.1ms)
859
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
860
+
861
+
862
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
863
+ Processing by UserImpersonate::ImpersonateController#index as HTML
864
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
865
+  (0.5ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
866
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
867
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (5.0ms)
868
+ Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.9ms)
869
+
870
+
871
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
872
+ Processing by UserImpersonate::ImpersonateController#index as HTML
873
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
874
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
875
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
876
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
877
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
878
+ Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.4ms)
879
+
880
+
881
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
882
+ Processing by UserImpersonate::ImpersonateController#create as HTML
883
+ Parameters: {"user_id"=>"2"}
884
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
885
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
886
+  (0.0ms) SAVEPOINT active_record_1
887
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:24:41.690099', "current_sign_in_at" = '2014-03-18 23:24:41.690099', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:24:41.690534' WHERE "users"."id" = 2
888
+  (0.0ms) RELEASE SAVEPOINT active_record_1
889
+ Redirected to http://www.example.com/
890
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
891
+
892
+
893
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
894
+ Processing by HomeController#index as HTML
895
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
896
+ Rendered home/index.html.erb within layouts/application (0.7ms)
897
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
898
+ Rendered user_impersonate/_header.html.erb (1.4ms)
899
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
900
+
901
+
902
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
903
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
904
+ Parameters: {"utf8"=>"✓"}
905
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
906
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
907
+  (0.0ms) SAVEPOINT active_record_1
908
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-18 23:24:41.703696', "sign_in_count" = 2, "updated_at" = '2014-03-18 23:24:41.704176' WHERE "users"."id" = 1
909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
910
+ Redirected to http://www.example.com/
911
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
912
+
913
+
914
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:41 -0700
915
+ Processing by HomeController#index as HTML
916
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
917
+ Rendered home/index.html.erb within layouts/application (0.9ms)
918
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
919
+  (0.1ms) rollback transaction
920
+ Connecting to database specified by database.yml
921
+  (0.3ms) begin transaction
922
+ Processing by UserImpersonate::ImpersonateController#create as HTML
923
+ Completed 401 Unauthorized in 1ms
924
+ Rendered text template (0.0ms)
925
+  (0.1ms) rollback transaction
926
+  (0.0ms) begin transaction
927
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
928
+ Redirected to http://test.host/
929
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
930
+  (0.0ms) rollback transaction
931
+  (0.0ms) begin transaction
932
+ Processing by UserImpersonate::ImpersonateController#index as HTML
933
+ Completed 401 Unauthorized in 0ms
934
+  (0.0ms) rollback transaction
935
+  (0.0ms) begin transaction
936
+  (0.0ms) rollback transaction
937
+ Connecting to database specified by database.yml
938
+  (0.3ms) begin transaction
939
+  (0.0ms) SAVEPOINT active_record_1
940
+ Fixture Delete (0.1ms) DELETE FROM "users"
941
+ 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-18 23:52:44', '2014-03-18 23:52:44')
942
+ 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-18 23:52:44', '2014-03-18 23:52:44')
943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
944
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1
945
+
946
+
947
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
948
+ Processing by Devise::SessionsController#new as HTML
949
+ 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)
950
+ 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.6ms)
951
+ Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.0ms)
952
+
953
+
954
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
955
+ Processing by Devise::SessionsController#create as HTML
956
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
957
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
958
+  (0.0ms) SAVEPOINT active_record_1
959
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:52:44.699277', "current_sign_in_at" = '2014-03-18 23:52:44.699277', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:52:44.700034' WHERE "users"."id" = 2
960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
961
+ Redirected to http://www.example.com/
962
+ Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
963
+
964
+
965
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
966
+ Processing by HomeController#index as HTML
967
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
968
+ Rendered home/index.html.erb within layouts/application (1.5ms)
969
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
970
+
971
+
972
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
973
+ Processing by HomeController#index as HTML
974
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
975
+ Rendered home/index.html.erb within layouts/application (0.7ms)
976
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
977
+
978
+
979
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
980
+ Processing by UserImpersonate::ImpersonateController#index as HTML
981
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
982
+ Redirected to http://www.example.com/
983
+ Filter chain halted as :current_user_must_be_staff! rendered or redirected
984
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
985
+
986
+
987
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
988
+ Processing by HomeController#index as HTML
989
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
990
+ Rendered home/index.html.erb within layouts/application (0.8ms)
991
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
992
+  (0.1ms) rollback transaction
993
+  (0.0ms) begin transaction
994
+  (0.0ms) SAVEPOINT active_record_1
995
+ Fixture Delete (0.1ms) DELETE FROM "users"
996
+ 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-18 23:52:44', '2014-03-18 23:52:44')
997
+ 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-18 23:52:44', '2014-03-18 23:52:44')
998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
999
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1
1000
+
1001
+
1002
+ Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1003
+ Processing by Devise::SessionsController#new as HTML
1004
+ 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)
1005
+ 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)
1006
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
1007
+
1008
+
1009
+ Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1010
+ Processing by Devise::SessionsController#create as HTML
1011
+ Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
1012
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
1013
+  (0.1ms) SAVEPOINT active_record_1
1014
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:52:44.812688', "current_sign_in_at" = '2014-03-18 23:52:44.812688', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:52:44.813253' WHERE "users"."id" = 1
1015
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1016
+ Redirected to http://www.example.com/
1017
+ Completed 302 Found in 78ms (ActiveRecord: 0.0ms)
1018
+
1019
+
1020
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1021
+ Processing by HomeController#index as HTML
1022
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1023
+ Rendered home/index.html.erb within layouts/application (1.2ms)
1024
+ Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.1ms)
1025
+
1026
+
1027
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1028
+ Processing by HomeController#index as HTML
1029
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1030
+ Rendered home/index.html.erb within layouts/application (1.1ms)
1031
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
1032
+
1033
+
1034
+ Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1035
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1036
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1037
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))
1038
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
1039
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (4.0ms)
1040
+ Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)
1041
+
1042
+
1043
+ Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1044
+ Processing by UserImpersonate::ImpersonateController#index as HTML
1045
+ Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
1046
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1047
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
1048
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC
1049
+ Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.3ms)
1050
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)
1051
+
1052
+
1053
+ Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1054
+ Processing by UserImpersonate::ImpersonateController#create as HTML
1055
+ Parameters: {"user_id"=>"2"}
1056
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1057
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
1058
+  (0.0ms) SAVEPOINT active_record_1
1059
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2014-03-18 23:52:44.875245', "current_sign_in_at" = '2014-03-18 23:52:44.875245', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2014-03-18 23:52:44.875642' WHERE "users"."id" = 2
1060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1061
+ Redirected to http://www.example.com/
1062
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1063
+
1064
+
1065
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1066
+ Processing by HomeController#index as HTML
1067
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1068
+ Rendered home/index.html.erb within layouts/application (0.7ms)
1069
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1070
+ Rendered user_impersonate/_header.html.erb (1.3ms)
1071
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
1072
+
1073
+
1074
+ Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1075
+ Processing by UserImpersonate::ImpersonateController#destroy as HTML
1076
+ Parameters: {"utf8"=>"✓"}
1077
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1078
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
1079
+  (0.0ms) SAVEPOINT active_record_1
1080
+  (0.1ms) UPDATE "users" SET "current_sign_in_at" = '2014-03-18 23:52:44.888400', "sign_in_count" = 2, "updated_at" = '2014-03-18 23:52:44.888849' WHERE "users"."id" = 1
1081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1082
+ Redirected to http://www.example.com/
1083
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1084
+
1085
+
1086
+ Started GET "/" for 127.0.0.1 at 2014-03-18 16:52:44 -0700
1087
+ Processing by HomeController#index as HTML
1088
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
1089
+ Rendered home/index.html.erb within layouts/application (0.9ms)
1090
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
1091
+  (0.1ms) rollback transaction