user_impersonate2 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/user_impersonate/application_helper.rb +8 -2
- data/lib/user_impersonate/devise_helpers.rb +8 -2
- data/lib/user_impersonate/version.rb +1 -1
- data/test/functional/impersonate_controller_test.rb +50 -0
- data/test/unit/helpers/user_impersonate/devise_helpers_test.rb +60 -0
- metadata +213 -267
- checksums.yaml +0 -7
- data/test/dummy-rails3/db/development.sqlite3 +0 -0
- data/test/dummy-rails3/db/test.sqlite3 +0 -0
- data/test/dummy-rails3/log/development.log +0 -432
- data/test/dummy-rails3/log/test.log +0 -3181
- data/test/dummy-rails4/db/development.sqlite3 +0 -0
- data/test/dummy-rails4/db/test.sqlite3 +0 -0
- data/test/dummy-rails4/log/development.log +0 -45
- data/test/dummy-rails4/log/test.log +0 -2053
- 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/291faed72d20664326ce265eb8e1ed2f +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/35f33ae400a6b0b5bf527436a68133b5 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/3b83d2c20dfdb631259eb9d056ea4419 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/40fc2f3d2a468a00e463f1d313cb1683 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/5f1c168e97e274509aa4673eab0d86f6 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/681d1010f98d5ed273e67645c7cb454d +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/7411b44628aea038332f13f5ed73e073 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/79203f7770f5d8956dee4606e93f3d65 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/7f14251885cab31b58c878119cbdc199 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8473d4c341d1accbf02a0c2d8270c68e +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/a51c3d05425a76a50181d8144764ac8f +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/b6f020b01a84691088a0c459a18f9c7e +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/b878faf942403e313a5b103e5d80488e +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/bdaaf186999b6b59a3063d23b589d307 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/d0cde4ef34755468270bb49c4a3689f1 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/edbef6e0d0a4742346cf479f2c522eb0 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/f1aac9109f5dae028b3c56eb07311208 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/fd6c8e27b44aa2db77bf0a8b5118bdf8 +0 -0
Binary file
|
Binary file
|
@@ -1,45 +0,0 @@
|
|
1
|
-
[1m[36m (30.7ms)[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
|
2
|
-
[1m[35m (19.6ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
3
|
-
[1m[36m (16.2ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
4
|
-
[1m[35m (19.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
5
|
-
[1m[36m (16.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
7
|
-
[1m[36m (16.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
8
|
-
[1m[35m (16.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
9
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10
|
-
[1m[36m (25.9ms)[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
|
11
|
-
[1m[35m (14.9ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
12
|
-
[1m[36m (20.7ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
13
|
-
[1m[35m (15.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
14
|
-
[1m[36m (15.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
15
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
16
|
-
[1m[36m (15.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
17
|
-
[1m[35m (26.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
18
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19
|
-
[1m[36m (21.9ms)[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
|
20
|
-
[1m[35m (34.1ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
21
|
-
[1m[36m (33.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
22
|
-
[1m[35m (31.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
23
|
-
[1m[36m (29.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
24
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
25
|
-
[1m[36m (20.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
26
|
-
[1m[35m (25.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
27
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28
|
-
[1m[36m (40.3ms)[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
|
29
|
-
[1m[35m (40.7ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
30
|
-
[1m[36m (21.7ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
31
|
-
[1m[35m (22.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
32
|
-
[1m[36m (37.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
33
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
34
|
-
[1m[36m (36.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
35
|
-
[1m[35m (25.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
36
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
37
|
-
[1m[36m (18.6ms)[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
|
38
|
-
[1m[35m (33.8ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
39
|
-
[1m[36m (32.6ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
40
|
-
[1m[35m (20.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
41
|
-
[1m[36m (16.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
42
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
43
|
-
[1m[36m (15.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
44
|
-
[1m[35m (15.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
45
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
@@ -1,2053 +0,0 @@
|
|
1
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2
|
-
-------------------------------------------------------------------------------------
|
3
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
4
|
-
-------------------------------------------------------------------------------------
|
5
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
6
|
-
Completed 401 Unauthorized in 10ms
|
7
|
-
Rendered text template (0.0ms)
|
8
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
9
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10
|
-
------------------------------------------------------------------------------------------
|
11
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
12
|
-
------------------------------------------------------------------------------------------
|
13
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
14
|
-
Redirected to http://test.host/
|
15
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
16
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
17
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18
|
-
------------------------------------------------------------------------------------
|
19
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
20
|
-
------------------------------------------------------------------------------------
|
21
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
22
|
-
Completed 401 Unauthorized in 0ms
|
23
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
24
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
25
|
-
-------------------------------
|
26
|
-
UserImpersonateTest: test_truth
|
27
|
-
-------------------------------
|
28
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
29
|
-
[1m[36m (27.3ms)[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
|
30
|
-
[1m[35m (15.4ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
31
|
-
[1m[36m (19.5ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
32
|
-
[1m[35m (22.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
33
|
-
[1m[36m (21.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
34
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
35
|
-
[1m[36m (16.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
36
|
-
[1m[35m (22.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
37
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
38
|
-
[1m[35m (0.0ms)[0m commit transaction
|
39
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
40
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
41
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
42
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-18 23:18:57', '2014-03-18 23:18:57')
|
43
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-18 23:18:57', '2014-03-18 23:18:57')[0m
|
44
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
45
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
46
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
47
|
-
Processing by Devise::SessionsController#new as HTML
|
48
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.3ms)
|
49
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (43.1ms)
|
50
|
-
Completed 200 OK in 91ms (Views: 67.9ms | ActiveRecord: 0.0ms)
|
51
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
52
|
-
Processing by Devise::SessionsController#create as HTML
|
53
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
54
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
55
|
-
[1m[36mSQL (0.9ms)[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", Tue, 18 Mar 2014 23:18:57 UTC +00:00], ["current_sign_in_at", Tue, 18 Mar 2014 23:18:57 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", Tue, 18 Mar 2014 23:18:57 UTC +00:00]]
|
56
|
-
Redirected to http://www.example.com/
|
57
|
-
Completed 302 Found in 82ms (ActiveRecord: 1.1ms)
|
58
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
59
|
-
Processing by HomeController#index as HTML
|
60
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
61
|
-
Rendered home/index.html.erb within layouts/application (1.8ms)
|
62
|
-
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
63
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
64
|
-
Processing by HomeController#index as HTML
|
65
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
66
|
-
Rendered home/index.html.erb within layouts/application (1.0ms)
|
67
|
-
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms)
|
68
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
69
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
70
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
71
|
-
Redirected to
|
72
|
-
Redirected to http://www.example.com/
|
73
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
74
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
75
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
76
|
-
Processing by HomeController#index as HTML
|
77
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
78
|
-
Rendered home/index.html.erb within layouts/application (0.8ms)
|
79
|
-
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
80
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
81
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82
|
-
[1m[35m (0.0ms)[0m commit transaction
|
83
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
85
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
86
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-18 23:18:57', '2014-03-18 23:18:57')
|
87
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-18 23:18:57', '2014-03-18 23:18:57')[0m
|
88
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
89
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
90
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
91
|
-
Processing by Devise::SessionsController#new as HTML
|
92
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.3ms)
|
93
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (2.3ms)
|
94
|
-
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
95
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
96
|
-
Processing by Devise::SessionsController#create as HTML
|
97
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
98
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
99
|
-
[1m[36mSQL (0.4ms)[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", Tue, 18 Mar 2014 23:18:57 UTC +00:00], ["current_sign_in_at", Tue, 18 Mar 2014 23:18:57 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", Tue, 18 Mar 2014 23:18:57 UTC +00:00]]
|
100
|
-
Redirected to http://www.example.com/
|
101
|
-
Completed 302 Found in 78ms (ActiveRecord: 0.5ms)
|
102
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
103
|
-
Processing by HomeController#index as HTML
|
104
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
105
|
-
Rendered home/index.html.erb within layouts/application (1.3ms)
|
106
|
-
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
107
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
108
|
-
Processing by HomeController#index as HTML
|
109
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
110
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
111
|
-
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
112
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
113
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
114
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
115
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
116
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
117
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.8ms)
|
118
|
-
Completed 200 OK in 45ms (Views: 43.6ms | ActiveRecord: 0.4ms)
|
119
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
120
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
121
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
122
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
123
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
124
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
125
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.5ms)
|
126
|
-
Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.4ms)
|
127
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
128
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
129
|
-
Parameters: {"user_id"=>"2"}
|
130
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
131
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
132
|
-
[1m[35mSQL (0.2ms)[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", Tue, 18 Mar 2014 23:18:57 UTC +00:00], ["current_sign_in_at", Tue, 18 Mar 2014 23:18:57 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", Tue, 18 Mar 2014 23:18:57 UTC +00:00]]
|
133
|
-
Redirected to http://www.example.com/
|
134
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
135
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
136
|
-
Processing by HomeController#index as HTML
|
137
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
138
|
-
Rendered home/index.html.erb within layouts/application (0.8ms)
|
139
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
140
|
-
Rendered user_impersonate/_header.html.erb (4.2ms)
|
141
|
-
Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.2ms)
|
142
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
143
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
144
|
-
Parameters: {"utf8"=>"✓"}
|
145
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
146
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
147
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Tue, 18 Mar 2014 23:18:57 UTC +00:00], ["sign_in_count", 2], ["updated_at", Tue, 18 Mar 2014 23:18:57 UTC +00:00]]
|
148
|
-
Redirected to http://www.example.com/
|
149
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
150
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:18:57 -0700
|
151
|
-
Processing by HomeController#index as HTML
|
152
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
153
|
-
Rendered home/index.html.erb within layouts/application (1.0ms)
|
154
|
-
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
155
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
156
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
157
|
-
-------------------------------------------------------------------------------------
|
158
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
159
|
-
-------------------------------------------------------------------------------------
|
160
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
161
|
-
Completed 401 Unauthorized in 9ms
|
162
|
-
Rendered text template (0.0ms)
|
163
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
164
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
165
|
-
------------------------------------------------------------------------------------------
|
166
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
167
|
-
------------------------------------------------------------------------------------------
|
168
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
169
|
-
Redirected to http://test.host/
|
170
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
171
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
172
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
173
|
-
------------------------------------------------------------------------------------
|
174
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
175
|
-
------------------------------------------------------------------------------------
|
176
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
177
|
-
Completed 401 Unauthorized in 0ms
|
178
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
179
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
180
|
-
-------------------------------
|
181
|
-
UserImpersonateTest: test_truth
|
182
|
-
-------------------------------
|
183
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
184
|
-
[1m[36m (24.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
|
185
|
-
[1m[35m (21.7ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
186
|
-
[1m[36m (21.2ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
187
|
-
[1m[35m (21.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
188
|
-
[1m[36m (21.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
189
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
190
|
-
[1m[36m (16.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
191
|
-
[1m[35m (30.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
192
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
193
|
-
[1m[35m (0.0ms)[0m commit transaction
|
194
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
195
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
196
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
197
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-18 23:24:52', '2014-03-18 23:24:52')
|
198
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-18 23:24:52', '2014-03-18 23:24:52')[0m
|
199
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
200
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
201
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
202
|
-
Processing by Devise::SessionsController#new as HTML
|
203
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.3ms)
|
204
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (43.1ms)
|
205
|
-
Completed 200 OK in 79ms (Views: 56.5ms | ActiveRecord: 0.0ms)
|
206
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
207
|
-
Processing by Devise::SessionsController#create as HTML
|
208
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
209
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
210
|
-
[1m[36mSQL (0.9ms)[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", Tue, 18 Mar 2014 23:24:52 UTC +00:00], ["current_sign_in_at", Tue, 18 Mar 2014 23:24:52 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", Tue, 18 Mar 2014 23:24:52 UTC +00:00]]
|
211
|
-
Redirected to http://www.example.com/
|
212
|
-
Completed 302 Found in 82ms (ActiveRecord: 1.1ms)
|
213
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
214
|
-
Processing by HomeController#index as HTML
|
215
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
216
|
-
Rendered home/index.html.erb within layouts/application (1.8ms)
|
217
|
-
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
218
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
219
|
-
Processing by HomeController#index as HTML
|
220
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
221
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
222
|
-
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
223
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
224
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
225
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
226
|
-
Redirected to
|
227
|
-
Redirected to http://www.example.com/
|
228
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
229
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
230
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
231
|
-
Processing by HomeController#index as HTML
|
232
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
233
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
234
|
-
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
235
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
236
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237
|
-
[1m[35m (0.0ms)[0m commit transaction
|
238
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
239
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
241
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-18 23:24:52', '2014-03-18 23:24:52')
|
242
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-18 23:24:52', '2014-03-18 23:24:52')[0m
|
243
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
244
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
245
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
246
|
-
Processing by Devise::SessionsController#new as HTML
|
247
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.3ms)
|
248
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (2.2ms)
|
249
|
-
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
250
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
251
|
-
Processing by Devise::SessionsController#create as HTML
|
252
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
253
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
254
|
-
[1m[36mSQL (0.4ms)[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", Tue, 18 Mar 2014 23:24:52 UTC +00:00], ["current_sign_in_at", Tue, 18 Mar 2014 23:24:52 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", Tue, 18 Mar 2014 23:24:52 UTC +00:00]]
|
255
|
-
Redirected to http://www.example.com/
|
256
|
-
Completed 302 Found in 79ms (ActiveRecord: 0.5ms)
|
257
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
258
|
-
Processing by HomeController#index as HTML
|
259
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
260
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
261
|
-
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
262
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
263
|
-
Processing by HomeController#index as HTML
|
264
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
265
|
-
Rendered home/index.html.erb within layouts/application (1.5ms)
|
266
|
-
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
267
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
268
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
269
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
270
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
271
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
272
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (5.8ms)
|
273
|
-
Completed 200 OK in 13ms (Views: 11.6ms | ActiveRecord: 0.4ms)
|
274
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
275
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
276
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
277
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
278
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
279
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
280
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.4ms)
|
281
|
-
Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.4ms)
|
282
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
283
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
284
|
-
Parameters: {"user_id"=>"2"}
|
285
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
286
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
287
|
-
[1m[35mSQL (0.2ms)[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", Tue, 18 Mar 2014 23:24:52 UTC +00:00], ["current_sign_in_at", Tue, 18 Mar 2014 23:24:52 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", Tue, 18 Mar 2014 23:24:52 UTC +00:00]]
|
288
|
-
Redirected to http://www.example.com/
|
289
|
-
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
|
290
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
291
|
-
Processing by HomeController#index as HTML
|
292
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
293
|
-
Rendered home/index.html.erb within layouts/application (1.0ms)
|
294
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
295
|
-
Rendered user_impersonate/_header.html.erb (1.3ms)
|
296
|
-
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)
|
297
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
298
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
299
|
-
Parameters: {"utf8"=>"✓"}
|
300
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
301
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
302
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Tue, 18 Mar 2014 23:24:52 UTC +00:00], ["sign_in_count", 2], ["updated_at", Tue, 18 Mar 2014 23:24:52 UTC +00:00]]
|
303
|
-
Redirected to http://www.example.com/
|
304
|
-
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
|
305
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:24:52 -0700
|
306
|
-
Processing by HomeController#index as HTML
|
307
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
308
|
-
Rendered home/index.html.erb within layouts/application (1.1ms)
|
309
|
-
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
310
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
311
|
-
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
312
|
-
-------------------------------------------------------------------------------------
|
313
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
314
|
-
-------------------------------------------------------------------------------------
|
315
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
316
|
-
Completed 401 Unauthorized in 9ms
|
317
|
-
Rendered text template (0.0ms)
|
318
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
319
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
320
|
-
------------------------------------------------------------------------------------------
|
321
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
322
|
-
------------------------------------------------------------------------------------------
|
323
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
324
|
-
Redirected to http://test.host/
|
325
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
326
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
327
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
328
|
-
------------------------------------------------------------------------------------
|
329
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
330
|
-
------------------------------------------------------------------------------------
|
331
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
332
|
-
Completed 401 Unauthorized in 0ms
|
333
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
334
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
335
|
-
-------------------------------
|
336
|
-
UserImpersonateTest: test_truth
|
337
|
-
-------------------------------
|
338
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
339
|
-
[1m[36m (15.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
|
340
|
-
[1m[35m (19.0ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
341
|
-
[1m[36m (24.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
342
|
-
[1m[35m (24.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
343
|
-
[1m[36m (38.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
344
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
345
|
-
[1m[36m (31.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
346
|
-
[1m[35m (36.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
347
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
348
|
-
[1m[35m (0.0ms)[0m commit transaction
|
349
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
350
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
351
|
-
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
352
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-18 23:53:08', '2014-03-18 23:53:08')
|
353
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-18 23:53:08', '2014-03-18 23:53:08')[0m
|
354
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
355
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
356
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
357
|
-
Processing by Devise::SessionsController#new as HTML
|
358
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.4ms)
|
359
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (47.5ms)
|
360
|
-
Completed 200 OK in 87ms (Views: 62.7ms | ActiveRecord: 0.0ms)
|
361
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
362
|
-
Processing by Devise::SessionsController#create as HTML
|
363
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
364
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
365
|
-
[1m[36mSQL (1.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" = 2[0m [["last_sign_in_at", Tue, 18 Mar 2014 23:53:08 UTC +00:00], ["current_sign_in_at", Tue, 18 Mar 2014 23:53:08 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", Tue, 18 Mar 2014 23:53:08 UTC +00:00]]
|
366
|
-
Redirected to http://www.example.com/
|
367
|
-
Completed 302 Found in 88ms (ActiveRecord: 1.3ms)
|
368
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
369
|
-
Processing by HomeController#index as HTML
|
370
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
371
|
-
Rendered home/index.html.erb within layouts/application (2.0ms)
|
372
|
-
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
|
373
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
374
|
-
Processing by HomeController#index as HTML
|
375
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
376
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
377
|
-
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
378
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
379
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
380
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
381
|
-
Redirected to
|
382
|
-
Redirected to http://www.example.com/
|
383
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
384
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
385
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
386
|
-
Processing by HomeController#index as HTML
|
387
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
388
|
-
Rendered home/index.html.erb within layouts/application (1.0ms)
|
389
|
-
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
390
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
391
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
392
|
-
[1m[35m (0.0ms)[0m commit transaction
|
393
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
394
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
395
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
396
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-18 23:53:08', '2014-03-18 23:53:08')
|
397
|
-
[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', '2014-03-18 23:53:08', '2014-03-18 23:53:08')[0m
|
398
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
399
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
400
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
401
|
-
Processing by Devise::SessionsController#new as HTML
|
402
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.4ms)
|
403
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (2.7ms)
|
404
|
-
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms)
|
405
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
406
|
-
Processing by Devise::SessionsController#create as HTML
|
407
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
408
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
409
|
-
[1m[36mSQL (0.4ms)[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", Tue, 18 Mar 2014 23:53:08 UTC +00:00], ["current_sign_in_at", Tue, 18 Mar 2014 23:53:08 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", Tue, 18 Mar 2014 23:53:08 UTC +00:00]]
|
410
|
-
Redirected to http://www.example.com/
|
411
|
-
Completed 302 Found in 85ms (ActiveRecord: 0.5ms)
|
412
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
413
|
-
Processing by HomeController#index as HTML
|
414
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
415
|
-
Rendered home/index.html.erb within layouts/application (1.8ms)
|
416
|
-
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
417
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
418
|
-
Processing by HomeController#index as HTML
|
419
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
420
|
-
Rendered home/index.html.erb within layouts/application (1.5ms)
|
421
|
-
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
422
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
423
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
424
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
425
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
426
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
427
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (6.9ms)
|
428
|
-
Completed 200 OK in 16ms (Views: 13.9ms | ActiveRecord: 0.5ms)
|
429
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
430
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
431
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
432
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
433
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
434
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
435
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.5ms)
|
436
|
-
Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.5ms)
|
437
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
438
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
439
|
-
Parameters: {"user_id"=>"2"}
|
440
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
441
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
442
|
-
[1m[35mSQL (0.2ms)[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", Tue, 18 Mar 2014 23:53:08 UTC +00:00], ["current_sign_in_at", Tue, 18 Mar 2014 23:53:08 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", Tue, 18 Mar 2014 23:53:08 UTC +00:00]]
|
443
|
-
Redirected to http://www.example.com/
|
444
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
445
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
446
|
-
Processing by HomeController#index as HTML
|
447
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
448
|
-
Rendered home/index.html.erb within layouts/application (1.0ms)
|
449
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
450
|
-
Rendered user_impersonate/_header.html.erb (1.7ms)
|
451
|
-
Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.2ms)
|
452
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
453
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
454
|
-
Parameters: {"utf8"=>"✓"}
|
455
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
456
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
457
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Tue, 18 Mar 2014 23:53:08 UTC +00:00], ["sign_in_count", 2], ["updated_at", Tue, 18 Mar 2014 23:53:08 UTC +00:00]]
|
458
|
-
Redirected to http://www.example.com/
|
459
|
-
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
|
460
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 16:53:08 -0700
|
461
|
-
Processing by HomeController#index as HTML
|
462
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
463
|
-
Rendered home/index.html.erb within layouts/application (1.5ms)
|
464
|
-
Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.2ms)
|
465
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
466
|
-
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
467
|
-
-------------------------------------------------------------------------------------
|
468
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
469
|
-
-------------------------------------------------------------------------------------
|
470
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
471
|
-
Completed 401 Unauthorized in 10ms
|
472
|
-
Rendered text template (0.0ms)
|
473
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
474
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
475
|
-
------------------------------------------------------------------------------------------
|
476
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
477
|
-
------------------------------------------------------------------------------------------
|
478
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
479
|
-
Redirected to http://test.host/
|
480
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
481
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
482
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
483
|
-
------------------------------------------------------------------------------------
|
484
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
485
|
-
------------------------------------------------------------------------------------
|
486
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
487
|
-
Completed 401 Unauthorized in 0ms
|
488
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
489
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
490
|
-
-------------------------------
|
491
|
-
UserImpersonateTest: test_truth
|
492
|
-
-------------------------------
|
493
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
494
|
-
[1m[36m (21.9ms)[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
|
495
|
-
[1m[35m (15.7ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
496
|
-
[1m[36m (19.6ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
497
|
-
[1m[35m (22.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
498
|
-
[1m[36m (37.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
499
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
500
|
-
[1m[36m (33.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
501
|
-
[1m[35m (33.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
502
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
503
|
-
[1m[35m (0.1ms)[0m commit transaction
|
504
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
505
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
506
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
507
|
-
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:34', '2014-03-19 01:34:34')
|
508
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:34', '2014-03-19 01:34:34')[0m
|
509
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
510
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
511
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
512
|
-
Processing by Devise::SessionsController#new as HTML
|
513
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.2ms)
|
514
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (21.1ms)
|
515
|
-
Completed 200 OK in 87ms (Views: 63.7ms | ActiveRecord: 0.0ms)
|
516
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
517
|
-
Processing by Devise::SessionsController#create as HTML
|
518
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
519
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
520
|
-
[1m[36mSQL (1.1ms)[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, 19 Mar 2014 01:34:34 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:34:34 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, 19 Mar 2014 01:34:34 UTC +00:00]]
|
521
|
-
Redirected to http://www.example.com/
|
522
|
-
Completed 302 Found in 90ms (ActiveRecord: 1.3ms)
|
523
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
524
|
-
Processing by HomeController#index as HTML
|
525
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
526
|
-
Rendered home/index.html.erb within layouts/application (3.0ms)
|
527
|
-
Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.3ms)
|
528
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
529
|
-
Processing by HomeController#index as HTML
|
530
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
531
|
-
Rendered home/index.html.erb within layouts/application (1.3ms)
|
532
|
-
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
533
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
534
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
535
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
536
|
-
Redirected to
|
537
|
-
Redirected to http://www.example.com/
|
538
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
539
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
540
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
541
|
-
Processing by HomeController#index as HTML
|
542
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
543
|
-
Rendered home/index.html.erb within layouts/application (1.7ms)
|
544
|
-
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)
|
545
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
546
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
547
|
-
[1m[35m (0.0ms)[0m commit transaction
|
548
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
549
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
550
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
551
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:34', '2014-03-19 01:34:34')
|
552
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:34:34', '2014-03-19 01:34:34')[0m
|
553
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
554
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
555
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
556
|
-
Processing by Devise::SessionsController#new as HTML
|
557
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.5ms)
|
558
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (4.1ms)
|
559
|
-
Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.0ms)
|
560
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
561
|
-
Processing by Devise::SessionsController#create as HTML
|
562
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
563
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
564
|
-
[1m[36mSQL (0.5ms)[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, 19 Mar 2014 01:34:34 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:34:34 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, 19 Mar 2014 01:34:34 UTC +00:00]]
|
565
|
-
Redirected to http://www.example.com/
|
566
|
-
Completed 302 Found in 85ms (ActiveRecord: 0.7ms)
|
567
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
568
|
-
Processing by HomeController#index as HTML
|
569
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
570
|
-
Rendered home/index.html.erb within layouts/application (1.5ms)
|
571
|
-
Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.1ms)
|
572
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
573
|
-
Processing by HomeController#index as HTML
|
574
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
575
|
-
Rendered home/index.html.erb within layouts/application (1.5ms)
|
576
|
-
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
577
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
578
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
579
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
580
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
581
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
582
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (5.8ms)
|
583
|
-
Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.4ms)
|
584
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
585
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
586
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
587
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
588
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
589
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
590
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.4ms)
|
591
|
-
Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.4ms)
|
592
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
593
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
594
|
-
Parameters: {"user_id"=>"2"}
|
595
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
596
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
597
|
-
[1m[35mSQL (0.3ms)[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, 19 Mar 2014 01:34:34 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:34:34 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, 19 Mar 2014 01:34:34 UTC +00:00]]
|
598
|
-
Redirected to http://www.example.com/
|
599
|
-
Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
|
600
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
601
|
-
Processing by HomeController#index as HTML
|
602
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
603
|
-
Rendered home/index.html.erb within layouts/application (1.0ms)
|
604
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
605
|
-
Rendered user_impersonate/_header.html.erb (1.6ms)
|
606
|
-
Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.2ms)
|
607
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
608
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
609
|
-
Parameters: {"utf8"=>"✓"}
|
610
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
611
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
612
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 19 Mar 2014 01:34:34 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 19 Mar 2014 01:34:34 UTC +00:00]]
|
613
|
-
Redirected to http://www.example.com/
|
614
|
-
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
|
615
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:34:34 -0700
|
616
|
-
Processing by HomeController#index as HTML
|
617
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
618
|
-
Rendered home/index.html.erb within layouts/application (1.2ms)
|
619
|
-
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
620
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
621
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
622
|
-
-------------------------------------------------------------------------------------
|
623
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
624
|
-
-------------------------------------------------------------------------------------
|
625
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
626
|
-
Completed 401 Unauthorized in 8ms
|
627
|
-
Rendered text template (0.0ms)
|
628
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
629
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
630
|
-
------------------------------------------------------------------------------------------
|
631
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
632
|
-
------------------------------------------------------------------------------------------
|
633
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
634
|
-
Redirected to http://test.host/
|
635
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
636
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
637
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
638
|
-
------------------------------------------------------------------------------------
|
639
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
640
|
-
------------------------------------------------------------------------------------
|
641
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
642
|
-
Completed 401 Unauthorized in 0ms
|
643
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
644
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
645
|
-
-------------------------------
|
646
|
-
UserImpersonateTest: test_truth
|
647
|
-
-------------------------------
|
648
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
649
|
-
[1m[36m (26.7ms)[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
|
650
|
-
[1m[35m (29.1ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
651
|
-
[1m[36m (24.3ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
652
|
-
[1m[35m (29.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
653
|
-
[1m[36m (35.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
654
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
655
|
-
[1m[36m (32.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
656
|
-
[1m[35m (32.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
657
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
658
|
-
[1m[35m (0.0ms)[0m commit transaction
|
659
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
660
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
661
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
662
|
-
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:37:04', '2014-03-19 01:37:04')
|
663
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:37:04', '2014-03-19 01:37:04')[0m
|
664
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
665
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
666
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
667
|
-
Processing by Devise::SessionsController#new as HTML
|
668
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.1ms)
|
669
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (15.3ms)
|
670
|
-
Completed 200 OK in 77ms (Views: 55.2ms | ActiveRecord: 0.0ms)
|
671
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
672
|
-
Processing by Devise::SessionsController#create as HTML
|
673
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
674
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
675
|
-
[1m[36mSQL (0.9ms)[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, 19 Mar 2014 01:37:04 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:37:04 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, 19 Mar 2014 01:37:04 UTC +00:00]]
|
676
|
-
Redirected to http://www.example.com/
|
677
|
-
Completed 302 Found in 82ms (ActiveRecord: 1.1ms)
|
678
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
679
|
-
Processing by HomeController#index as HTML
|
680
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
681
|
-
Rendered home/index.html.erb within layouts/application (1.7ms)
|
682
|
-
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
|
683
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
684
|
-
Processing by HomeController#index as HTML
|
685
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
686
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
687
|
-
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
688
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
689
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
690
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
691
|
-
Redirected to
|
692
|
-
Redirected to http://www.example.com/
|
693
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
694
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
695
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
696
|
-
Processing by HomeController#index as HTML
|
697
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
698
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
699
|
-
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
700
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
701
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
702
|
-
[1m[35m (0.0ms)[0m commit transaction
|
703
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
704
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
705
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
706
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:37:04', '2014-03-19 01:37:04')
|
707
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:37:04', '2014-03-19 01:37:04')[0m
|
708
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
709
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
710
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
711
|
-
Processing by Devise::SessionsController#new as HTML
|
712
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.3ms)
|
713
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (2.3ms)
|
714
|
-
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
715
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
716
|
-
Processing by Devise::SessionsController#create as HTML
|
717
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
718
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
719
|
-
[1m[36mSQL (0.4ms)[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, 19 Mar 2014 01:37:04 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:37:04 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, 19 Mar 2014 01:37:04 UTC +00:00]]
|
720
|
-
Redirected to http://www.example.com/
|
721
|
-
Completed 302 Found in 78ms (ActiveRecord: 0.5ms)
|
722
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
723
|
-
Processing by HomeController#index as HTML
|
724
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
725
|
-
Rendered home/index.html.erb within layouts/application (1.3ms)
|
726
|
-
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
727
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
728
|
-
Processing by HomeController#index as HTML
|
729
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
730
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
731
|
-
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
732
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
733
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
734
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
735
|
-
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
736
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
737
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (5.7ms)
|
738
|
-
Completed 200 OK in 13ms (Views: 11.6ms | ActiveRecord: 0.4ms)
|
739
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
740
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
741
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
742
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
743
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
744
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
745
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.4ms)
|
746
|
-
Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.4ms)
|
747
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
748
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
749
|
-
Parameters: {"user_id"=>"2"}
|
750
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
751
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
752
|
-
[1m[35mSQL (0.2ms)[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, 19 Mar 2014 01:37:04 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:37:04 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, 19 Mar 2014 01:37:04 UTC +00:00]]
|
753
|
-
Redirected to http://www.example.com/
|
754
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
755
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
756
|
-
Processing by HomeController#index as HTML
|
757
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
758
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
759
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
760
|
-
Rendered user_impersonate/_header.html.erb (2.5ms)
|
761
|
-
Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.2ms)
|
762
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
763
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
764
|
-
Parameters: {"utf8"=>"✓"}
|
765
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
766
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
767
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 19 Mar 2014 01:37:04 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 19 Mar 2014 01:37:04 UTC +00:00]]
|
768
|
-
Redirected to http://www.example.com/
|
769
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
770
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:37:04 -0700
|
771
|
-
Processing by HomeController#index as HTML
|
772
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
773
|
-
Rendered home/index.html.erb within layouts/application (1.1ms)
|
774
|
-
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
775
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
776
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
777
|
-
-------------------------------------------------------------------------------------
|
778
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
779
|
-
-------------------------------------------------------------------------------------
|
780
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
781
|
-
Completed 401 Unauthorized in 8ms
|
782
|
-
Rendered text template (0.0ms)
|
783
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
784
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
785
|
-
------------------------------------------------------------------------------------------
|
786
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
787
|
-
------------------------------------------------------------------------------------------
|
788
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
789
|
-
Redirected to http://test.host/
|
790
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
791
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
792
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
793
|
-
------------------------------------------------------------------------------------
|
794
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
795
|
-
------------------------------------------------------------------------------------
|
796
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
797
|
-
Completed 401 Unauthorized in 0ms
|
798
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
799
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
800
|
-
-------------------------------
|
801
|
-
UserImpersonateTest: test_truth
|
802
|
-
-------------------------------
|
803
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
804
|
-
[1m[36m (16.6ms)[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
|
805
|
-
[1m[35m (14.9ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
806
|
-
[1m[36m (25.7ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
807
|
-
[1m[35m (20.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
808
|
-
[1m[36m (15.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
809
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
810
|
-
[1m[36m (15.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
811
|
-
[1m[35m (31.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
812
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
813
|
-
[1m[35m (0.0ms)[0m commit transaction
|
814
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
815
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
816
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
817
|
-
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:50', '2014-03-19 01:40:50')
|
818
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:50', '2014-03-19 01:40:50')[0m
|
819
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
820
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
821
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
822
|
-
Processing by Devise::SessionsController#new as HTML
|
823
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.1ms)
|
824
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (15.4ms)
|
825
|
-
Completed 200 OK in 77ms (Views: 54.7ms | ActiveRecord: 0.0ms)
|
826
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
827
|
-
Processing by Devise::SessionsController#create as HTML
|
828
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
829
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
830
|
-
[1m[36mSQL (1.0ms)[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, 19 Mar 2014 01:40:50 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:40:50 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, 19 Mar 2014 01:40:50 UTC +00:00]]
|
831
|
-
Redirected to http://www.example.com/
|
832
|
-
Completed 302 Found in 82ms (ActiveRecord: 1.2ms)
|
833
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
834
|
-
Processing by HomeController#index as HTML
|
835
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
836
|
-
Rendered home/index.html.erb within layouts/application (1.8ms)
|
837
|
-
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
838
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
839
|
-
Processing by HomeController#index as HTML
|
840
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
841
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
842
|
-
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms)
|
843
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
844
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
845
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
846
|
-
Redirected to
|
847
|
-
Redirected to http://www.example.com/
|
848
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
849
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
850
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
851
|
-
Processing by HomeController#index as HTML
|
852
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
853
|
-
Rendered home/index.html.erb within layouts/application (0.8ms)
|
854
|
-
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
855
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
856
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
857
|
-
[1m[35m (0.0ms)[0m commit transaction
|
858
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
859
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
860
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
861
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:50', '2014-03-19 01:40:50')
|
862
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:50', '2014-03-19 01:40:50')[0m
|
863
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
864
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
865
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
866
|
-
Processing by Devise::SessionsController#new as HTML
|
867
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.3ms)
|
868
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (2.4ms)
|
869
|
-
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
870
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
871
|
-
Processing by Devise::SessionsController#create as HTML
|
872
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
873
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
874
|
-
[1m[36mSQL (0.4ms)[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, 19 Mar 2014 01:40:50 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:40:50 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, 19 Mar 2014 01:40:50 UTC +00:00]]
|
875
|
-
Redirected to http://www.example.com/
|
876
|
-
Completed 302 Found in 79ms (ActiveRecord: 0.6ms)
|
877
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
878
|
-
Processing by HomeController#index as HTML
|
879
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
880
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
881
|
-
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
882
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
883
|
-
Processing by HomeController#index as HTML
|
884
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
885
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
886
|
-
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
887
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
888
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
889
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
890
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
891
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
892
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (5.7ms)
|
893
|
-
Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.4ms)
|
894
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
895
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
896
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
897
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
898
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
899
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
900
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.5ms)
|
901
|
-
Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.5ms)
|
902
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
903
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
904
|
-
Parameters: {"user_id"=>"2"}
|
905
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
906
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
907
|
-
[1m[35mSQL (0.2ms)[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, 19 Mar 2014 01:40:50 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:40:50 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, 19 Mar 2014 01:40:50 UTC +00:00]]
|
908
|
-
Redirected to http://www.example.com/
|
909
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
910
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
911
|
-
Processing by HomeController#index as HTML
|
912
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
913
|
-
Rendered home/index.html.erb within layouts/application (1.8ms)
|
914
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
915
|
-
Rendered user_impersonate/_header.html.erb (1.4ms)
|
916
|
-
Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.3ms)
|
917
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
918
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
919
|
-
Parameters: {"utf8"=>"✓"}
|
920
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
921
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
922
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 19 Mar 2014 01:40:50 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 19 Mar 2014 01:40:50 UTC +00:00]]
|
923
|
-
Redirected to http://www.example.com/
|
924
|
-
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
|
925
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:50 -0700
|
926
|
-
Processing by HomeController#index as HTML
|
927
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
928
|
-
Rendered home/index.html.erb within layouts/application (1.1ms)
|
929
|
-
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
930
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
931
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
932
|
-
-------------------------------------------------------------------------------------
|
933
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
934
|
-
-------------------------------------------------------------------------------------
|
935
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
936
|
-
Completed 401 Unauthorized in 11ms
|
937
|
-
Rendered text template (0.0ms)
|
938
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
939
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
940
|
-
------------------------------------------------------------------------------------------
|
941
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
942
|
-
------------------------------------------------------------------------------------------
|
943
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
944
|
-
Redirected to http://test.host/
|
945
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
946
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
947
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
948
|
-
------------------------------------------------------------------------------------
|
949
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
950
|
-
------------------------------------------------------------------------------------
|
951
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
952
|
-
Completed 401 Unauthorized in 0ms
|
953
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
954
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
955
|
-
-------------------------------
|
956
|
-
UserImpersonateTest: test_truth
|
957
|
-
-------------------------------
|
958
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
959
|
-
[1m[36m (28.1ms)[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
|
960
|
-
[1m[35m (28.8ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
961
|
-
[1m[36m (25.6ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
962
|
-
[1m[35m (18.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
963
|
-
[1m[36m (29.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
964
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
965
|
-
[1m[36m (36.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
966
|
-
[1m[35m (44.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
967
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
968
|
-
[1m[35m (0.1ms)[0m commit transaction
|
969
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
970
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
971
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
972
|
-
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:59', '2014-03-19 01:40:59')
|
973
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:40:59', '2014-03-19 01:40:59')[0m
|
974
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
975
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
976
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:59 -0700
|
977
|
-
Processing by Devise::SessionsController#new as HTML
|
978
|
-
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.0ms)
|
979
|
-
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (18.9ms)
|
980
|
-
Completed 200 OK in 61ms (Views: 40.5ms | ActiveRecord: 0.0ms)
|
981
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:40:59 -0700
|
982
|
-
Processing by Devise::SessionsController#create as HTML
|
983
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
984
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
985
|
-
[1m[36mSQL (1.1ms)[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, 19 Mar 2014 01:40:59 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:40:59 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, 19 Mar 2014 01:40:59 UTC +00:00]]
|
986
|
-
Redirected to http://www.example.com/
|
987
|
-
Completed 302 Found in 77ms (ActiveRecord: 1.3ms)
|
988
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:59 -0700
|
989
|
-
Processing by HomeController#index as HTML
|
990
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
991
|
-
Rendered home/index.html.erb within layouts/application (1.5ms)
|
992
|
-
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
993
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:59 -0700
|
994
|
-
Processing by HomeController#index as HTML
|
995
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
996
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
997
|
-
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
998
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:40:59 -0700
|
999
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1000
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1001
|
-
Redirected to
|
1002
|
-
Redirected to http://www.example.com/
|
1003
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1004
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
1005
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:40:59 -0700
|
1006
|
-
Processing by HomeController#index as HTML
|
1007
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1008
|
-
Rendered home/index.html.erb within layouts/application (0.7ms)
|
1009
|
-
Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.1ms)
|
1010
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
1011
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1012
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1013
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1014
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1015
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1016
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:41:00', '2014-03-19 01:41:00')
|
1017
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:41:00', '2014-03-19 01:41:00')[0m
|
1018
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1019
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
1020
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:41:00 -0700
|
1021
|
-
Processing by Devise::SessionsController#new as HTML
|
1022
|
-
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.3ms)
|
1023
|
-
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (2.1ms)
|
1024
|
-
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
1025
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:41:00 -0700
|
1026
|
-
Processing by Devise::SessionsController#create as HTML
|
1027
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1028
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1029
|
-
[1m[36mSQL (0.4ms)[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, 19 Mar 2014 01:41:00 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:41:00 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, 19 Mar 2014 01:41:00 UTC +00:00]]
|
1030
|
-
Redirected to http://www.example.com/
|
1031
|
-
Completed 302 Found in 75ms (ActiveRecord: 0.5ms)
|
1032
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:41:00 -0700
|
1033
|
-
Processing by HomeController#index as HTML
|
1034
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1035
|
-
Rendered home/index.html.erb within layouts/application (1.2ms)
|
1036
|
-
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
1037
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:41:00 -0700
|
1038
|
-
Processing by HomeController#index as HTML
|
1039
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1040
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
1041
|
-
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
1042
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:41:00 -0700
|
1043
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1044
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1045
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
1046
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
1047
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.7ms)
|
1048
|
-
Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.4ms)
|
1049
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:41:00 -0700
|
1050
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1051
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
1052
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1053
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
1054
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
1055
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.4ms)
|
1056
|
-
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.4ms)
|
1057
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:41:00 -0700
|
1058
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1059
|
-
Parameters: {"user_id"=>"2"}
|
1060
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1061
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
1062
|
-
[1m[35mSQL (0.2ms)[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, 19 Mar 2014 01:41:00 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:41:00 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, 19 Mar 2014 01:41:00 UTC +00:00]]
|
1063
|
-
Redirected to http://www.example.com/
|
1064
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
1065
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:41:00 -0700
|
1066
|
-
Processing by HomeController#index as HTML
|
1067
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1068
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
1069
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1070
|
-
Rendered user_impersonate/_header.html.erb (1.2ms)
|
1071
|
-
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)
|
1072
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:41:00 -0700
|
1073
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1074
|
-
Parameters: {"utf8"=>"✓"}
|
1075
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1076
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1077
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 19 Mar 2014 01:41:00 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 19 Mar 2014 01:41:00 UTC +00:00]]
|
1078
|
-
Redirected to http://www.example.com/
|
1079
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
1080
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:41:00 -0700
|
1081
|
-
Processing by HomeController#index as HTML
|
1082
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1083
|
-
Rendered home/index.html.erb within layouts/application (1.0ms)
|
1084
|
-
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
1085
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1086
|
-
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
1087
|
-
-------------------------------------------------------------------------------------
|
1088
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
1089
|
-
-------------------------------------------------------------------------------------
|
1090
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1091
|
-
Completed 401 Unauthorized in 10ms
|
1092
|
-
Rendered text template (0.0ms)
|
1093
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1094
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1095
|
-
------------------------------------------------------------------------------------------
|
1096
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
1097
|
-
------------------------------------------------------------------------------------------
|
1098
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1099
|
-
Redirected to http://test.host/
|
1100
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1101
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1102
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1103
|
-
------------------------------------------------------------------------------------
|
1104
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
1105
|
-
------------------------------------------------------------------------------------
|
1106
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1107
|
-
Completed 401 Unauthorized in 0ms
|
1108
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1109
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1110
|
-
-------------------------------
|
1111
|
-
UserImpersonateTest: test_truth
|
1112
|
-
-------------------------------
|
1113
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1114
|
-
[1m[36m (16.6ms)[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
|
1115
|
-
[1m[35m (20.6ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
1116
|
-
[1m[36m (21.7ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
1117
|
-
[1m[35m (41.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
1118
|
-
[1m[36m (33.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1119
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
1120
|
-
[1m[36m (27.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
1121
|
-
[1m[35m (25.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
1122
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1123
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1124
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1125
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1126
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1127
|
-
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:34', '2014-03-19 01:55:34')
|
1128
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:34', '2014-03-19 01:55:34')[0m
|
1129
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1130
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
1131
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1132
|
-
Processing by Devise::SessionsController#new as HTML
|
1133
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.1ms)
|
1134
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (15.5ms)
|
1135
|
-
Completed 200 OK in 79ms (Views: 57.6ms | ActiveRecord: 0.0ms)
|
1136
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1137
|
-
Processing by Devise::SessionsController#create as HTML
|
1138
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1139
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1140
|
-
[1m[36mSQL (0.9ms)[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, 19 Mar 2014 01:55:34 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:55:34 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, 19 Mar 2014 01:55:34 UTC +00:00]]
|
1141
|
-
Redirected to http://www.example.com/
|
1142
|
-
Completed 302 Found in 81ms (ActiveRecord: 1.1ms)
|
1143
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1144
|
-
Processing by HomeController#index as HTML
|
1145
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1146
|
-
Rendered home/index.html.erb within layouts/application (1.8ms)
|
1147
|
-
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)
|
1148
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1149
|
-
Processing by HomeController#index as HTML
|
1150
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1151
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
1152
|
-
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
|
1153
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1154
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1155
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1156
|
-
Redirected to
|
1157
|
-
Redirected to http://www.example.com/
|
1158
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1159
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
1160
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1161
|
-
Processing by HomeController#index as HTML
|
1162
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1163
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
1164
|
-
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
|
1165
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
1166
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1167
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1168
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1169
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1170
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1171
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:34', '2014-03-19 01:55:34')
|
1172
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:34', '2014-03-19 01:55:34')[0m
|
1173
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1174
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
1175
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1176
|
-
Processing by Devise::SessionsController#new as HTML
|
1177
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.3ms)
|
1178
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (2.1ms)
|
1179
|
-
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
1180
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1181
|
-
Processing by Devise::SessionsController#create as HTML
|
1182
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1183
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1184
|
-
[1m[36mSQL (0.4ms)[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, 19 Mar 2014 01:55:34 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:55:34 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, 19 Mar 2014 01:55:34 UTC +00:00]]
|
1185
|
-
Redirected to http://www.example.com/
|
1186
|
-
Completed 302 Found in 80ms (ActiveRecord: 0.5ms)
|
1187
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1188
|
-
Processing by HomeController#index as HTML
|
1189
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1190
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
1191
|
-
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
1192
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1193
|
-
Processing by HomeController#index as HTML
|
1194
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1195
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
1196
|
-
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
1197
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1198
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1199
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1200
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
1201
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
1202
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (5.8ms)
|
1203
|
-
Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 0.4ms)
|
1204
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1205
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1206
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
1207
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1208
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
1209
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
1210
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.4ms)
|
1211
|
-
Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.4ms)
|
1212
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1213
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1214
|
-
Parameters: {"user_id"=>"2"}
|
1215
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1216
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
1217
|
-
[1m[35mSQL (0.2ms)[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, 19 Mar 2014 01:55:34 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:55:34 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, 19 Mar 2014 01:55:34 UTC +00:00]]
|
1218
|
-
Redirected to http://www.example.com/
|
1219
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
1220
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1221
|
-
Processing by HomeController#index as HTML
|
1222
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1223
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
1224
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1225
|
-
Rendered user_impersonate/_header.html.erb (1.3ms)
|
1226
|
-
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
|
1227
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1228
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1229
|
-
Parameters: {"utf8"=>"✓"}
|
1230
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1231
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1232
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 19 Mar 2014 01:55:34 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 19 Mar 2014 01:55:34 UTC +00:00]]
|
1233
|
-
Redirected to http://www.example.com/
|
1234
|
-
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
|
1235
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:34 -0700
|
1236
|
-
Processing by HomeController#index as HTML
|
1237
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1238
|
-
Rendered home/index.html.erb within layouts/application (1.2ms)
|
1239
|
-
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
1240
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1241
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1242
|
-
-------------------------------------------------------------------------------------
|
1243
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
1244
|
-
-------------------------------------------------------------------------------------
|
1245
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1246
|
-
Completed 401 Unauthorized in 9ms
|
1247
|
-
Rendered text template (0.0ms)
|
1248
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1249
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1250
|
-
------------------------------------------------------------------------------------------
|
1251
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
1252
|
-
------------------------------------------------------------------------------------------
|
1253
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1254
|
-
Redirected to http://test.host/
|
1255
|
-
Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
|
1256
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1257
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1258
|
-
------------------------------------------------------------------------------------
|
1259
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
1260
|
-
------------------------------------------------------------------------------------
|
1261
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1262
|
-
Completed 401 Unauthorized in 0ms
|
1263
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
1264
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1265
|
-
-------------------------------
|
1266
|
-
UserImpersonateTest: test_truth
|
1267
|
-
-------------------------------
|
1268
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
1269
|
-
[1m[36m (34.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
|
1270
|
-
[1m[35m (22.4ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
1271
|
-
[1m[36m (27.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
1272
|
-
[1m[35m (25.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
1273
|
-
[1m[36m (22.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1274
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
1275
|
-
[1m[36m (15.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
1276
|
-
[1m[35m (22.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
1277
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1278
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1279
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1280
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1281
|
-
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
1282
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:43', '2014-03-19 01:55:43')
|
1283
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:43', '2014-03-19 01:55:43')[0m
|
1284
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1285
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
1286
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1287
|
-
Processing by Devise::SessionsController#new as HTML
|
1288
|
-
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.0ms)
|
1289
|
-
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (15.9ms)
|
1290
|
-
Completed 200 OK in 52ms (Views: 30.6ms | ActiveRecord: 0.0ms)
|
1291
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1292
|
-
Processing by Devise::SessionsController#create as HTML
|
1293
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1294
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1295
|
-
[1m[36mSQL (1.0ms)[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, 19 Mar 2014 01:55:43 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:55:43 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, 19 Mar 2014 01:55:43 UTC +00:00]]
|
1296
|
-
Redirected to http://www.example.com/
|
1297
|
-
Completed 302 Found in 81ms (ActiveRecord: 1.2ms)
|
1298
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1299
|
-
Processing by HomeController#index as HTML
|
1300
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1301
|
-
Rendered home/index.html.erb within layouts/application (1.5ms)
|
1302
|
-
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
1303
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1304
|
-
Processing by HomeController#index as HTML
|
1305
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1306
|
-
Rendered home/index.html.erb within layouts/application (0.8ms)
|
1307
|
-
Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.1ms)
|
1308
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1309
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1310
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1311
|
-
Redirected to
|
1312
|
-
Redirected to http://www.example.com/
|
1313
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1314
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
1315
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1316
|
-
Processing by HomeController#index as HTML
|
1317
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1318
|
-
Rendered home/index.html.erb within layouts/application (0.8ms)
|
1319
|
-
Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.1ms)
|
1320
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1321
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1322
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1323
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1324
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1325
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1326
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:43', '2014-03-19 01:55:43')
|
1327
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:55:43', '2014-03-19 01:55:43')[0m
|
1328
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1329
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
1330
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1331
|
-
Processing by Devise::SessionsController#new as HTML
|
1332
|
-
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.3ms)
|
1333
|
-
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (2.1ms)
|
1334
|
-
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
1335
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1336
|
-
Processing by Devise::SessionsController#create as HTML
|
1337
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1338
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1339
|
-
[1m[36mSQL (0.4ms)[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, 19 Mar 2014 01:55:43 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:55:43 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, 19 Mar 2014 01:55:43 UTC +00:00]]
|
1340
|
-
Redirected to http://www.example.com/
|
1341
|
-
Completed 302 Found in 78ms (ActiveRecord: 0.6ms)
|
1342
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1343
|
-
Processing by HomeController#index as HTML
|
1344
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1345
|
-
Rendered home/index.html.erb within layouts/application (1.3ms)
|
1346
|
-
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
1347
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1348
|
-
Processing by HomeController#index as HTML
|
1349
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1350
|
-
Rendered home/index.html.erb within layouts/application (1.1ms)
|
1351
|
-
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
|
1352
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1353
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1354
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1355
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
1356
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
1357
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.6ms)
|
1358
|
-
Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.4ms)
|
1359
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1360
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1361
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
1362
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1363
|
-
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
1364
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
1365
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.3ms)
|
1366
|
-
Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)
|
1367
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1368
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1369
|
-
Parameters: {"user_id"=>"2"}
|
1370
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1371
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
1372
|
-
[1m[35mSQL (0.2ms)[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, 19 Mar 2014 01:55:43 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:55:43 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, 19 Mar 2014 01:55:43 UTC +00:00]]
|
1373
|
-
Redirected to http://www.example.com/
|
1374
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
1375
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1376
|
-
Processing by HomeController#index as HTML
|
1377
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1378
|
-
Rendered home/index.html.erb within layouts/application (0.8ms)
|
1379
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1380
|
-
Rendered user_impersonate/_header.html.erb (1.2ms)
|
1381
|
-
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)
|
1382
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1383
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1384
|
-
Parameters: {"utf8"=>"✓"}
|
1385
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1386
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1387
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 19 Mar 2014 01:55:43 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 19 Mar 2014 01:55:43 UTC +00:00]]
|
1388
|
-
Redirected to http://www.example.com/
|
1389
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
1390
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:55:43 -0700
|
1391
|
-
Processing by HomeController#index as HTML
|
1392
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1393
|
-
Rendered home/index.html.erb within layouts/application (1.0ms)
|
1394
|
-
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
1395
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1396
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
1397
|
-
-------------------------------------------------------------------------------------
|
1398
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
1399
|
-
-------------------------------------------------------------------------------------
|
1400
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1401
|
-
Completed 401 Unauthorized in 10ms
|
1402
|
-
Rendered text template (0.0ms)
|
1403
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1404
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1405
|
-
------------------------------------------------------------------------------------------
|
1406
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
1407
|
-
------------------------------------------------------------------------------------------
|
1408
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1409
|
-
Redirected to http://test.host/
|
1410
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1411
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1412
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1413
|
-
------------------------------------------------------------------------------------
|
1414
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
1415
|
-
------------------------------------------------------------------------------------
|
1416
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1417
|
-
Completed 401 Unauthorized in 0ms
|
1418
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1419
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1420
|
-
-------------------------------
|
1421
|
-
UserImpersonateTest: test_truth
|
1422
|
-
-------------------------------
|
1423
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1424
|
-
[1m[36m (32.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
|
1425
|
-
[1m[35m (26.1ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
1426
|
-
[1m[36m (36.0ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
1427
|
-
[1m[35m (35.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
1428
|
-
[1m[36m (18.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1429
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
1430
|
-
[1m[36m (19.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
1431
|
-
[1m[35m (18.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
1432
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1433
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1434
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1435
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1436
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1437
|
-
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:14', '2014-03-19 01:56:14')
|
1438
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:14', '2014-03-19 01:56:14')[0m
|
1439
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1440
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
1441
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:14 -0700
|
1442
|
-
Processing by Devise::SessionsController#new as HTML
|
1443
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.1ms)
|
1444
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (15.5ms)
|
1445
|
-
Completed 200 OK in 80ms (Views: 57.7ms | ActiveRecord: 0.0ms)
|
1446
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1447
|
-
Processing by Devise::SessionsController#create as HTML
|
1448
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1449
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1450
|
-
[1m[36mSQL (0.9ms)[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, 19 Mar 2014 01:56:15 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:56:15 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, 19 Mar 2014 01:56:15 UTC +00:00]]
|
1451
|
-
Redirected to http://www.example.com/
|
1452
|
-
Completed 302 Found in 82ms (ActiveRecord: 1.1ms)
|
1453
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1454
|
-
Processing by HomeController#index as HTML
|
1455
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1456
|
-
Rendered home/index.html.erb within layouts/application (1.8ms)
|
1457
|
-
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
|
1458
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1459
|
-
Processing by HomeController#index as HTML
|
1460
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1461
|
-
Rendered home/index.html.erb within layouts/application (1.0ms)
|
1462
|
-
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
|
1463
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1464
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1465
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1466
|
-
Redirected to
|
1467
|
-
Redirected to http://www.example.com/
|
1468
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1469
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
1470
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1471
|
-
Processing by HomeController#index as HTML
|
1472
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1473
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
1474
|
-
Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
1475
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
1476
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1477
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1478
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1479
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1480
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1481
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:15', '2014-03-19 01:56:15')
|
1482
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:15', '2014-03-19 01:56:15')[0m
|
1483
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1484
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
1485
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1486
|
-
Processing by Devise::SessionsController#new as HTML
|
1487
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.3ms)
|
1488
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (2.3ms)
|
1489
|
-
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
|
1490
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1491
|
-
Processing by Devise::SessionsController#create as HTML
|
1492
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1493
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1494
|
-
[1m[36mSQL (0.4ms)[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, 19 Mar 2014 01:56:15 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:56:15 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, 19 Mar 2014 01:56:15 UTC +00:00]]
|
1495
|
-
Redirected to http://www.example.com/
|
1496
|
-
Completed 302 Found in 78ms (ActiveRecord: 0.5ms)
|
1497
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1498
|
-
Processing by HomeController#index as HTML
|
1499
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1500
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
1501
|
-
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
1502
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1503
|
-
Processing by HomeController#index as HTML
|
1504
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1505
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
1506
|
-
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
1507
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1508
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1509
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1510
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
1511
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
1512
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (5.8ms)
|
1513
|
-
Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.4ms)
|
1514
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1515
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1516
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
1517
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1518
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
1519
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
1520
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.4ms)
|
1521
|
-
Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.4ms)
|
1522
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1523
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1524
|
-
Parameters: {"user_id"=>"2"}
|
1525
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1526
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
1527
|
-
[1m[35mSQL (0.2ms)[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, 19 Mar 2014 01:56:15 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:56:15 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, 19 Mar 2014 01:56:15 UTC +00:00]]
|
1528
|
-
Redirected to http://www.example.com/
|
1529
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
1530
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1531
|
-
Processing by HomeController#index as HTML
|
1532
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1533
|
-
Rendered home/index.html.erb within layouts/application (1.1ms)
|
1534
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1535
|
-
Rendered user_impersonate/_header.html.erb (1.4ms)
|
1536
|
-
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.2ms)
|
1537
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1538
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1539
|
-
Parameters: {"utf8"=>"✓"}
|
1540
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1541
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1542
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 19 Mar 2014 01:56:15 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 19 Mar 2014 01:56:15 UTC +00:00]]
|
1543
|
-
Redirected to http://www.example.com/
|
1544
|
-
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
|
1545
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:15 -0700
|
1546
|
-
Processing by HomeController#index as HTML
|
1547
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1548
|
-
Rendered home/index.html.erb within layouts/application (1.2ms)
|
1549
|
-
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
1550
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1551
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1552
|
-
-------------------------------------------------------------------------------------
|
1553
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
1554
|
-
-------------------------------------------------------------------------------------
|
1555
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1556
|
-
Completed 401 Unauthorized in 10ms
|
1557
|
-
Rendered text template (0.0ms)
|
1558
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1559
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1560
|
-
------------------------------------------------------------------------------------------
|
1561
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
1562
|
-
------------------------------------------------------------------------------------------
|
1563
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1564
|
-
Redirected to http://test.host/
|
1565
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1566
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1567
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1568
|
-
------------------------------------------------------------------------------------
|
1569
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
1570
|
-
------------------------------------------------------------------------------------
|
1571
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1572
|
-
Completed 401 Unauthorized in 0ms
|
1573
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1574
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1575
|
-
-------------------------------
|
1576
|
-
UserImpersonateTest: test_truth
|
1577
|
-
-------------------------------
|
1578
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
1579
|
-
[1m[36m (17.7ms)[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
|
1580
|
-
[1m[35m (40.0ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
1581
|
-
[1m[36m (24.8ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
1582
|
-
[1m[35m (29.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
1583
|
-
[1m[36m (26.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1584
|
-
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
1585
|
-
[1m[36m (17.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
1586
|
-
[1m[35m (17.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
1587
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1588
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1589
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1590
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1591
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1592
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:23', '2014-03-19 01:56:23')
|
1593
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:23', '2014-03-19 01:56:23')[0m
|
1594
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1595
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
1596
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:23 -0700
|
1597
|
-
Processing by Devise::SessionsController#new as HTML
|
1598
|
-
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.1ms)
|
1599
|
-
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (16.2ms)
|
1600
|
-
Completed 200 OK in 53ms (Views: 31.4ms | ActiveRecord: 0.0ms)
|
1601
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1602
|
-
Processing by Devise::SessionsController#create as HTML
|
1603
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1604
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1605
|
-
[1m[36mSQL (0.9ms)[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, 19 Mar 2014 01:56:24 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:56:24 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, 19 Mar 2014 01:56:24 UTC +00:00]]
|
1606
|
-
Redirected to http://www.example.com/
|
1607
|
-
Completed 302 Found in 81ms (ActiveRecord: 1.1ms)
|
1608
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1609
|
-
Processing by HomeController#index as HTML
|
1610
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1611
|
-
Rendered home/index.html.erb within layouts/application (1.5ms)
|
1612
|
-
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)
|
1613
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1614
|
-
Processing by HomeController#index as HTML
|
1615
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1616
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
1617
|
-
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
1618
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1619
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1620
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1621
|
-
Redirected to
|
1622
|
-
Redirected to http://www.example.com/
|
1623
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1624
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
1625
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1626
|
-
Processing by HomeController#index as HTML
|
1627
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1628
|
-
Rendered home/index.html.erb within layouts/application (0.8ms)
|
1629
|
-
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)
|
1630
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1631
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1632
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1633
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1634
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1635
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1636
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:24', '2014-03-19 01:56:24')
|
1637
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-03-19 01:56:24', '2014-03-19 01:56:24')[0m
|
1638
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1639
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
1640
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1641
|
-
Processing by Devise::SessionsController#new as HTML
|
1642
|
-
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.3ms)
|
1643
|
-
Rendered /home/rcook/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (1.9ms)
|
1644
|
-
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
1645
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1646
|
-
Processing by Devise::SessionsController#create as HTML
|
1647
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1648
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1649
|
-
[1m[36mSQL (0.4ms)[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, 19 Mar 2014 01:56:24 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:56:24 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, 19 Mar 2014 01:56:24 UTC +00:00]]
|
1650
|
-
Redirected to http://www.example.com/
|
1651
|
-
Completed 302 Found in 79ms (ActiveRecord: 0.6ms)
|
1652
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1653
|
-
Processing by HomeController#index as HTML
|
1654
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1655
|
-
Rendered home/index.html.erb within layouts/application (1.2ms)
|
1656
|
-
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
1657
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1658
|
-
Processing by HomeController#index as HTML
|
1659
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1660
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
1661
|
-
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
1662
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1663
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1664
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1665
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
1666
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
1667
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.7ms)
|
1668
|
-
Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.4ms)
|
1669
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1670
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1671
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
1672
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1673
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
1674
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
1675
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.4ms)
|
1676
|
-
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.4ms)
|
1677
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1678
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1679
|
-
Parameters: {"user_id"=>"2"}
|
1680
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1681
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
1682
|
-
[1m[35mSQL (0.1ms)[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, 19 Mar 2014 01:56:24 UTC +00:00], ["current_sign_in_at", Wed, 19 Mar 2014 01:56:24 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, 19 Mar 2014 01:56:24 UTC +00:00]]
|
1683
|
-
Redirected to http://www.example.com/
|
1684
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
1685
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1686
|
-
Processing by HomeController#index as HTML
|
1687
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1688
|
-
Rendered home/index.html.erb within layouts/application (1.6ms)
|
1689
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1690
|
-
Rendered user_impersonate/_header.html.erb (2.2ms)
|
1691
|
-
Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.4ms)
|
1692
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1693
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1694
|
-
Parameters: {"utf8"=>"✓"}
|
1695
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1696
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1697
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 19 Mar 2014 01:56:24 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 19 Mar 2014 01:56:24 UTC +00:00]]
|
1698
|
-
Redirected to http://www.example.com/
|
1699
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
1700
|
-
Started GET "/" for 127.0.0.1 at 2014-03-18 18:56:24 -0700
|
1701
|
-
Processing by HomeController#index as HTML
|
1702
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1703
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
1704
|
-
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
1705
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1706
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1707
|
-
-------------------------------------------------------------------------------------------------
|
1708
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_to_use_a_different_model_than_User
|
1709
|
-
-------------------------------------------------------------------------------------------------
|
1710
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1711
|
-
Redirected to
|
1712
|
-
Redirected to http://test.host/
|
1713
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1714
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1715
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1716
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1717
|
-
--------------------------------------------------------------------------------------
|
1718
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_uses_default_model_User
|
1719
|
-
--------------------------------------------------------------------------------------
|
1720
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1721
|
-
Redirected to
|
1722
|
-
Redirected to http://test.host/
|
1723
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1724
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1725
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1726
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1727
|
-
-------------------------------------------------------------------------------------
|
1728
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
1729
|
-
-------------------------------------------------------------------------------------
|
1730
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1731
|
-
Completed 401 Unauthorized in 11ms
|
1732
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1733
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1734
|
-
------------------------------------------------------------------------------------------
|
1735
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
1736
|
-
------------------------------------------------------------------------------------------
|
1737
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1738
|
-
Redirected to http://test.host/
|
1739
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1740
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1741
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1742
|
-
------------------------------------------------------------------------------------
|
1743
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
1744
|
-
------------------------------------------------------------------------------------
|
1745
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1746
|
-
Completed 401 Unauthorized in 0ms
|
1747
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1748
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1749
|
-
-------------------------------
|
1750
|
-
UserImpersonateTest: test_truth
|
1751
|
-
-------------------------------
|
1752
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1753
|
-
[1m[36m (19.3ms)[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
|
1754
|
-
[1m[35m (15.1ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
1755
|
-
[1m[36m (16.5ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
1756
|
-
[1m[35m (20.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
1757
|
-
[1m[36m (15.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1758
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
1759
|
-
[1m[36m (22.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
1760
|
-
[1m[35m (32.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
1761
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1762
|
-
[1m[35m (0.1ms)[0m commit transaction
|
1763
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1764
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1765
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1766
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:02', '2014-04-09 05:45:02')
|
1767
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:02', '2014-04-09 05:45:02')[0m
|
1768
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1769
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
1770
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1771
|
-
Processing by Devise::SessionsController#new as HTML
|
1772
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.3ms)
|
1773
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (54.4ms)
|
1774
|
-
Completed 200 OK in 98ms (Views: 76.5ms | ActiveRecord: 0.0ms)
|
1775
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1776
|
-
Processing by Devise::SessionsController#create as HTML
|
1777
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1778
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1779
|
-
[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, 09 Apr 2014 05:45:02 UTC +00:00], ["current_sign_in_at", Wed, 09 Apr 2014 05:45:02 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, 09 Apr 2014 05:45:02 UTC +00:00]]
|
1780
|
-
Redirected to http://www.example.com/
|
1781
|
-
Completed 302 Found in 79ms (ActiveRecord: 2.7ms)
|
1782
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1783
|
-
Processing by HomeController#index as HTML
|
1784
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1785
|
-
Rendered home/index.html.erb within layouts/application (1.7ms)
|
1786
|
-
Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.1ms)
|
1787
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1788
|
-
Processing by HomeController#index as HTML
|
1789
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1790
|
-
Rendered home/index.html.erb within layouts/application (1.1ms)
|
1791
|
-
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms)
|
1792
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1793
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1794
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1795
|
-
Redirected to
|
1796
|
-
Redirected to http://www.example.com/
|
1797
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1798
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
1799
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1800
|
-
Processing by HomeController#index as HTML
|
1801
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1802
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
1803
|
-
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
1804
|
-
[1m[35m (0.5ms)[0m rollback transaction
|
1805
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1806
|
-
[1m[35m (0.1ms)[0m commit transaction
|
1807
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1808
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1809
|
-
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
1810
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:02', '2014-04-09 05:45:02')
|
1811
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:02', '2014-04-09 05:45:02')[0m
|
1812
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1813
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
1814
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1815
|
-
Processing by Devise::SessionsController#new as HTML
|
1816
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.3ms)
|
1817
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (2.3ms)
|
1818
|
-
Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
1819
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1820
|
-
Processing by Devise::SessionsController#create as HTML
|
1821
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1822
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1823
|
-
[1m[36mSQL (0.4ms)[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, 09 Apr 2014 05:45:02 UTC +00:00], ["current_sign_in_at", Wed, 09 Apr 2014 05:45:02 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, 09 Apr 2014 05:45:02 UTC +00:00]]
|
1824
|
-
Redirected to http://www.example.com/
|
1825
|
-
Completed 302 Found in 76ms (ActiveRecord: 0.6ms)
|
1826
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1827
|
-
Processing by HomeController#index as HTML
|
1828
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1829
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
1830
|
-
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
1831
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1832
|
-
Processing by HomeController#index as HTML
|
1833
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1834
|
-
Rendered home/index.html.erb within layouts/application (1.4ms)
|
1835
|
-
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
1836
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1837
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1838
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1839
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
1840
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
1841
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (3.7ms)
|
1842
|
-
Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.7ms)
|
1843
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1844
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1845
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
1846
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1847
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
1848
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
1849
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (37.5ms)
|
1850
|
-
Completed 200 OK in 41ms (Views: 38.3ms | ActiveRecord: 0.4ms)
|
1851
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1852
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1853
|
-
Parameters: {"user_id"=>"2"}
|
1854
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1855
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
1856
|
-
[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, 09 Apr 2014 05:45:02 UTC +00:00], ["current_sign_in_at", Wed, 09 Apr 2014 05:45:02 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, 09 Apr 2014 05:45:02 UTC +00:00]]
|
1857
|
-
Redirected to http://www.example.com/
|
1858
|
-
Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
|
1859
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1860
|
-
Processing by HomeController#index as HTML
|
1861
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1862
|
-
Rendered home/index.html.erb within layouts/application (1.1ms)
|
1863
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1864
|
-
Rendered user_impersonate/_header.html.erb (1.5ms)
|
1865
|
-
Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.2ms)
|
1866
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1867
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1868
|
-
Parameters: {"utf8"=>"✓"}
|
1869
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1870
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1871
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 09 Apr 2014 05:45:02 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 09 Apr 2014 05:45:02 UTC +00:00]]
|
1872
|
-
Redirected to http://www.example.com/
|
1873
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
1874
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:02 -0700
|
1875
|
-
Processing by HomeController#index as HTML
|
1876
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
1877
|
-
Rendered home/index.html.erb within layouts/application (1.0ms)
|
1878
|
-
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
1879
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1880
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1881
|
-
-------------------------------------------------------------------------------------------------
|
1882
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_to_use_a_different_model_than_User
|
1883
|
-
-------------------------------------------------------------------------------------------------
|
1884
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1885
|
-
Redirected to
|
1886
|
-
Redirected to http://test.host/
|
1887
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1888
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1889
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1890
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1891
|
-
--------------------------------------------------------------------------------------
|
1892
|
-
UserImpersonate::ImpersonateControllerTest: test_configuration_uses_default_model_User
|
1893
|
-
--------------------------------------------------------------------------------------
|
1894
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1895
|
-
Redirected to
|
1896
|
-
Redirected to http://test.host/
|
1897
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1898
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1899
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1900
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1901
|
-
-------------------------------------------------------------------------------------
|
1902
|
-
UserImpersonate::ImpersonateControllerTest: test_create_should_require_authentication
|
1903
|
-
-------------------------------------------------------------------------------------
|
1904
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
1905
|
-
Completed 401 Unauthorized in 10ms
|
1906
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1907
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1908
|
-
------------------------------------------------------------------------------------------
|
1909
|
-
UserImpersonate::ImpersonateControllerTest: test_destroy_should_not_require_authentication
|
1910
|
-
------------------------------------------------------------------------------------------
|
1911
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
1912
|
-
Redirected to http://test.host/
|
1913
|
-
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
1914
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1915
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1916
|
-
------------------------------------------------------------------------------------
|
1917
|
-
UserImpersonate::ImpersonateControllerTest: test_index_should_require_authentication
|
1918
|
-
------------------------------------------------------------------------------------
|
1919
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1920
|
-
Completed 401 Unauthorized in 0ms
|
1921
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1922
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1923
|
-
-------------------------------
|
1924
|
-
UserImpersonateTest: test_truth
|
1925
|
-
-------------------------------
|
1926
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
1927
|
-
[1m[36m (23.5ms)[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
|
1928
|
-
[1m[35m (28.5ms)[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
|
1929
|
-
[1m[36m (25.2ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
1930
|
-
[1m[35m (23.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
1931
|
-
[1m[36m (18.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1932
|
-
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
1933
|
-
[1m[36m (21.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120914184123')[0m
|
1934
|
-
[1m[35m (18.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120914174453')
|
1935
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1936
|
-
[1m[35m (0.1ms)[0m commit transaction
|
1937
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1938
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1939
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1940
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:33', '2014-04-09 05:45:33')
|
1941
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:33', '2014-04-09 05:45:33')[0m
|
1942
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1943
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Normal User' LIMIT 1[0m
|
1944
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:33 -0700
|
1945
|
-
Processing by Devise::SessionsController#new as HTML
|
1946
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (1.2ms)
|
1947
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (43.7ms)
|
1948
|
-
Completed 200 OK in 77ms (Views: 55.5ms | ActiveRecord: 0.0ms)
|
1949
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
1950
|
-
Processing by Devise::SessionsController#create as HTML
|
1951
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"normaluser@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1952
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'normaluser@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1953
|
-
[1m[36mSQL (0.9ms)[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, 09 Apr 2014 05:45:34 UTC +00:00], ["current_sign_in_at", Wed, 09 Apr 2014 05:45:34 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, 09 Apr 2014 05:45:34 UTC +00:00]]
|
1954
|
-
Redirected to http://www.example.com/
|
1955
|
-
Completed 302 Found in 82ms (ActiveRecord: 1.1ms)
|
1956
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
1957
|
-
Processing by HomeController#index as HTML
|
1958
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1959
|
-
Rendered home/index.html.erb within layouts/application (1.8ms)
|
1960
|
-
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
|
1961
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
1962
|
-
Processing by HomeController#index as HTML
|
1963
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1964
|
-
Rendered home/index.html.erb within layouts/application (1.2ms)
|
1965
|
-
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)
|
1966
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
1967
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
1968
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
1969
|
-
Redirected to
|
1970
|
-
Redirected to http://www.example.com/
|
1971
|
-
Filter chain halted as :current_user_must_be_staff! rendered or redirected
|
1972
|
-
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
1973
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
1974
|
-
Processing by HomeController#index as HTML
|
1975
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
1976
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
1977
|
-
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
1978
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
1979
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1980
|
-
[1m[35m (0.0ms)[0m commit transaction
|
1981
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1982
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1983
|
-
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
1984
|
-
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("id", "name", "email", "staff", "encrypted_password", "created_at", "updated_at") VALUES (1, 'Dr Nic Williams', 'drnicwilliams@gmail.com', 't', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:34', '2014-04-09 05:45:34')
|
1985
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("id", "name", "email", "encrypted_password", "created_at", "updated_at") VALUES (2, 'Normal User', 'normaluser@gmail.com', '$2a$10$HV6E2Hgk2z6hqow76r6IL.5gcnqCSqJYuOuOT.nbqdPffBLvwglzK', '2014-04-09 05:45:34', '2014-04-09 05:45:34')[0m
|
1986
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1987
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."name" = 'Dr Nic Williams' LIMIT 1[0m
|
1988
|
-
Started GET "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
1989
|
-
Processing by Devise::SessionsController#new as HTML
|
1990
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/shared/_links.erb (0.3ms)
|
1991
|
-
Rendered /home/rcook/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views/devise/sessions/new.html.erb within layouts/application (3.2ms)
|
1992
|
-
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
1993
|
-
Started POST "/users/sign_in" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
1994
|
-
Processing by Devise::SessionsController#create as HTML
|
1995
|
-
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"drnicwilliams@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
|
1996
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'drnicwilliams@gmail.com' ORDER BY "users"."id" ASC LIMIT 1
|
1997
|
-
[1m[36mSQL (0.4ms)[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, 09 Apr 2014 05:45:34 UTC +00:00], ["current_sign_in_at", Wed, 09 Apr 2014 05:45:34 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, 09 Apr 2014 05:45:34 UTC +00:00]]
|
1998
|
-
Redirected to http://www.example.com/
|
1999
|
-
Completed 302 Found in 81ms (ActiveRecord: 0.5ms)
|
2000
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
2001
|
-
Processing by HomeController#index as HTML
|
2002
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
2003
|
-
Rendered home/index.html.erb within layouts/application (1.5ms)
|
2004
|
-
Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.1ms)
|
2005
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
2006
|
-
Processing by HomeController#index as HTML
|
2007
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
2008
|
-
Rendered home/index.html.erb within layouts/application (1.5ms)
|
2009
|
-
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.3ms)
|
2010
|
-
Started GET "/impersonate" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
2011
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2012
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
2013
|
-
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1))[0m
|
2014
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) ORDER BY updated_at DESC
|
2015
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (2.9ms)
|
2016
|
-
Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.4ms)
|
2017
|
-
Started GET "/impersonate/?utf8=%E2%9C%93&search=Normal+User" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
2018
|
-
Processing by UserImpersonate::ImpersonateController#index as HTML
|
2019
|
-
Parameters: {"utf8"=>"✓", "search"=>"Normal User"}
|
2020
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
2021
|
-
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%')
|
2022
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE ("users"."id" NOT IN (1)) AND (name like '%Normal User%') ORDER BY updated_at DESC[0m
|
2023
|
-
Rendered /home/rcook/src/user_impersonate2/app/views/user_impersonate/impersonate/index.html.erb within layouts/user_impersonate/application (1.6ms)
|
2024
|
-
Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.4ms)
|
2025
|
-
Started GET "/impersonate/user/2" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
2026
|
-
Processing by UserImpersonate::ImpersonateController#create as HTML
|
2027
|
-
Parameters: {"user_id"=>"2"}
|
2028
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
2029
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "2"]]
|
2030
|
-
[1m[35mSQL (0.3ms)[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, 09 Apr 2014 05:45:34 UTC +00:00], ["current_sign_in_at", Wed, 09 Apr 2014 05:45:34 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, 09 Apr 2014 05:45:34 UTC +00:00]]
|
2031
|
-
Redirected to http://www.example.com/
|
2032
|
-
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
|
2033
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
2034
|
-
Processing by HomeController#index as HTML
|
2035
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1[0m
|
2036
|
-
Rendered home/index.html.erb within layouts/application (0.9ms)
|
2037
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2038
|
-
Rendered user_impersonate/_header.html.erb (1.4ms)
|
2039
|
-
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)
|
2040
|
-
Started DELETE "/impersonate/revert" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
2041
|
-
Processing by UserImpersonate::ImpersonateController#destroy as HTML
|
2042
|
-
Parameters: {"utf8"=>"✓"}
|
2043
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2044
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 2 ORDER BY "users"."id" ASC LIMIT 1
|
2045
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["current_sign_in_at", Wed, 09 Apr 2014 05:45:34 UTC +00:00], ["sign_in_count", 2], ["updated_at", Wed, 09 Apr 2014 05:45:34 UTC +00:00]]
|
2046
|
-
Redirected to http://www.example.com/
|
2047
|
-
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
2048
|
-
Started GET "/" for 127.0.0.1 at 2014-04-08 22:45:34 -0700
|
2049
|
-
Processing by HomeController#index as HTML
|
2050
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
|
2051
|
-
Rendered home/index.html.erb within layouts/application (1.0ms)
|
2052
|
-
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
2053
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|