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.
- checksums.yaml +4 -4
- data/README.md +15 -12
- data/Rakefile +6 -4
- data/app/controllers/user_impersonate/impersonate_controller.rb +1 -1
- data/lib/user_impersonate/version.rb +1 -1
- data/test/{dummy → dummy-rails3}/README.rdoc +0 -0
- data/test/{dummy → dummy-rails3}/Rakefile +0 -0
- data/test/{dummy → dummy-rails3}/app/assets/javascripts/application.js +0 -0
- data/test/{dummy → dummy-rails3}/app/assets/javascripts/home.js +0 -0
- data/test/{dummy → dummy-rails3}/app/assets/stylesheets/application.css +0 -0
- data/test/{dummy → dummy-rails3}/app/assets/stylesheets/home.css +0 -0
- data/test/{dummy → dummy-rails3}/app/controllers/application_controller.rb +0 -0
- data/test/{dummy → dummy-rails3}/app/controllers/home_controller.rb +0 -0
- data/test/{dummy → dummy-rails3}/app/helpers/application_helper.rb +0 -0
- data/test/{dummy → dummy-rails3}/app/helpers/home_helper.rb +0 -0
- data/test/{dummy → dummy-rails3}/app/models/user.rb +0 -0
- data/test/{dummy → dummy-rails3}/app/views/home/index.html.erb +0 -0
- data/test/{dummy → dummy-rails3}/app/views/layouts/application.html.erb +0 -0
- data/test/{dummy → dummy-rails3}/app/views/user_impersonate/_header.html.erb +0 -0
- data/test/{dummy → dummy-rails3}/config.ru +0 -0
- data/test/{dummy → dummy-rails3}/config/application.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/boot.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/database.yml +0 -0
- data/test/{dummy → dummy-rails3}/config/environment.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/environments/development.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/environments/production.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/environments/test.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/backtrace_silencers.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/devise.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/inflections.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/mime_types.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/secret_token.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/session_store.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/user_impersonate.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/wrap_parameters.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/locales/devise.en.yml +0 -0
- data/test/{dummy → dummy-rails3}/config/locales/en.yml +0 -0
- data/test/{dummy → dummy-rails3}/config/routes.rb +0 -0
- data/test/{dummy → dummy-rails3}/db/development.sqlite3 +0 -0
- data/test/{dummy → dummy-rails3}/db/migrate/20120914174453_devise_create_users.rb +0 -0
- data/test/{dummy → dummy-rails3}/db/migrate/20120914184123_add_staff_flag_to_users.rb +0 -0
- data/test/{dummy → dummy-rails3}/db/schema.rb +0 -0
- data/test/{dummy → dummy-rails3}/db/test.sqlite3 +0 -0
- data/test/{dummy → dummy-rails3}/lib/tasks/cucumber.rake +0 -0
- data/test/dummy-rails3/log/development.log +262 -0
- data/test/dummy-rails3/log/test.log +1091 -0
- data/test/{dummy → dummy-rails3}/public/404.html +0 -0
- data/test/{dummy → dummy-rails3}/public/422.html +0 -0
- data/test/{dummy → dummy-rails3}/public/500.html +0 -0
- data/test/{dummy → dummy-rails3}/public/favicon.ico +0 -0
- data/test/{dummy → dummy-rails3}/script/rails +0 -0
- data/test/{dummy → dummy-rails3}/test/fixtures/users.yml +0 -0
- data/test/{dummy → dummy-rails3}/test/unit/helpers/home_helper_test.rb +0 -0
- data/test/{dummy → dummy-rails3}/test/unit/user_test.rb +0 -0
- data/test/dummy-rails4/README.rdoc +261 -0
- data/test/dummy-rails4/Rakefile +7 -0
- data/test/dummy-rails4/app/assets/javascripts/application.js +15 -0
- data/test/dummy-rails4/app/assets/javascripts/home.js +2 -0
- data/test/dummy-rails4/app/assets/stylesheets/application.css +16 -0
- data/test/dummy-rails4/app/assets/stylesheets/home.css +7 -0
- data/test/dummy-rails4/app/controllers/application_controller.rb +3 -0
- data/test/dummy-rails4/app/controllers/home_controller.rb +4 -0
- data/test/dummy-rails4/app/helpers/application_helper.rb +2 -0
- data/test/dummy-rails4/app/helpers/home_helper.rb +2 -0
- data/test/dummy-rails4/app/models/user.rb +17 -0
- data/test/dummy-rails4/app/views/home/index.html.erb +11 -0
- data/test/dummy-rails4/app/views/layouts/application.html.erb +22 -0
- data/test/dummy-rails4/app/views/user_impersonate/_header.html.erb +65 -0
- data/test/dummy-rails4/config.ru +4 -0
- data/test/dummy-rails4/config/application.rb +57 -0
- data/test/dummy-rails4/config/boot.rb +10 -0
- data/test/dummy-rails4/config/database.yml +25 -0
- data/test/dummy-rails4/config/environment.rb +5 -0
- data/test/dummy-rails4/config/environments/development.rb +36 -0
- data/test/dummy-rails4/config/environments/production.rb +69 -0
- data/test/dummy-rails4/config/environments/test.rb +33 -0
- data/test/dummy-rails4/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy-rails4/config/initializers/devise.rb +234 -0
- data/test/dummy-rails4/config/initializers/inflections.rb +15 -0
- data/test/dummy-rails4/config/initializers/mime_types.rb +5 -0
- data/test/dummy-rails4/config/initializers/secret_token.rb +9 -0
- data/test/dummy-rails4/config/initializers/session_store.rb +8 -0
- data/test/dummy-rails4/config/initializers/user_impersonate.rb +18 -0
- data/test/dummy-rails4/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy-rails4/config/locales/devise.en.yml +58 -0
- data/test/dummy-rails4/config/locales/en.yml +5 -0
- data/test/dummy-rails4/config/routes.rb +8 -0
- data/test/dummy-rails4/db/development.sqlite3 +0 -0
- data/test/dummy-rails4/db/migrate/20120914174453_devise_create_users.rb +48 -0
- data/test/dummy-rails4/db/migrate/20120914184123_add_staff_flag_to_users.rb +5 -0
- data/test/dummy-rails4/db/schema.rb +36 -0
- data/test/dummy-rails4/db/test.sqlite3 +0 -0
- data/test/dummy-rails4/lib/tasks/cucumber.rake +65 -0
- data/test/dummy-rails4/log/development.log +27 -0
- data/test/dummy-rails4/log/test.log +465 -0
- data/test/dummy-rails4/public/404.html +26 -0
- data/test/dummy-rails4/public/422.html +26 -0
- data/test/dummy-rails4/public/500.html +25 -0
- data/test/dummy-rails4/public/favicon.ico +0 -0
- data/test/dummy-rails4/script/rails +6 -0
- data/test/dummy-rails4/test/fixtures/users.yml +14 -0
- data/test/dummy-rails4/test/unit/helpers/home_helper_test.rb +4 -0
- data/test/dummy-rails4/test/unit/user_test.rb +7 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/1c9faaf28d05409b88ad3113374d613c +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/2625847957ecb8614efc9b58b07cabdf +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/35f33ae400a6b0b5bf527436a68133b5 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/3b83d2c20dfdb631259eb9d056ea4419 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/40fc2f3d2a468a00e463f1d313cb1683 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/5f1c168e97e274509aa4673eab0d86f6 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/681d1010f98d5ed273e67645c7cb454d +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/7411b44628aea038332f13f5ed73e073 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/7f14251885cab31b58c878119cbdc199 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8483b329d12e7e986bc5a2204bbcb4f8 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8ff157af159f38d424ce1367e29760a2 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/b6f020b01a84691088a0c459a18f9c7e +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/bdaaf186999b6b59a3063d23b589d307 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/d0cde4ef34755468270bb49c4a3689f1 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/edbef6e0d0a4742346cf479f2c522eb0 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/f1aac9109f5dae028b3c56eb07311208 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/fd6c8e27b44aa2db77bf0a8b5118bdf8 +0 -0
- data/test/functional/impersonate_controller_test.rb +19 -0
- data/test/test_helper.rb +18 -4
- data/test/test_utils.rb +49 -0
- metadata +262 -112
- data/test/dummy/log/development.log +0 -751
- data/test/dummy/log/test.log +0 -8348
@@ -0,0 +1,1091 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
3
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
4
|
+
Completed 500 Internal Server Error in 0ms
|
5
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
8
|
+
Completed 500 Internal Server Error in 0ms
|
9
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
14
|
+
Completed 500 Internal Server Error in 0ms
|
15
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
18
|
+
Connecting to database specified by database.yml
|
19
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
20
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
21
|
+
Completed 500 Internal Server Error in 0ms
|
22
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
24
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
25
|
+
Redirected to http://test.host/
|
26
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
27
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
28
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
29
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
30
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
31
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
32
|
+
Completed 500 Internal Server Error in 0ms
|
33
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
34
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
36
|
+
Connecting to database specified by database.yml
|
37
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
38
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
39
|
+
Completed 500 Internal Server Error in 1ms
|
40
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
41
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
42
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
43
|
+
Redirected to http://test.host/
|
44
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
45
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
46
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
47
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
48
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
49
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
50
|
+
Completed 500 Internal Server Error in 0ms
|
51
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
52
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
54
|
+
Connecting to database specified by database.yml
|
55
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
56
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
57
|
+
Completed 500 Internal Server Error in 0ms
|
58
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
60
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
61
|
+
Completed 500 Internal Server Error in 0ms
|
62
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
65
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
66
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
67
|
+
Completed 500 Internal Server Error in 0ms
|
68
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
69
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
70
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
71
|
+
Connecting to database specified by database.yml
|
72
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
73
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
74
|
+
Completed 401 Unauthorized in 2ms
|
75
|
+
Rendered text template (0.0ms)
|
76
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
77
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
78
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
79
|
+
Completed 401 Unauthorized in 0ms
|
80
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
81
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
82
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
83
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
84
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
85
|
+
Completed 401 Unauthorized in 0ms
|
86
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
87
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
88
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
89
|
+
Connecting to database specified by database.yml
|
90
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
91
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
92
|
+
Completed 401 Unauthorized in 1ms
|
93
|
+
Rendered text template (0.0ms)
|
94
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
95
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
96
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
97
|
+
Redirected to http://test.host/
|
98
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
99
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
100
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
101
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
102
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
103
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
104
|
+
Completed 401 Unauthorized in 1ms
|
105
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
106
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
107
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
108
|
+
Connecting to database specified by database.yml
|
109
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
110
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
111
|
+
Completed 401 Unauthorized in 1ms
|
112
|
+
Rendered text template (0.0ms)
|
113
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
114
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
115
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
116
|
+
Redirected to http://test.host/
|
117
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
118
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
119
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
120
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
121
|
+
Completed 401 Unauthorized in 0ms
|
122
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
123
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
124
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
125
|
+
Connecting to database specified by database.yml
|
126
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
127
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
128
|
+
Completed 401 Unauthorized in 1ms
|
129
|
+
Rendered text template (0.0ms)
|
130
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
139
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
141
|
+
Completed 401 Unauthorized in 0ms
|
142
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
143
|
+
Connecting to database specified by database.yml
|
144
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
145
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
146
|
+
Completed 401 Unauthorized in 1ms
|
147
|
+
Rendered text template (0.0ms)
|
148
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
149
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
157
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
158
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
159
|
+
Completed 401 Unauthorized in 1ms
|
160
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
161
|
+
Connecting to database specified by database.yml
|
162
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
163
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
164
|
+
Completed 401 Unauthorized in 2ms
|
165
|
+
Rendered text template (0.0ms)
|
166
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
167
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
168
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
169
|
+
Connecting to database specified by database.yml
|
170
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
171
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
172
|
+
Completed 401 Unauthorized in 1ms
|
173
|
+
Rendered text template (0.0ms)
|
174
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
175
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
176
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
177
|
+
Connecting to database specified by database.yml
|
178
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
179
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
180
|
+
Completed 401 Unauthorized in 1ms
|
181
|
+
Rendered text template (0.0ms)
|
182
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
183
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
184
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
185
|
+
Connecting to database specified by database.yml
|
186
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
187
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
188
|
+
Completed 401 Unauthorized in 1ms
|
189
|
+
Rendered text template (0.0ms)
|
190
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
191
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
192
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
193
|
+
Connecting to database specified by database.yml
|
194
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
195
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
196
|
+
Completed 401 Unauthorized in 1ms
|
197
|
+
Rendered text template (0.0ms)
|
198
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
199
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
200
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
201
|
+
Redirected to http://test.host/
|
202
|
+
Completed 302 Found in 17463ms (ActiveRecord: 0.0ms)
|
203
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
204
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
205
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
206
|
+
Completed 401 Unauthorized in 2ms
|
207
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
208
|
+
Connecting to database specified by database.yml
|
209
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
210
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
211
|
+
Completed 401 Unauthorized in 1ms
|
212
|
+
Rendered text template (0.0ms)
|
213
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
214
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
215
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
216
|
+
Redirected to http://test.host/
|
217
|
+
Completed 302 Found in 2019ms (ActiveRecord: 0.0ms)
|
218
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
219
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
220
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
221
|
+
Completed 401 Unauthorized in 2ms
|
222
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
223
|
+
Connecting to database specified by database.yml
|
224
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
225
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
226
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
227
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
229
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
244
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
245
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
276
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
277
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
278
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
279
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
280
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
281
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
282
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
284
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
285
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
299
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
323
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
324
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
333
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
334
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
343
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
344
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
345
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "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[0m
|
346
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
354
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
355
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
364
|
+
[1m[35mUser Load (0.6ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
365
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
366
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.5ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
378
|
+
Connecting to database specified by database.yml
|
379
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
380
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
381
|
+
Completed 401 Unauthorized in 1ms
|
382
|
+
Rendered text template (0.0ms)
|
383
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
384
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
385
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
386
|
+
Redirected to http://test.host/
|
387
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
388
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
389
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
390
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
391
|
+
Completed 401 Unauthorized in 0ms
|
392
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
393
|
+
Connecting to database specified by database.yml
|
394
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
395
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
396
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
397
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
399
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
400
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
414
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
415
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
446
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
447
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
448
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
449
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
450
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
451
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
452
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
454
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
455
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
469
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
470
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
493
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
494
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
503
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
504
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
513
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
514
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
515
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "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[0m
|
516
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
524
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
525
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
534
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
535
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
536
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
548
|
+
Connecting to database specified by database.yml
|
549
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
550
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
551
|
+
Completed 401 Unauthorized in 1ms
|
552
|
+
Rendered text template (0.0ms)
|
553
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
554
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
555
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
556
|
+
Completed 401 Unauthorized in 0ms
|
557
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
558
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
559
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
560
|
+
Completed 401 Unauthorized in 0ms
|
561
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
562
|
+
Connecting to database specified by database.yml
|
563
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
564
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
565
|
+
Completed 401 Unauthorized in 2ms
|
566
|
+
Rendered text template (0.0ms)
|
567
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
568
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
569
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
570
|
+
Redirected to http://test.host/
|
571
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
572
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
573
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
574
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
575
|
+
Completed 401 Unauthorized in 0ms
|
576
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
577
|
+
Connecting to database specified by database.yml
|
578
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
579
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
580
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
581
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
583
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
584
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
598
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
599
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
630
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
631
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
632
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
633
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
634
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
635
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
636
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
638
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
639
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
653
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
654
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
677
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
678
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
687
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
688
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
697
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
698
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
699
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "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[0m
|
700
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
708
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
709
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
718
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
719
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
720
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
732
|
+
Connecting to database specified by database.yml
|
733
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
734
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
735
|
+
Completed 401 Unauthorized in 1ms
|
736
|
+
Rendered text template (0.0ms)
|
737
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
738
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
739
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
740
|
+
Completed 401 Unauthorized in 0ms
|
741
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
742
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
743
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
744
|
+
Completed 401 Unauthorized in 0ms
|
745
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
746
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
747
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
748
|
+
Connecting to database specified by database.yml
|
749
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
750
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
751
|
+
Completed 401 Unauthorized in 1ms
|
752
|
+
Rendered text template (0.0ms)
|
753
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
754
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
755
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
756
|
+
Redirected to http://test.host/
|
757
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
758
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
759
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
760
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
761
|
+
Completed 401 Unauthorized in 0ms
|
762
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
763
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
764
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
765
|
+
Connecting to database specified by database.yml
|
766
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
767
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
768
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
769
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
771
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
772
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
786
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
787
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
818
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
819
|
+
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
820
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
821
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
822
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
823
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
824
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
826
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
827
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
841
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
842
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
865
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
866
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
875
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
876
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
885
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
886
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
887
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "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[0m
|
888
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
896
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
897
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
906
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
907
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
908
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
920
|
+
Connecting to database specified by database.yml
|
921
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
922
|
+
Processing by UserImpersonate::ImpersonateController#create as HTML
|
923
|
+
Completed 401 Unauthorized in 1ms
|
924
|
+
Rendered text template (0.0ms)
|
925
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
926
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
927
|
+
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
928
|
+
Redirected to http://test.host/
|
929
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
930
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
931
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
932
|
+
Processing by UserImpersonate::ImpersonateController#index as HTML
|
933
|
+
Completed 401 Unauthorized in 0ms
|
934
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
935
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
936
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
937
|
+
Connecting to database specified by database.yml
|
938
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
939
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
940
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
941
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
943
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
944
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' LIMIT 1
|
958
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
959
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
990
|
+
Rendered home/index.html.erb within layouts/application (0.8ms)
|
991
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
992
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
993
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
994
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
995
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
996
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
998
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
999
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' LIMIT 1
|
1013
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1014
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1037
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
1038
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1047
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
1048
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1057
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
1058
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1059
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "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[0m
|
1060
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1[0m
|
1068
|
+
Rendered home/index.html.erb within layouts/application (0.7ms)
|
1069
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1078
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
|
1079
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1080
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|