user_impersonate2 0.10.2 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/user_impersonate/impersonate_controller.rb +2 -0
- data/app/views/user_impersonate/_header.html.erb +4 -4
- data/lib/generators/user_impersonate/templates/app/views/user_impersonate/_header.html.erb +4 -4
- data/lib/user_impersonate/version.rb +1 -2
- data/test/dummy-rails4/db/test.sqlite3 +0 -0
- data/test/dummy-rails4/log/test.log +19 -912
- metadata +190 -242
- data/test/dummy-rails4/db/development.sqlite3 +0 -0
- data/test/dummy-rails4/log/development.log +0 -18
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/0cc1c92437f1c4975bb5abbbd424a275 +0 -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/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/70f1b4a1d50faffb0516da04ecf73bd0 +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/bbbc0acfefa636c66069f61f74e4f175 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/c87b21c4aa04f8dcc3ae32da29c99d97 +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/f7cbd26ba1d28d48de824f0e94586655 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 365f990714f186dd66b5d9bd664949148d57a0af
|
4
|
+
data.tar.gz: 0f691fca3f1b82b0f7ed4a89c649acf42eadd757
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb7e715bda760de888c94f3243f0c1dab8d21f9f6d28f06c0b6f512a69d1ec4cbc26686e797420e97aab8c1a123eab3ecdca8056553ca56435aa73743f84d6f9
|
7
|
+
data.tar.gz: 6b7333dfe663f696652690e4e10de2c46868cfa74fcdf2fe18b47801c7626cfd0d2d15d1f1487cb930f37c63dcfcad4e41fb9e3fd0c2e574c85ba1ef66efc775
|
@@ -5,6 +5,8 @@ module UserImpersonate
|
|
5
5
|
before_filter :authenticate_the_user, except: ["destroy"]
|
6
6
|
before_filter :current_user_must_be_staff!, except: ["destroy"]
|
7
7
|
|
8
|
+
|
9
|
+
helper_method :current_staff
|
8
10
|
# Display list of all users, except current (staff) user
|
9
11
|
# Is this exclusion unnecessary complexity?
|
10
12
|
# Normal apps wouldn't bother with this action; rather they would
|
@@ -46,15 +46,15 @@
|
|
46
46
|
You (
|
47
47
|
<span class="admin_name"><%= current_staff_user %></span>
|
48
48
|
) are impersonating
|
49
|
-
<span class="admin_name"><%=
|
50
|
-
( User id: <%=
|
49
|
+
<span class="admin_name"><%= current_staff %></span>
|
50
|
+
( User id: <%= current_staff.to_param %> )
|
51
51
|
</div>
|
52
52
|
|
53
53
|
<div class="impersonate-buttons">
|
54
|
-
<%= form_tag impersonate_engine.revert_impersonate_user_url,
|
54
|
+
<%= form_tag impersonate_engine.revert_impersonate_user_url,
|
55
55
|
:method => :delete, :class => 'revert-form' do %>
|
56
56
|
<button type = "submit"> Revert to admin</button>
|
57
57
|
<% end %>
|
58
58
|
</div>
|
59
59
|
</div>
|
60
|
-
</div>
|
60
|
+
</div>
|
@@ -46,15 +46,15 @@
|
|
46
46
|
You (
|
47
47
|
<span class="admin_name"><%= current_staff_user %></span>
|
48
48
|
) are impersonating
|
49
|
-
<span class="admin_name"><%=
|
50
|
-
( User id: <%=
|
49
|
+
<span class="admin_name"><%= current_staff %></span>
|
50
|
+
( User id: <%= current_staff.to_param %> )
|
51
51
|
</div>
|
52
52
|
|
53
53
|
<div class="impersonate-buttons">
|
54
|
-
<%= form_tag impersonate_engine.revert_impersonate_user_url,
|
54
|
+
<%= form_tag impersonate_engine.revert_impersonate_user_url,
|
55
55
|
:method => :delete, :class => 'revert-form' do %>
|
56
56
|
<button type = "submit"> Revert to admin</button>
|
57
57
|
<% end %>
|
58
58
|
</div>
|
59
59
|
</div>
|
60
|
-
</div>
|
60
|
+
</div>
|
Binary file
|
@@ -1,228 +1,23 @@
|
|
1
|
-
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
2
|
-
---------------------------------------------------------
|
3
|
-
UserImpersonate::DeviseHelpersTest: test_user_class_other
|
4
|
-
---------------------------------------------------------
|
5
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
6
1
|
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
7
|
-
--------------------------------------------------------
|
8
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_nil
|
9
|
-
--------------------------------------------------------
|
10
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
11
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12
|
-
------------------------------------------------------------------
|
13
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_not_specified
|
14
|
-
------------------------------------------------------------------
|
15
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
16
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17
|
-
----------------------------------------------------------
|
18
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_other
|
19
|
-
----------------------------------------------------------
|
20
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
21
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
22
|
-
-------------------------------------------------------------------------------------------------
|
23
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_to_use_a_different_model_than_User
|
24
|
-
-------------------------------------------------------------------------------------------------
|
25
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
26
|
-
Redirected to
|
27
|
-
Redirected to http://test.host/
|
28
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
29
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
|
30
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
31
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32
|
-
--------------------------------------------------------------------------------------
|
33
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_uses_default_model_User
|
34
|
-
--------------------------------------------------------------------------------------
|
35
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
36
|
-
Redirected to
|
37
|
-
Redirected to http://test.host/
|
38
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
39
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
40
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
41
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
42
|
-
-------------------------------------------------------------------------------------
|
43
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
44
|
-
-------------------------------------------------------------------------------------
|
45
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
46
|
-
Completed 401 Unauthorized in 26ms
|
47
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
48
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
49
|
-
------------------------------------------------------------------------------------------
|
50
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
51
|
-
------------------------------------------------------------------------------------------
|
52
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
53
|
-
Redirected to http://test.host/
|
54
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
55
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
56
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57
|
-
------------------------------------------------------------------------------------
|
58
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
59
|
-
------------------------------------------------------------------------------------
|
60
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
61
|
-
Completed 401 Unauthorized in 3ms
|
62
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
63
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64
|
-
------------------------------------------------------------------
|
65
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_class_other
|
66
|
-
------------------------------------------------------------------
|
67
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
68
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
69
|
-
-----------------------------------------------------------------
|
70
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_nil
|
71
|
-
-----------------------------------------------------------------
|
72
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
73
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
74
|
-
---------------------------------------------------------------------------
|
75
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_not_specified
|
76
|
-
---------------------------------------------------------------------------
|
77
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
78
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
79
|
-
-------------------------------------------------------------------
|
80
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_other
|
81
|
-
-------------------------------------------------------------------
|
82
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
83
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
84
|
-
-------------------------------
|
85
|
-
UserImpersonateTest: test_truth
|
86
|
-
-------------------------------
|
87
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
88
|
-
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
89
2
|
---------------------------------------------------------
|
90
3
|
UserImpersonate::DeviseHelpersTest: test_user_class_other
|
91
4
|
---------------------------------------------------------
|
92
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
93
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
94
|
-
--------------------------------------------------------
|
95
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_nil
|
96
|
-
--------------------------------------------------------
|
97
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
98
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
99
|
-
------------------------------------------------------------------
|
100
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_not_specified
|
101
|
-
------------------------------------------------------------------
|
102
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
103
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
104
|
-
----------------------------------------------------------
|
105
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_other
|
106
|
-
----------------------------------------------------------
|
107
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
108
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
109
|
-
-------------------------------------------------------------------------------------------------
|
110
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_to_use_a_different_model_than_User
|
111
|
-
-------------------------------------------------------------------------------------------------
|
112
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
113
|
-
Redirected to
|
114
|
-
Redirected to http://test.host/
|
115
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
116
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
|
117
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
118
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
119
|
-
--------------------------------------------------------------------------------------
|
120
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_uses_default_model_User
|
121
|
-
--------------------------------------------------------------------------------------
|
122
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
123
|
-
Redirected to
|
124
|
-
Redirected to http://test.host/
|
125
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
126
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
127
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
128
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
129
|
-
-------------------------------------------------------------------------------------
|
130
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
131
|
-
-------------------------------------------------------------------------------------
|
132
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
133
|
-
Completed 401 Unauthorized in 14ms
|
134
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
135
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
136
|
-
------------------------------------------------------------------------------------------
|
137
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
138
|
-
------------------------------------------------------------------------------------------
|
139
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
140
|
-
Redirected to http://test.host/
|
141
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
142
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
143
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
144
|
-
------------------------------------------------------------------------------------
|
145
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
146
|
-
------------------------------------------------------------------------------------
|
147
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
148
|
-
Completed 401 Unauthorized in 1ms
|
149
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
150
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
151
|
-
------------------------------------------------------------------
|
152
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_class_other
|
153
|
-
------------------------------------------------------------------
|
154
5
|
[1m[35m (0.1ms)[0m rollback transaction
|
155
6
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
156
|
-
-----------------------------------------------------------------
|
157
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_nil
|
158
|
-
-----------------------------------------------------------------
|
159
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
160
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
161
|
-
---------------------------------------------------------------------------
|
162
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_not_specified
|
163
|
-
---------------------------------------------------------------------------
|
164
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
165
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
166
|
-
-------------------------------------------------------------------
|
167
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_other
|
168
|
-
-------------------------------------------------------------------
|
169
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
170
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
171
|
-
-------------------------------
|
172
|
-
UserImpersonateTest: test_truth
|
173
|
-
-------------------------------
|
174
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
175
|
-
[1m[36m (357.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f') [0m
|
176
|
-
[1m[35m (433.3ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
177
|
-
[1m[36m (404.5ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
178
|
-
[1m[35m (598.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
179
|
-
[1m[36m (356.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
180
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
181
|
-
[1m[36m (655.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
182
|
-
[1m[35m (4483.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
183
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
184
|
-
[1m[36m (1.2ms)[0m [1mbegin transaction[0m
|
185
|
-
---------------------------------------------------------
|
186
|
-
UserImpersonate::DeviseHelpersTest: test_user_class_other
|
187
|
-
---------------------------------------------------------
|
188
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
189
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
190
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
191
|
-
[1m[35mSQL (23.8ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 05:43:53 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$OQcDkl7FblDNkJWdRX2xiedgcMxkCCJGWR.EsdAeLPD0sjB71EjDy"], ["updated_at", Wed, 29 Jul 2015 05:43:53 UTC +00:00]]
|
192
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
193
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
194
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
195
7
|
--------------------------------------------------------
|
196
8
|
UserImpersonate::DeviseHelpersTest: test_user_finder_nil
|
197
9
|
--------------------------------------------------------
|
198
|
-
[1m[35m (0.
|
199
|
-
[1m[
|
200
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
201
|
-
[1m[35mSQL (4.0ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 05:43:53 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$H5lNAQN.x0Ig4HCNoPGqS.d0ZWzrCN6US16ropp/A1FKgBezWW73C"], ["updated_at", Wed, 29 Jul 2015 05:43:53 UTC +00:00]]
|
202
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
203
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
204
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
205
|
-
[1m[35m (0.1ms)[0m begin transaction
|
10
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
206
12
|
------------------------------------------------------------------
|
207
13
|
UserImpersonate::DeviseHelpersTest: test_user_finder_not_specified
|
208
14
|
------------------------------------------------------------------
|
209
|
-
[1m[
|
210
|
-
[1m[
|
211
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
212
|
-
[1m[36mSQL (8.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 29 Jul 2015 05:43:53 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$EKYcJg2aojTd7UfukyKq1uDC7uVNWo.GQ67.xEGKG8pmAM/OedHwa"], ["updated_at", Wed, 29 Jul 2015 05:43:53 UTC +00:00]]
|
213
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
214
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
215
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
216
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
217
17
|
----------------------------------------------------------
|
218
18
|
UserImpersonate::DeviseHelpersTest: test_user_finder_other
|
219
19
|
----------------------------------------------------------
|
220
|
-
[1m[35m (0.
|
221
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
222
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
223
|
-
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 05:43:53 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$PYs2rfVhmJVHpxWA3eSK1.D3RlvrL6KT/Njw603JB.j/U23jZoCgq"], ["updated_at", Wed, 29 Jul 2015 05:43:53 UTC +00:00]]
|
224
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
225
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
20
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
226
21
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
227
22
|
-------------------------------------------------------------------------------------------------
|
228
23
|
UserImpersonate::ImpersonateControllerTest: test_configuration_to_use_a_different_model_than_User
|
@@ -231,276 +26,9 @@ Processing by UserImpersonate::ImpersonateController#index as HTML
|
|
231
26
|
Redirected to
|
232
27
|
Redirected to http://test.host/
|
233
28
|
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
234
|
-
Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
|
235
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
236
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237
|
-
--------------------------------------------------------------------------------------
|
238
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_uses_default_model_User
|
239
|
-
--------------------------------------------------------------------------------------
|
240
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
241
|
-
Redirected to
|
242
|
-
Redirected to http://test.host/
|
243
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
244
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
|
245
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
246
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
247
|
-
-------------------------------------------------------------------------------------
|
248
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
249
|
-
-------------------------------------------------------------------------------------
|
250
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
251
|
-
Completed 401 Unauthorized in 14ms
|
252
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
253
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
254
|
-
------------------------------------------------------------------------------------------
|
255
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
256
|
-
------------------------------------------------------------------------------------------
|
257
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
258
|
-
Redirected to http://test.host/
|
259
29
|
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
260
|
-
[1m[35m (0.
|
261
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
262
|
-
------------------------------------------------------------------------------------
|
263
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
264
|
-
------------------------------------------------------------------------------------
|
265
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
266
|
-
Completed 401 Unauthorized in 1ms
|
267
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
268
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
269
|
-
------------------------------------------------------------------
|
270
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_class_other
|
271
|
-
------------------------------------------------------------------
|
272
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
273
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
274
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
275
|
-
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 05:43:54 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$i638UdmeKWdpVRkfN8frT.Ah08ZHfgVEt2fdene/ByRh0PSfl59dS"], ["updated_at", Wed, 29 Jul 2015 05:43:54 UTC +00:00]]
|
276
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
277
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
278
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
279
|
-
-----------------------------------------------------------------
|
280
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_nil
|
281
|
-
-----------------------------------------------------------------
|
282
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
283
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
284
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
285
|
-
[1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 05:43:54 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$LU5egrgxS8w5OoYxG3mwu.fgN6l1BdMrIUBjQoVc5aa6USh.UYoEO"], ["updated_at", Wed, 29 Jul 2015 05:43:54 UTC +00:00]]
|
286
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
287
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
288
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
289
|
-
[1m[35m (0.2ms)[0m begin transaction
|
290
|
-
---------------------------------------------------------------------------
|
291
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_not_specified
|
292
|
-
---------------------------------------------------------------------------
|
293
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
294
|
-
[1m[35mUser Exists (0.4ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1
|
295
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
296
|
-
[1m[36mSQL (5.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 29 Jul 2015 05:43:54 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$inWCTdafRqRfbLChEWq0yerjWXBn1Y/4U1JTnxsmtiigjM7qoZw9y"], ["updated_at", Wed, 29 Jul 2015 05:43:54 UTC +00:00]]
|
297
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
299
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
300
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
301
|
-
-------------------------------------------------------------------
|
302
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_other
|
303
|
-
-------------------------------------------------------------------
|
304
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
305
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
306
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
307
|
-
[1m[35mSQL (5.2ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 05:43:54 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$J6GMCcEqzCmJ0i7mVdcxleJ5OVZlVsHIW1IUKYJKtx9S5TstwdxM2"], ["updated_at", Wed, 29 Jul 2015 05:43:54 UTC +00:00]]
|
308
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
309
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
310
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
311
|
-
-------------------------------
|
312
|
-
UserImpersonateTest: test_truth
|
313
|
-
-------------------------------
|
314
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
315
|
-
[1m[36m (894.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f') [0m
|
316
|
-
[1m[35m (705.9ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
317
|
-
[1m[36m (833.2ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
318
|
-
[1m[35m (645.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
319
|
-
[1m[36m (743.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
320
|
-
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
321
|
-
[1m[36m (844.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
322
|
-
[1m[35m (369.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
323
|
-
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
324
|
-
[1m[35m (0.1ms)[0m commit transaction
|
325
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
326
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
327
|
-
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "users"[0m
|
328
|
-
[1m[35mFixture Insert (0.6ms)[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', '2015-07-29 05:44:22', '2015-07-29 05:44:22')
|
329
|
-
[1m[36mFixture Insert (0.2ms)[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', '2015-07-29 05:44:22', '2015-07-29 05:44:22')[0m
|
330
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
331
|
-
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
332
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2015-07-28 22:44:22 -0700
|
333
|
-
Processing by Devise::SessionsController#new as HTML
|
334
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (2.8ms)
|
335
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (1063.0ms)
|
336
|
-
Completed 200 OK in 2443ms (Views: 2317.4ms | ActiveRecord: 0.0ms)
|
337
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2015-07-28 22:44:25 -0700
|
338
|
-
Processing by Devise::SessionsController#create as HTML
|
339
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
340
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
341
|
-
[1m[36mSQL (2.8ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 2[0m [["last_sign_in_at", Wed, 29 Jul 2015 05:44:25 UTC +00:00], ["current_sign_in_at", Wed, 29 Jul 2015 05:44:25 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 29 Jul 2015 05:44:25 UTC +00:00]]
|
342
|
-
Redirected to http://www.example.com/
|
343
|
-
Completed 302 Found in 497ms (ActiveRecord: 3.2ms)
|
344
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:44:25 -0700
|
345
|
-
Processing by HomeController#index as HTML
|
346
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
347
|
-
Rendered home/index.html.erb within layouts/application (8.6ms)
|
348
|
-
Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.4ms)
|
349
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:44:25 -0700
|
350
|
-
Processing by HomeController#index as HTML
|
351
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
352
|
-
Rendered home/index.html.erb within layouts/application (2.5ms)
|
353
|
-
Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.3ms)
|
354
|
-
Started GET "/impersonate" for 127.0.0.1 at 2015-07-28 22:44:25 -0700
|
355
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
356
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
357
|
-
Redirected to
|
358
|
-
Redirected to http://www.example.com/
|
359
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
360
|
-
Completed 302 Found in 15ms (ActiveRecord: 0.4ms)
|
361
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:44:25 -0700
|
362
|
-
Processing by HomeController#index as HTML
|
363
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
364
|
-
Rendered home/index.html.erb within layouts/application (12.6ms)
|
365
|
-
Completed 200 OK in 17ms (Views: 14.1ms | ActiveRecord: 0.3ms)
|
366
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
367
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
368
|
-
[1m[35m (0.1ms)[0m commit transaction
|
369
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
370
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
371
|
-
[1m[36mFixture Delete (5.2ms)[0m [1mDELETE FROM "users"[0m
|
372
|
-
[1m[35mFixture Insert (0.5ms)[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', '2015-07-29 05:44:25', '2015-07-29 05:44:25')
|
373
|
-
[1m[36mFixture Insert (0.3ms)[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', '2015-07-29 05:44:25', '2015-07-29 05:44:25')[0m
|
374
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
375
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
376
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2015-07-28 22:44:25 -0700
|
377
|
-
Processing by Devise::SessionsController#new as HTML
|
378
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.8ms)
|
379
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (7.7ms)
|
380
|
-
Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.0ms)
|
381
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2015-07-28 22:44:25 -0700
|
382
|
-
Processing by Devise::SessionsController#create as HTML
|
383
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
384
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
385
|
-
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["last_sign_in_at", Wed, 29 Jul 2015 05:44:26 UTC +00:00], ["current_sign_in_at", Wed, 29 Jul 2015 05:44:26 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 29 Jul 2015 05:44:26 UTC +00:00]]
|
386
|
-
Redirected to http://www.example.com/
|
387
|
-
Completed 302 Found in 163ms (ActiveRecord: 1.1ms)
|
388
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:44:26 -0700
|
389
|
-
Processing by HomeController#index as HTML
|
390
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
391
|
-
Rendered home/index.html.erb within layouts/application (3.7ms)
|
392
|
-
Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.3ms)
|
393
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:44:26 -0700
|
394
|
-
Processing by HomeController#index as HTML
|
395
|
-
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
396
|
-
Rendered home/index.html.erb within layouts/application (4.4ms)
|
397
|
-
Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.6ms)
|
398
|
-
Started GET "/impersonate" for 127.0.0.1 at 2015-07-28 22:44:26 -0700
|
399
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
400
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
401
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
402
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
403
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (9.5ms)
|
404
|
-
Completed 200 OK in 60ms (Views: 54.9ms | ActiveRecord: 1.0ms)
|
405
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2015-07-28 22:44:26 -0700
|
406
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
407
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
408
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
409
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
410
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
411
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (4.1ms)
|
412
|
-
Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.9ms)
|
413
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2015-07-28 22:44:26 -0700
|
414
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
415
|
-
Parameters: {"user_id"=>"2"}
|
416
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
417
|
-
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
418
|
-
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 2 [["last_sign_in_at", Wed, 29 Jul 2015 05:44:26 UTC +00:00], ["current_sign_in_at", Wed, 29 Jul 2015 05:44:26 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 29 Jul 2015 05:44:26 UTC +00:00]]
|
419
|
-
Redirected to http://www.example.com/
|
420
|
-
Completed 302 Found in 10ms (ActiveRecord: 1.3ms)
|
421
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:44:26 -0700
|
422
|
-
Processing by HomeController#index as HTML
|
423
|
-
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
424
|
-
Rendered home/index.html.erb within layouts/application (2.8ms)
|
425
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
426
|
-
Rendered user_impersonate/_header.html.erb (3.2ms)
|
427
|
-
Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.5ms)
|
428
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2015-07-28 22:44:26 -0700
|
429
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
430
|
-
Parameters: {"utf8"=>"✓"}
|
431
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
432
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
433
|
-
[1m[36mSQL (0.5ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 29 Jul 2015 05:44:26 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 29 Jul 2015 05:44:26 UTC +00:00]]
|
434
|
-
Redirected to http://www.example.com/
|
435
|
-
Completed 302 Found in 48ms (ActiveRecord: 1.0ms)
|
436
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:44:26 -0700
|
437
|
-
Processing by HomeController#index as HTML
|
438
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
439
|
-
Rendered home/index.html.erb within layouts/application (3.6ms)
|
440
|
-
Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.4ms)
|
441
|
-
[1m[36m (83.3ms)[0m [1mrollback transaction[0m
|
442
|
-
[1m[36m (705.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f') [0m
|
443
|
-
[1m[35m (545.1ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
444
|
-
[1m[36m (357.3ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
445
|
-
[1m[35m (888.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
446
|
-
[1m[36m (510.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
447
|
-
[1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
|
448
|
-
[1m[36m (1156.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
449
|
-
[1m[35m (768.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
450
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
451
|
-
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
452
|
-
---------------------------------------------------------
|
453
|
-
UserImpersonate::DeviseHelpersTest: test_user_class_other
|
454
|
-
---------------------------------------------------------
|
455
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
456
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
457
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
458
|
-
[1m[35mSQL (6.2ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 05:46:51 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$YMmLTSztXc5lq3KUJao06uLmB5s6TTCaY5oQGyeECnqSPiOT2c2vK"], ["updated_at", Wed, 29 Jul 2015 05:46:51 UTC +00:00]]
|
459
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
460
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
461
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
462
|
-
--------------------------------------------------------
|
463
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_nil
|
464
|
-
--------------------------------------------------------
|
465
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
466
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
467
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
468
|
-
[1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 05:46:51 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$.XSLaY6wQA5UHYcmqL5IxeIZRIwKtnbUkIB87pbbQFR8t1bZG0MWm"], ["updated_at", Wed, 29 Jul 2015 05:46:51 UTC +00:00]]
|
469
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
470
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
471
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
472
|
-
[1m[35m (0.1ms)[0m begin transaction
|
473
|
-
------------------------------------------------------------------
|
474
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_not_specified
|
475
|
-
------------------------------------------------------------------
|
476
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
477
|
-
[1m[35mUser Exists (0.3ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1
|
478
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
479
|
-
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 29 Jul 2015 05:46:52 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$2AfQITILPfr4GUfYsAG2oOGA/8t4.10Ap59solMRtQ49/fvqVuIN6"], ["updated_at", Wed, 29 Jul 2015 05:46:52 UTC +00:00]]
|
480
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
481
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
482
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
483
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
484
|
-
----------------------------------------------------------
|
485
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_other
|
486
|
-
----------------------------------------------------------
|
487
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
488
|
-
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
489
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
490
|
-
[1m[35mSQL (1.3ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 05:46:52 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$gfcNwjh57Lxb34odSUTV5.9UptGETAsY3H3EoCtTHtg5FA2WHNHtW"], ["updated_at", Wed, 29 Jul 2015 05:46:52 UTC +00:00]]
|
491
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
492
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
30
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
493
31
|
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
494
|
-
-------------------------------------------------------------------------------------------------
|
495
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_to_use_a_different_model_than_User
|
496
|
-
-------------------------------------------------------------------------------------------------
|
497
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
498
|
-
Redirected to
|
499
|
-
Redirected to http://test.host/
|
500
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
501
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
|
502
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
503
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
504
32
|
--------------------------------------------------------------------------------------
|
505
33
|
UserImpersonate::ImpersonateControllerTest: test_configuration_uses_default_model_User
|
506
34
|
--------------------------------------------------------------------------------------
|
@@ -508,478 +36,57 @@ Processing by UserImpersonate::ImpersonateController#index as HTML
|
|
508
36
|
Redirected to
|
509
37
|
Redirected to http://test.host/
|
510
38
|
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
511
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
512
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
513
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
514
|
-
-------------------------------------------------------------------------------------
|
515
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
516
|
-
-------------------------------------------------------------------------------------
|
517
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
518
|
-
Completed 401 Unauthorized in 12ms
|
519
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
520
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
521
|
-
------------------------------------------------------------------------------------------
|
522
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
523
|
-
------------------------------------------------------------------------------------------
|
524
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
525
|
-
Redirected to http://test.host/
|
526
39
|
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
527
40
|
[1m[35m (0.1ms)[0m rollback transaction
|
528
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
529
|
-
------------------------------------------------------------------------------------
|
530
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
531
|
-
------------------------------------------------------------------------------------
|
532
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
533
|
-
Completed 401 Unauthorized in 1ms
|
534
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
535
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
536
|
-
------------------------------------------------------------------
|
537
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_class_other
|
538
|
-
------------------------------------------------------------------
|
539
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
540
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
541
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
542
|
-
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 05:46:52 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$oqqcFBtckgshauhJTJU9JesdcseL8WjxsrZtF1GTK4TinFS968LTO"], ["updated_at", Wed, 29 Jul 2015 05:46:52 UTC +00:00]]
|
543
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
544
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
545
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
546
|
-
-----------------------------------------------------------------
|
547
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_nil
|
548
|
-
-----------------------------------------------------------------
|
549
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
550
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
551
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
552
|
-
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 05:46:52 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$pjbCo91AURscuGcQLRLIxOcgfc4Hj0pg6WM4xwBn.o8lSvBOynhUe"], ["updated_at", Wed, 29 Jul 2015 05:46:52 UTC +00:00]]
|
553
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
554
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
555
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
556
|
-
[1m[35m (0.1ms)[0m begin transaction
|
557
|
-
---------------------------------------------------------------------------
|
558
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_not_specified
|
559
|
-
---------------------------------------------------------------------------
|
560
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
561
|
-
[1m[35mUser Exists (0.3ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1
|
562
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
563
|
-
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 29 Jul 2015 05:46:52 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$iaebCdZ7qfa6nxTfP1a.1OC0Oi0EJgB.sqDY7.J59VZfI3IFkkDHy"], ["updated_at", Wed, 29 Jul 2015 05:46:52 UTC +00:00]]
|
564
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
565
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
566
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
567
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
568
|
-
-------------------------------------------------------------------
|
569
|
-
UserImpersonate::ImpersonateControllerTest: test_staff_finder_other
|
570
|
-
-------------------------------------------------------------------
|
571
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
572
|
-
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
573
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
574
|
-
[1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 05:46:52 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$GA3ufouMfUtXcvpgOcZ7oOy/POjjaCoJw/rVPUW8egR8hjOShMLk6"], ["updated_at", Wed, 29 Jul 2015 05:46:52 UTC +00:00]]
|
575
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
576
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
577
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
578
|
-
--------------------------------------------------------------------------------------------
|
579
|
-
UserImpersonate::ImpersonateControllerTest: test_user_table_should_return_correct_table_name
|
580
|
-
--------------------------------------------------------------------------------------------
|
581
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
582
41
|
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
583
|
-
-------------------------------
|
584
|
-
UserImpersonateTest: test_truth
|
585
|
-
-------------------------------
|
586
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
587
|
-
[1m[36m (634.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f') [0m
|
588
|
-
[1m[35m (777.6ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
589
|
-
[1m[36m (556.7ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
590
|
-
[1m[35m (922.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
591
|
-
[1m[36m (625.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
592
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
593
|
-
[1m[36m (889.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
594
|
-
[1m[35m (690.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
595
|
-
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
596
|
-
[1m[35m (0.1ms)[0m commit transaction
|
597
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
598
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
599
|
-
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "users"[0m
|
600
|
-
[1m[35mFixture Insert (0.4ms)[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', '2015-07-29 05:47:04', '2015-07-29 05:47:04')
|
601
|
-
[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', '2015-07-29 05:47:04', '2015-07-29 05:47:04')[0m
|
602
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
603
|
-
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
604
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2015-07-28 22:47:04 -0700
|
605
|
-
Processing by Devise::SessionsController#new as HTML
|
606
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (2.5ms)
|
607
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (115.8ms)
|
608
|
-
Completed 200 OK in 461ms (Views: 438.2ms | ActiveRecord: 0.0ms)
|
609
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2015-07-28 22:47:04 -0700
|
610
|
-
Processing by Devise::SessionsController#create as HTML
|
611
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
612
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
613
|
-
[1m[36mSQL (2.6ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 2[0m [["last_sign_in_at", Wed, 29 Jul 2015 05:47:05 UTC +00:00], ["current_sign_in_at", Wed, 29 Jul 2015 05:47:05 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 29 Jul 2015 05:47:05 UTC +00:00]]
|
614
|
-
Redirected to http://www.example.com/
|
615
|
-
Completed 302 Found in 142ms (ActiveRecord: 3.0ms)
|
616
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
617
|
-
Processing by HomeController#index as HTML
|
618
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
619
|
-
Rendered home/index.html.erb within layouts/application (5.0ms)
|
620
|
-
Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.4ms)
|
621
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
622
|
-
Processing by HomeController#index as HTML
|
623
|
-
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
624
|
-
Rendered home/index.html.erb within layouts/application (2.6ms)
|
625
|
-
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.4ms)
|
626
|
-
Started GET "/impersonate" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
627
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
628
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
629
|
-
Redirected to
|
630
|
-
Redirected to http://www.example.com/
|
631
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
632
|
-
Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
|
633
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
634
|
-
Processing by HomeController#index as HTML
|
635
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
636
|
-
Rendered home/index.html.erb within layouts/application (2.5ms)
|
637
|
-
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.3ms)
|
638
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
639
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
640
|
-
[1m[35m (0.1ms)[0m commit transaction
|
641
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
642
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
643
|
-
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "users"[0m
|
644
|
-
[1m[35mFixture Insert (0.3ms)[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', '2015-07-29 05:47:05', '2015-07-29 05:47:05')
|
645
|
-
[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', '2015-07-29 05:47:05', '2015-07-29 05:47:05')[0m
|
646
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
647
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
648
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
649
|
-
Processing by Devise::SessionsController#new as HTML
|
650
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.5ms)
|
651
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (4.4ms)
|
652
|
-
Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms)
|
653
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
654
|
-
Processing by Devise::SessionsController#create as HTML
|
655
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
656
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
657
|
-
[1m[36mSQL (60.2ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["last_sign_in_at", Wed, 29 Jul 2015 05:47:05 UTC +00:00], ["current_sign_in_at", Wed, 29 Jul 2015 05:47:05 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 29 Jul 2015 05:47:05 UTC +00:00]]
|
658
|
-
Redirected to http://www.example.com/
|
659
|
-
Completed 302 Found in 185ms (ActiveRecord: 60.5ms)
|
660
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
661
|
-
Processing by HomeController#index as HTML
|
662
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
663
|
-
Rendered home/index.html.erb within layouts/application (8.9ms)
|
664
|
-
Completed 200 OK in 15ms (Views: 14.8ms | ActiveRecord: 0.3ms)
|
665
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
666
|
-
Processing by HomeController#index as HTML
|
667
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
668
|
-
Rendered home/index.html.erb within layouts/application (6.8ms)
|
669
|
-
Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.3ms)
|
670
|
-
Started GET "/impersonate" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
671
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
672
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
673
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
674
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
675
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (6.8ms)
|
676
|
-
Completed 200 OK in 31ms (Views: 26.1ms | ActiveRecord: 0.8ms)
|
677
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
678
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
679
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
680
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
681
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
682
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
683
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (3.4ms)
|
684
|
-
Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 0.9ms)
|
685
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
686
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
687
|
-
Parameters: {"user_id"=>"2"}
|
688
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
689
|
-
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
690
|
-
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 2 [["last_sign_in_at", Wed, 29 Jul 2015 05:47:05 UTC +00:00], ["current_sign_in_at", Wed, 29 Jul 2015 05:47:05 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 29 Jul 2015 05:47:05 UTC +00:00]]
|
691
|
-
Redirected to http://www.example.com/
|
692
|
-
Completed 302 Found in 7ms (ActiveRecord: 1.1ms)
|
693
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
694
|
-
Processing by HomeController#index as HTML
|
695
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
696
|
-
Rendered home/index.html.erb within layouts/application (2.3ms)
|
697
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
698
|
-
Rendered user_impersonate/_header.html.erb (2.8ms)
|
699
|
-
Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.4ms)
|
700
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
701
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
702
|
-
Parameters: {"utf8"=>"✓"}
|
703
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
704
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
705
|
-
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 29 Jul 2015 05:47:05 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 29 Jul 2015 05:47:05 UTC +00:00]]
|
706
|
-
Redirected to http://www.example.com/
|
707
|
-
Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
|
708
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 22:47:05 -0700
|
709
|
-
Processing by HomeController#index as HTML
|
710
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
711
|
-
Rendered home/index.html.erb within layouts/application (2.6ms)
|
712
|
-
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.3ms)
|
713
|
-
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
714
|
-
[1m[36m (574.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f') [0m
|
715
|
-
[1m[35m (277.7ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
716
|
-
[1m[36m (433.3ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
717
|
-
[1m[35m (717.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
718
|
-
[1m[36m (561.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
719
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
720
|
-
[1m[36m (683.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
721
|
-
[1m[35m (731.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
722
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
723
|
-
[1m[36m (0.9ms)[0m [1mbegin transaction[0m
|
724
|
-
---------------------------------------------------------
|
725
|
-
UserImpersonate::DeviseHelpersTest: test_user_class_other
|
726
|
-
---------------------------------------------------------
|
727
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
728
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
729
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
730
|
-
[1m[35mSQL (7.2ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$uGfzYL4G7nQsXitdAxyG4.BCJobADZ.FIB5EXg2WupinnkNuiRw1."], ["updated_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00]]
|
731
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
732
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
733
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
734
|
-
--------------------------------------------------------
|
735
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_nil
|
736
|
-
--------------------------------------------------------
|
737
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
738
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
739
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
740
|
-
[1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$b6ZuttLL9KTi8hJhtbay5eIMPlVU/FksA9Gv9d6sWfuSlo9ujYI5O"], ["updated_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00]]
|
741
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
742
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
743
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
744
|
-
[1m[35m (0.1ms)[0m begin transaction
|
745
|
-
------------------------------------------------------------------
|
746
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_not_specified
|
747
|
-
------------------------------------------------------------------
|
748
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
749
|
-
[1m[35mUser Exists (0.3ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1
|
750
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
751
|
-
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$20.8DlEcbm2XGXKB6ZifJOVKoE8Gxa6OWhBnBqPr80kSdlc9rVmcm"], ["updated_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00]]
|
752
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
753
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
754
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
755
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
756
|
-
----------------------------------------------------------
|
757
|
-
UserImpersonate::DeviseHelpersTest: test_user_finder_other
|
758
|
-
----------------------------------------------------------
|
759
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
760
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
761
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
762
|
-
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$N.uJK3FWCc6Hrg7IoOp8KeWsp2Y0OqiA0jMlXg1GwBxsMiCo5jjVy"], ["updated_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00]]
|
763
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
764
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
765
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
766
|
-
-------------------------------------------------------------------------------------------------
|
767
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_to_use_a_different_model_than_User
|
768
|
-
-------------------------------------------------------------------------------------------------
|
769
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
770
|
-
Redirected to
|
771
|
-
Redirected to http://test.host/
|
772
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
773
|
-
Completed 302 Found in 6ms (ActiveRecord: 0.0ms)
|
774
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
775
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
776
|
-
--------------------------------------------------------------------------------------
|
777
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_uses_default_model_User
|
778
|
-
--------------------------------------------------------------------------------------
|
779
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
780
|
-
Redirected to
|
781
|
-
Redirected to http://test.host/
|
782
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
783
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
784
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
785
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
786
42
|
-------------------------------------------------------------------------------------
|
787
43
|
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
788
44
|
-------------------------------------------------------------------------------------
|
789
45
|
Processing by UserImpersonate::ImpersonateController#create as HTML
|
790
|
-
Completed 401 Unauthorized in
|
791
|
-
[1m[35m (0.
|
792
|
-
[1m[36m (0.
|
46
|
+
Completed 401 Unauthorized in 6ms
|
47
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
48
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
793
49
|
------------------------------------------------------------------------------------------
|
794
50
|
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
795
51
|
------------------------------------------------------------------------------------------
|
796
52
|
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
797
53
|
Redirected to http://test.host/
|
798
54
|
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
799
|
-
[1m[35m (0.
|
800
|
-
[1m[36m (0.
|
55
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
56
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
801
57
|
------------------------------------------------------------------------------------
|
802
58
|
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
803
59
|
------------------------------------------------------------------------------------
|
804
60
|
Processing by UserImpersonate::ImpersonateController#index as HTML
|
805
|
-
Completed 401 Unauthorized in
|
61
|
+
Completed 401 Unauthorized in 0ms
|
806
62
|
[1m[35m (0.1ms)[0m rollback transaction
|
807
63
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
808
64
|
------------------------------------------------------------------
|
809
65
|
UserImpersonate::ImpersonateControllerTest: test_staff_class_other
|
810
66
|
------------------------------------------------------------------
|
811
|
-
[1m[35m (0.
|
812
|
-
[1m[36mUser Exists (3.6ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
813
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
814
|
-
[1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$3tGun4Y4RBikjb7mEHh1nOOS8.nYSoB8Zb8kYSpS.z9DuawWIefGu"], ["updated_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00]]
|
815
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
816
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
67
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
817
68
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
818
69
|
-----------------------------------------------------------------
|
819
70
|
UserImpersonate::ImpersonateControllerTest: test_staff_finder_nil
|
820
71
|
-----------------------------------------------------------------
|
821
|
-
[1m[35m (0.
|
822
|
-
[1m[
|
823
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
824
|
-
[1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$NK4udUAE4iF1l.mxONti3uMJB19UZxNo7DwDo5p8KUBhaGhooSeJW"], ["updated_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00]]
|
825
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
826
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
827
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
828
|
-
[1m[35m (0.1ms)[0m begin transaction
|
72
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
73
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
829
74
|
---------------------------------------------------------------------------
|
830
75
|
UserImpersonate::ImpersonateControllerTest: test_staff_finder_not_specified
|
831
76
|
---------------------------------------------------------------------------
|
832
|
-
[1m[
|
833
|
-
[1m[35mUser Exists (0.3ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1
|
834
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
835
|
-
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$Gg/IHmd1KBkQNelOPAGG.eLkvgsOHqZYHXlGFDnHXGor9Exm2NyIq"], ["updated_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00]]
|
836
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
837
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
838
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
77
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
839
78
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
840
79
|
-------------------------------------------------------------------
|
841
80
|
UserImpersonate::ImpersonateControllerTest: test_staff_finder_other
|
842
81
|
-------------------------------------------------------------------
|
843
|
-
[1m[35m (0.
|
844
|
-
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'test@example.com' LIMIT 1[0m
|
845
|
-
Binary data inserted for `string` type on column `encrypted_password`
|
846
|
-
[1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00], ["email", "test@example.com"], ["encrypted_password", "$2a$04$Y/dfu6zDcQyH95DXqogSX.lwEyPbzN9cRQ0ifww9YsRzDpyMNcJFa"], ["updated_at", Wed, 29 Jul 2015 06:05:54 UTC +00:00]]
|
847
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
848
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
82
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
849
83
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
850
84
|
--------------------------------------------------------------------------------------------
|
851
85
|
UserImpersonate::ImpersonateControllerTest: test_user_table_should_return_correct_table_name
|
852
86
|
--------------------------------------------------------------------------------------------
|
853
|
-
[1m[35m (0.
|
87
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
854
88
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
855
89
|
-------------------------------
|
856
90
|
UserImpersonateTest: test_truth
|
857
91
|
-------------------------------
|
858
|
-
[1m[35m (0.
|
859
|
-
[1m[36m (386.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) DEFAULT '' NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "staff" boolean DEFAULT 'f') [0m
|
860
|
-
[1m[35m (311.7ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
861
|
-
[1m[36m (489.0ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
862
|
-
[1m[35m (540.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
863
|
-
[1m[36m (237.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
864
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
865
|
-
[1m[36m (355.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
866
|
-
[1m[35m (312.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
867
|
-
[1m[36m (3.5ms)[0m [1mbegin transaction[0m
|
868
|
-
[1m[35m (0.1ms)[0m commit transaction
|
869
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
870
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
871
|
-
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "users"[0m
|
872
|
-
[1m[35mFixture Insert (0.4ms)[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', '2015-07-29 06:06:06', '2015-07-29 06:06:06')
|
873
|
-
[1m[36mFixture Insert (0.2ms)[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', '2015-07-29 06:06:06', '2015-07-29 06:06:06')[0m
|
874
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
875
|
-
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
876
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2015-07-28 23:06:06 -0700
|
877
|
-
Processing by Devise::SessionsController#new as HTML
|
878
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (3.3ms)
|
879
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (133.4ms)
|
880
|
-
Completed 200 OK in 251ms (Views: 204.6ms | ActiveRecord: 0.0ms)
|
881
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2015-07-28 23:06:06 -0700
|
882
|
-
Processing by Devise::SessionsController#create as HTML
|
883
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
884
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
885
|
-
[1m[36mSQL (2.7ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 2[0m [["last_sign_in_at", Wed, 29 Jul 2015 06:06:06 UTC +00:00], ["current_sign_in_at", Wed, 29 Jul 2015 06:06:06 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 29 Jul 2015 06:06:06 UTC +00:00]]
|
886
|
-
Redirected to http://www.example.com/
|
887
|
-
Completed 302 Found in 161ms (ActiveRecord: 3.1ms)
|
888
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 23:06:06 -0700
|
889
|
-
Processing by HomeController#index as HTML
|
890
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
891
|
-
Rendered home/index.html.erb within layouts/application (6.1ms)
|
892
|
-
Completed 200 OK in 23ms (Views: 22.2ms | ActiveRecord: 0.4ms)
|
893
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
894
|
-
Processing by HomeController#index as HTML
|
895
|
-
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
896
|
-
Rendered home/index.html.erb within layouts/application (3.5ms)
|
897
|
-
Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.4ms)
|
898
|
-
Started GET "/impersonate" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
899
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
900
|
-
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
901
|
-
Redirected to
|
902
|
-
Redirected to http://www.example.com/
|
903
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
904
|
-
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
|
905
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
906
|
-
Processing by HomeController#index as HTML
|
907
|
-
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
908
|
-
Rendered home/index.html.erb within layouts/application (2.8ms)
|
909
|
-
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.4ms)
|
910
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
911
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
912
|
-
[1m[35m (0.1ms)[0m commit transaction
|
913
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
914
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
915
|
-
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "users"[0m
|
916
|
-
[1m[35mFixture Insert (0.4ms)[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', '2015-07-29 06:06:07', '2015-07-29 06:06:07')
|
917
|
-
[1m[36mFixture Insert (0.2ms)[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', '2015-07-29 06:06:07', '2015-07-29 06:06:07')[0m
|
918
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
919
|
-
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
920
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
921
|
-
Processing by Devise::SessionsController#new as HTML
|
922
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.7ms)
|
923
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (6.2ms)
|
924
|
-
Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.0ms)
|
925
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
926
|
-
Processing by Devise::SessionsController#create as HTML
|
927
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
928
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
929
|
-
[1m[36mSQL (0.8ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["last_sign_in_at", Wed, 29 Jul 2015 06:06:07 UTC +00:00], ["current_sign_in_at", Wed, 29 Jul 2015 06:06:07 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 29 Jul 2015 06:06:07 UTC +00:00]]
|
930
|
-
Redirected to http://www.example.com/
|
931
|
-
Completed 302 Found in 147ms (ActiveRecord: 1.2ms)
|
932
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
933
|
-
Processing by HomeController#index as HTML
|
934
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
935
|
-
Rendered home/index.html.erb within layouts/application (3.3ms)
|
936
|
-
Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms)
|
937
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
938
|
-
Processing by HomeController#index as HTML
|
939
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
940
|
-
Rendered home/index.html.erb within layouts/application (4.8ms)
|
941
|
-
Completed 200 OK in 12ms (Views: 11.5ms | ActiveRecord: 0.3ms)
|
942
|
-
Started GET "/impersonate" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
943
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
944
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
945
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
946
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
947
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (19.6ms)
|
948
|
-
Completed 200 OK in 45ms (Views: 40.6ms | ActiveRecord: 1.1ms)
|
949
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
950
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
951
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
952
|
-
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
953
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
954
|
-
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
955
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (5.0ms)
|
956
|
-
Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 1.3ms)
|
957
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
958
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
959
|
-
Parameters: {"user_id"=>"2"}
|
960
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
961
|
-
[1m[36mUser Load (0.7ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
962
|
-
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 2 [["last_sign_in_at", Wed, 29 Jul 2015 06:06:07 UTC +00:00], ["current_sign_in_at", Wed, 29 Jul 2015 06:06:07 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 29 Jul 2015 06:06:07 UTC +00:00]]
|
963
|
-
Redirected to http://www.example.com/
|
964
|
-
Completed 302 Found in 21ms (ActiveRecord: 1.5ms)
|
965
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
966
|
-
Processing by HomeController#index as HTML
|
967
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
968
|
-
Rendered home/index.html.erb within layouts/application (4.9ms)
|
969
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
970
|
-
Rendered user_impersonate/_header.html.erb (6.1ms)
|
971
|
-
Completed 200 OK in 22ms (Views: 17.1ms | ActiveRecord: 0.5ms)
|
972
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
973
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
974
|
-
Parameters: {"utf8"=>"✓"}
|
975
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
976
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
977
|
-
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 29 Jul 2015 06:06:07 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 29 Jul 2015 06:06:07 UTC +00:00]]
|
978
|
-
Redirected to http://www.example.com/
|
979
|
-
Completed 302 Found in 23ms (ActiveRecord: 1.3ms)
|
980
|
-
Started GET "/" for 127.0.0.1 at 2015-07-28 23:06:07 -0700
|
981
|
-
Processing by HomeController#index as HTML
|
982
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
983
|
-
Rendered home/index.html.erb within layouts/application (3.1ms)
|
984
|
-
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.4ms)
|
985
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
92
|
+
[1m[35m (0.0ms)[0m rollback transaction
|