user_impersonate2 0.9.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +77 -19
- data/app/controllers/user_impersonate/impersonate_controller.rb +15 -8
- data/app/helpers/user_impersonate/application_helper.rb +4 -4
- data/lib/generators/user_impersonate/templates/config/initializers/user_impersonate.rb +38 -9
- data/lib/user_impersonate/devise_helpers.rb +2 -2
- data/lib/user_impersonate/version.rb +1 -1
- data/test/dummy-rails3/config/initializers/user_impersonate.rb +38 -11
- data/test/dummy-rails3/log/development.log +170 -0
- data/test/dummy-rails3/log/test.log +2090 -0
- data/test/dummy-rails4/config/initializers/user_impersonate.rb +38 -11
- data/test/dummy-rails4/log/development.log +18 -0
- data/test/dummy-rails4/log/test.log +1588 -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/79203f7770f5d8956dee4606e93f3d65 +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/8473d4c341d1accbf02a0c2d8270c68e +0 -0
- data/test/dummy-rails4/tmp/cache/assets/test/sprockets/a51c3d05425a76a50181d8144764ac8f +0 -0
- data/test/functional/impersonate_controller_test.rb +46 -0
- data/test/test_helper.rb +1 -0
- metadata +10 -6
- data/test/dummy-rails3/config/initializers/inflections.rb +0 -15
- data/test/dummy-rails4/config/initializers/inflections.rb +0 -15
@@ -463,3 +463,1591 @@ Processing by HomeController#index as HTML
|
|
463
463
|
Rendered home/index.html.erb within layouts/application (1.5ms)
|
464
464
|
Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.2ms)
|
465
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
|