contour 2.1.0.beta17 → 2.1.0.rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/assets/stylesheets/contour.css +0 -2
- data/app/controllers/contour/authentications_controller.rb +5 -4
- data/app/views/contour/authentications/_add_remove_table.html.erb +31 -0
- data/app/views/contour/authentications/_authentications.html.erb +3 -0
- data/app/views/contour/authentications/destroy.js.erb +1 -0
- data/app/views/contour/authentications/index.html.erb +1 -22
- data/lib/contour/engine.rb +1 -1
- data/lib/contour/version.rb +1 -1
- data/test/controllers/authentications_controller_test.rb +2 -3
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +3591 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0b793dc498fe65856d1b31a805f114dc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1c3ad26f378b8f1fc2c20392ce4a540d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/291c470bea09e91a82ed77cb455b45fc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/3e2f53860ebad5d43a5b7b1d2f7c93db +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/408c90980fca5a250881bafa3ef0ca63 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6666059cb20313a69e518d351e00eb1f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8f6410f2a80e0115a1b8bf6cf7cbf317 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a7b222735fc6d94f5713fa8e4c00feec +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- metadata +9 -5
- data/app/assets/stylesheets/contour/authentication.css +0 -63
- data/app/assets/stylesheets/contour/errors.css +0 -38
- data/app/views/contour/authentications/_index.html.erb +0 -14
data/test/dummy/log/test.log
CHANGED
@@ -81341,6 +81341,3597 @@ UserTest: test_should_apply_omniauth
|
|
81341
81341
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81342
81342
|
--------------------------------------
|
81343
81343
|
UserTest: test_should_get_reverse_name
|
81344
|
+
--------------------------------------
|
81345
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
81346
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81347
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
81348
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
81349
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-09-03 15:56:17', '2013-09-03 15:56:17', 949717663, 201799169)[0m
|
81350
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-09-03 15:56:17', '2013-09-03 15:56:17', 876923740, 201799169)
|
81351
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-09-03 15:56:17', '2013-09-03 15:56:17', 864673665, 201799169)[0m
|
81352
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
81353
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 15:56:17', '2013-09-03 15:56:17', 201799169)[0m
|
81354
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 15:56:17', '2013-09-03 15:56:17', 999914115)
|
81355
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 15:56:17', '2013-09-03 15:56:17', 725306934)[0m
|
81356
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 15:56:17', '2013-09-03 15:56:17', 349534908)
|
81357
|
+
[1m[36m (6.3ms)[0m [1mcommit transaction[0m
|
81358
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81359
|
+
-------------------------------------------------
|
81360
|
+
AuthenticationTest: test_should_get_provider_name
|
81361
|
+
-------------------------------------------------
|
81362
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
81363
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
81364
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81365
|
+
--------------------------------------------------------------------------------
|
81366
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
81367
|
+
--------------------------------------------------------------------------------
|
81368
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
81369
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81370
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81371
|
+
-------------------------------------------------------------------------
|
81372
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
81373
|
+
-------------------------------------------------------------------------
|
81374
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81375
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
81376
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
81377
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
81378
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-09-03 15:56:17 UTC", "updated_at"=>"2013-09-03 15:56:17 UTC"}}
|
81379
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
81380
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
81381
|
+
Logged in user found, creating associated authentication.
|
81382
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81383
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 15:56:17 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 03 Sep 2013 15:56:17 UTC +00:00], ["user_id", 201799169]]
|
81384
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
81385
|
+
Redirected to http://test.host/authentications
|
81386
|
+
Completed 302 Found in 60ms (ActiveRecord: 0.9ms)
|
81387
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
81388
|
+
[1m[35m (29.0ms)[0m rollback transaction
|
81389
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
81390
|
+
--------------------------------------------------------------------------
|
81391
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
81392
|
+
--------------------------------------------------------------------------
|
81393
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
81394
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
81395
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
81396
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
81397
|
+
Parameters: {"id"=>"949717663"}
|
81398
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
81399
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
81400
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
81401
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
81402
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81403
|
+
Redirected to http://test.host/authentications
|
81404
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
|
81405
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
81406
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
81407
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81408
|
+
-------------------------------------------------------------
|
81409
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
81410
|
+
-------------------------------------------------------------
|
81411
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81412
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
81413
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
81414
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
81415
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
81416
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
81417
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_current_authentications.html.erb (15.1ms)
|
81418
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (9.8ms)
|
81419
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.2ms)
|
81420
|
+
Completed 200 OK in 227ms (Views: 226.4ms | ActiveRecord: 0.4ms)
|
81421
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
81422
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
81423
|
+
-----------------------------------------------------------------------------
|
81424
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
81425
|
+
-----------------------------------------------------------------------------
|
81426
|
+
Processing by Contour::PasswordsController#create as HTML
|
81427
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
81428
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
81429
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'yiDoorndwiyRySpfydYA' LIMIT 1[0m
|
81430
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
81431
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "yiDoorndwiyRySpfydYA"], ["reset_password_sent_at", Tue, 03 Sep 2013 15:56:17 UTC +00:00], ["updated_at", Tue, 03 Sep 2013 15:56:17 UTC +00:00]]
|
81432
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
81433
|
+
|
81434
|
+
Sent mail to valid@example.com (13.7ms)
|
81435
|
+
Date: Tue, 03 Sep 2013 11:56:18 -0400
|
81436
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
81437
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
81438
|
+
To: valid@example.com
|
81439
|
+
Message-ID: <522606a281da_129843fd2860606d8309cc@edge.partners.org.mail>
|
81440
|
+
Subject: Reset password instructions
|
81441
|
+
Mime-Version: 1.0
|
81442
|
+
Content-Type: text/html;
|
81443
|
+
charset=UTF-8
|
81444
|
+
Content-Transfer-Encoding: 7bit
|
81445
|
+
|
81446
|
+
<p>Hello valid@example.com!</p>
|
81447
|
+
|
81448
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
81449
|
+
|
81450
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=yiDoorndwiyRySpfydYA">Change my password</a></p>
|
81451
|
+
|
81452
|
+
<p>If you didn't request this, please ignore this email.</p>
|
81453
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
81454
|
+
|
81455
|
+
Redirected to http://test.host/users/login
|
81456
|
+
Completed 302 Found in 117ms (ActiveRecord: 0.9ms)
|
81457
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
81458
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81459
|
+
-----------------------------------------------------------------------------
|
81460
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
81461
|
+
-----------------------------------------------------------------------------
|
81462
|
+
Processing by Contour::PasswordsController#new as HTML
|
81463
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
|
81464
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (6.4ms)
|
81465
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.0ms)
|
81466
|
+
Completed 200 OK in 72ms (Views: 71.3ms | ActiveRecord: 0.0ms)
|
81467
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81468
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81469
|
+
-------------------------------------------------------------------------------
|
81470
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
81471
|
+
-------------------------------------------------------------------------------
|
81472
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
81473
|
+
Processing by Contour::RegistrationsController#create as HTML
|
81474
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
|
81475
|
+
Unpermitted parameters: spam
|
81476
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81477
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
81478
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
81479
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$qDXzUqwoMpTQkLsz6Ug98uedVWn2fBCC0ShF2Vsgp0oz81cPa5egG"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00]]
|
81480
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81481
|
+
Redirected to http://test.host/users/login
|
81482
|
+
Completed 302 Found in 32ms (ActiveRecord: 1.0ms)
|
81483
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
81484
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
81485
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81486
|
+
--------------------------------------------------------------------------------------------
|
81487
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
81488
|
+
--------------------------------------------------------------------------------------------
|
81489
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
81490
|
+
Processing by Contour::RegistrationsController#create as HTML
|
81491
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
|
81492
|
+
Unpermitted parameters: status
|
81493
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81494
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
81495
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
81496
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$/ch5nwftsv/TCZHIeAtBIuouEtTaZXd.XPiXEgz3MOGijaQHEUIXO"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00]]
|
81497
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81498
|
+
Redirected to http://test.host/users/login
|
81499
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
|
81500
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
81501
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
81502
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81503
|
+
---------------------------------------------------------------------------------------------
|
81504
|
+
Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
|
81505
|
+
---------------------------------------------------------------------------------------------
|
81506
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
81507
|
+
Processing by Contour::RegistrationsController#create as HTML
|
81508
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
|
81509
|
+
SPAM BOT SIGNUP: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"password", "password_confirmation"=>"password", "spam"=>"http://buystuffhere.com"}, "controller"=>"contour/registrations", "action"=>"create"}
|
81510
|
+
Unpermitted parameters: spam
|
81511
|
+
Redirected to http://test.host/users/login
|
81512
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
|
81513
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
81514
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81515
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81516
|
+
----------------------------------------------------------------------
|
81517
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
81518
|
+
----------------------------------------------------------------------
|
81519
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81520
|
+
Processing by Contour::SessionsController#create as JSON
|
81521
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
81522
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
81523
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
81524
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00]]
|
81525
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81526
|
+
Completed 200 OK in 80ms (Views: 0.3ms | ActiveRecord: 0.9ms)
|
81527
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
81528
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81529
|
+
----------------------------------------------------------------------------------------------------------
|
81530
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
81531
|
+
----------------------------------------------------------------------------------------------------------
|
81532
|
+
Processing by Contour::SessionsController#create as HTML
|
81533
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
81534
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
|
81535
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'[0m
|
81536
|
+
Redirected to http://test.host/auth/google_apps
|
81537
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
81538
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
81539
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81540
|
+
----------------------------------------------------------------------------------------------
|
81541
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
81542
|
+
----------------------------------------------------------------------------------------------
|
81543
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
81544
|
+
Processing by Contour::SessionsController#create as HTML
|
81545
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
81546
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
81547
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
|
81548
|
+
Redirected to http://test.host/auth/ldap
|
81549
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
81550
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81551
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81552
|
+
--------------------------------------------------------------------------
|
81553
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
81554
|
+
--------------------------------------------------------------------------
|
81555
|
+
Processing by Contour::SessionsController#create as HTML
|
81556
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
81557
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
81558
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
|
81559
|
+
Completed 401 Unauthorized in 3ms
|
81560
|
+
Processing by Contour::SessionsController#new as HTML
|
81561
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
81562
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.3ms)
|
81563
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.6ms)
|
81564
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
|
81565
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.1ms)
|
81566
|
+
Completed 200 OK in 45ms (Views: 43.3ms | ActiveRecord: 0.0ms)
|
81567
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
81568
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81569
|
+
-----------------------------------------------------
|
81570
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
81571
|
+
-----------------------------------------------------
|
81572
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81573
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81574
|
+
---------------------------------------------------------------------
|
81575
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
81576
|
+
---------------------------------------------------------------------
|
81577
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81578
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81579
|
+
-----------------------
|
81580
|
+
ContourTest: test_truth
|
81581
|
+
-----------------------
|
81582
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81583
|
+
[1m[35m (0.0ms)[0m begin transaction
|
81584
|
+
--------------------------------------------------------------------
|
81585
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
81586
|
+
--------------------------------------------------------------------
|
81587
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81588
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
81589
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
81590
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 11:56:18 -0400
|
81591
|
+
Processing by WelcomeController#logged_in_page as HTML
|
81592
|
+
Completed 401 Unauthorized in 34ms
|
81593
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81594
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
81595
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
81596
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$jFVoJmgRcXQbAAJkllqNXOT.dTtZKZeWNiueVqJERKpbarPYRp1t2"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00]]
|
81597
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81598
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
81599
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
81600
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
81601
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81602
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
81603
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
81604
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 11:56:18 -0400
|
81605
|
+
Processing by Contour::SessionsController#create as HTML
|
81606
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
81607
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
81608
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
81609
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
81610
|
+
Completed 401 Unauthorized in 6ms
|
81611
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 11:56:18 -0400
|
81612
|
+
Processing by Contour::SessionsController#new as HTML
|
81613
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
81614
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
|
81615
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
|
81616
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
|
81617
|
+
Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.0ms)
|
81618
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
81619
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81620
|
+
--------------------------------------------------------
|
81621
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
81622
|
+
--------------------------------------------------------
|
81623
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81624
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
81625
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
81626
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 11:56:18 -0400
|
81627
|
+
Processing by WelcomeController#logged_in_page as HTML
|
81628
|
+
Completed 401 Unauthorized in 1ms
|
81629
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81630
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
81631
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
81632
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$2ua9d5OyPNVepzZZljr1uOk8xSExY4XPA.kL4hl12pqJ.K6eDhYtu"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00]]
|
81633
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81634
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
81635
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
81636
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
81637
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81638
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
81639
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
81640
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 11:56:18 -0400
|
81641
|
+
Processing by Contour::SessionsController#create as HTML
|
81642
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
81643
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
81644
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
81645
|
+
[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" = 999914116 [["last_sign_in_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00]]
|
81646
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81647
|
+
Redirected to http://www.example.com/logged_in_page
|
81648
|
+
Completed 302 Found in 12ms (ActiveRecord: 0.6ms)
|
81649
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 11:56:18 -0400
|
81650
|
+
Processing by WelcomeController#logged_in_page as HTML
|
81651
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
|
81652
|
+
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
81653
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
81654
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81655
|
+
--------------------------------------------------------------------
|
81656
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
81657
|
+
--------------------------------------------------------------------
|
81658
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81659
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
81660
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
81661
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 11:56:18 -0400
|
81662
|
+
Processing by WelcomeController#logged_in_page as HTML
|
81663
|
+
Completed 401 Unauthorized in 1ms
|
81664
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81665
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
81666
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
81667
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$06xE32V8b8XLknE9tMf/SebfPzhOt/WNjE3gQGdLPugFqovCQ4OA."], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00]]
|
81668
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81669
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
81670
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
81671
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
81672
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81673
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
81674
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
81675
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 11:56:18 -0400
|
81676
|
+
Processing by Contour::SessionsController#create as HTML
|
81677
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
81678
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
81679
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
81680
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
81681
|
+
Completed 401 Unauthorized in 5ms
|
81682
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 11:56:18 -0400
|
81683
|
+
Processing by Contour::SessionsController#new as HTML
|
81684
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
81685
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
81686
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.5ms)
|
81687
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.3ms)
|
81688
|
+
Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.0ms)
|
81689
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
81690
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81691
|
+
-------------------------------------------------------------
|
81692
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
81693
|
+
-------------------------------------------------------------
|
81694
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81695
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
81696
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
81697
|
+
Started GET "/" for 127.0.0.1 at 2013-09-03 11:56:18 -0400
|
81698
|
+
Processing by WelcomeController#index as HTML
|
81699
|
+
Completed 401 Unauthorized in 1ms
|
81700
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
81701
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81702
|
+
-------------------------------------------------------------------------
|
81703
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
81704
|
+
-------------------------------------------------------------------------
|
81705
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
81706
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
81707
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
81708
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 11:56:18 -0400
|
81709
|
+
Processing by WelcomeController#logged_in_page as JSON
|
81710
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
81711
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81712
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00]]
|
81713
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
81714
|
+
Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
81715
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
81716
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81717
|
+
------------------------------------------------------------------------------------------------
|
81718
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
81719
|
+
------------------------------------------------------------------------------------------------
|
81720
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81721
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
81722
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
81723
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 11:56:18 -0400
|
81724
|
+
Processing by WelcomeController#logged_in_page as JSON
|
81725
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
81726
|
+
Completed 401 Unauthorized in 75ms
|
81727
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81728
|
+
[1m[35m (0.0ms)[0m begin transaction
|
81729
|
+
------------------------------------
|
81730
|
+
UserTest: test_should_apply_omniauth
|
81731
|
+
------------------------------------
|
81732
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81733
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
81734
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
81735
|
+
--------------------------------------
|
81736
|
+
UserTest: test_should_get_reverse_name
|
81737
|
+
--------------------------------------
|
81738
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
81739
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81740
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
81741
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "authentications"
|
81742
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-09-03 16:00:44', '2013-09-03 16:00:44', 949717663, 201799169)[0m
|
81743
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-09-03 16:00:44', '2013-09-03 16:00:44', 876923740, 201799169)
|
81744
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-09-03 16:00:44', '2013-09-03 16:00:44', 864673665, 201799169)[0m
|
81745
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
81746
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 16:00:44', '2013-09-03 16:00:44', 201799169)[0m
|
81747
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 16:00:44', '2013-09-03 16:00:44', 999914115)
|
81748
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 16:00:44', '2013-09-03 16:00:44', 725306934)[0m
|
81749
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 16:00:44', '2013-09-03 16:00:44', 349534908)
|
81750
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
81751
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81752
|
+
-------------------------------------------------
|
81753
|
+
AuthenticationTest: test_should_get_provider_name
|
81754
|
+
-------------------------------------------------
|
81755
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
81756
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
81757
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81758
|
+
--------------------------------------------------------------------------------
|
81759
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
81760
|
+
--------------------------------------------------------------------------------
|
81761
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
81762
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81763
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81764
|
+
-------------------------------------------------------------------------
|
81765
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
81766
|
+
-------------------------------------------------------------------------
|
81767
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81768
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
81769
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
81770
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
81771
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-09-03 16:00:44 UTC", "updated_at"=>"2013-09-03 16:00:44 UTC"}}
|
81772
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
81773
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
81774
|
+
Logged in user found, creating associated authentication.
|
81775
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81776
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:00:44 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 03 Sep 2013 16:00:44 UTC +00:00], ["user_id", 201799169]]
|
81777
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
81778
|
+
Redirected to http://test.host/authentications
|
81779
|
+
Completed 302 Found in 21ms (ActiveRecord: 1.0ms)
|
81780
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
81781
|
+
[1m[35m (7.9ms)[0m rollback transaction
|
81782
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81783
|
+
--------------------------------------------------------------------------
|
81784
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
81785
|
+
--------------------------------------------------------------------------
|
81786
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
81787
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
81788
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
81789
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
81790
|
+
Parameters: {"id"=>"949717663"}
|
81791
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
81792
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
81793
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
81794
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
81795
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81796
|
+
Redirected to http://test.host/authentications
|
81797
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
|
81798
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
81799
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
81800
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81801
|
+
-------------------------------------------------------------
|
81802
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
81803
|
+
-------------------------------------------------------------
|
81804
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81805
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
81806
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
81807
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
81808
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
81809
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
81810
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_current_authentications.html.erb (14.9ms)
|
81811
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (17.7ms)
|
81812
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.6ms)
|
81813
|
+
Completed 200 OK in 120ms (Views: 119.2ms | ActiveRecord: 0.4ms)
|
81814
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
81815
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81816
|
+
-----------------------------------------------------------------------------
|
81817
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
81818
|
+
-----------------------------------------------------------------------------
|
81819
|
+
Processing by Contour::PasswordsController#create as HTML
|
81820
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
81821
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
81822
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'qBZL24zHGfNTsF5mNGM9' LIMIT 1[0m
|
81823
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81824
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "qBZL24zHGfNTsF5mNGM9"], ["reset_password_sent_at", Tue, 03 Sep 2013 16:00:44 UTC +00:00], ["updated_at", Tue, 03 Sep 2013 16:00:44 UTC +00:00]]
|
81825
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
81826
|
+
|
81827
|
+
Sent mail to valid@example.com (12.4ms)
|
81828
|
+
Date: Tue, 03 Sep 2013 12:00:45 -0400
|
81829
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
81830
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
81831
|
+
To: valid@example.com
|
81832
|
+
Message-ID: <522607adf2ea_12a653fc2504606d46342f@edge.partners.org.mail>
|
81833
|
+
Subject: Reset password instructions
|
81834
|
+
Mime-Version: 1.0
|
81835
|
+
Content-Type: text/html;
|
81836
|
+
charset=UTF-8
|
81837
|
+
Content-Transfer-Encoding: 7bit
|
81838
|
+
|
81839
|
+
<p>Hello valid@example.com!</p>
|
81840
|
+
|
81841
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
81842
|
+
|
81843
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=qBZL24zHGfNTsF5mNGM9">Change my password</a></p>
|
81844
|
+
|
81845
|
+
<p>If you didn't request this, please ignore this email.</p>
|
81846
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
81847
|
+
|
81848
|
+
Redirected to http://test.host/users/login
|
81849
|
+
Completed 302 Found in 99ms (ActiveRecord: 1.3ms)
|
81850
|
+
[1m[36m (2.8ms)[0m [1mrollback transaction[0m
|
81851
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81852
|
+
-----------------------------------------------------------------------------
|
81853
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
81854
|
+
-----------------------------------------------------------------------------
|
81855
|
+
Processing by Contour::PasswordsController#new as HTML
|
81856
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
|
81857
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (6.6ms)
|
81858
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.3ms)
|
81859
|
+
Completed 200 OK in 26ms (Views: 24.6ms | ActiveRecord: 0.0ms)
|
81860
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81861
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81862
|
+
-------------------------------------------------------------------------------
|
81863
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
81864
|
+
-------------------------------------------------------------------------------
|
81865
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
81866
|
+
Processing by Contour::RegistrationsController#create as HTML
|
81867
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
|
81868
|
+
Unpermitted parameters: spam
|
81869
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81870
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
81871
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
81872
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$FoKigzSni.NsmSXpnixNL.pos6YbgVKS38g9hyxVeYH9UuaFlj0Eu"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00]]
|
81873
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81874
|
+
Redirected to http://test.host/users/login
|
81875
|
+
Completed 302 Found in 16ms (ActiveRecord: 0.8ms)
|
81876
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
81877
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
81878
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81879
|
+
--------------------------------------------------------------------------------------------
|
81880
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
81881
|
+
--------------------------------------------------------------------------------------------
|
81882
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
81883
|
+
Processing by Contour::RegistrationsController#create as HTML
|
81884
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
|
81885
|
+
Unpermitted parameters: status
|
81886
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81887
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
81888
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
81889
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$y9sSA4AL3paXr3C7Ia6n2eXXMeLTt3O9tDQupEAeoNzMEvsqFk1Cu"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00]]
|
81890
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81891
|
+
Redirected to http://test.host/users/login
|
81892
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
|
81893
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
81894
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
81895
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81896
|
+
---------------------------------------------------------------------------------------------
|
81897
|
+
Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
|
81898
|
+
---------------------------------------------------------------------------------------------
|
81899
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
81900
|
+
Processing by Contour::RegistrationsController#create as HTML
|
81901
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
|
81902
|
+
SPAM BOT SIGNUP: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"password", "password_confirmation"=>"password", "spam"=>"http://buystuffhere.com"}, "controller"=>"contour/registrations", "action"=>"create"}
|
81903
|
+
Unpermitted parameters: spam
|
81904
|
+
Redirected to http://test.host/users/login
|
81905
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
|
81906
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
81907
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81908
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81909
|
+
----------------------------------------------------------------------
|
81910
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
81911
|
+
----------------------------------------------------------------------
|
81912
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81913
|
+
Processing by Contour::SessionsController#create as JSON
|
81914
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
81915
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
81916
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
81917
|
+
[1m[35mSQL (2.0ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00]]
|
81918
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81919
|
+
Completed 200 OK in 79ms (Views: 0.3ms | ActiveRecord: 2.3ms)
|
81920
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
81921
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81922
|
+
----------------------------------------------------------------------------------------------------------
|
81923
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
81924
|
+
----------------------------------------------------------------------------------------------------------
|
81925
|
+
Processing by Contour::SessionsController#create as HTML
|
81926
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
81927
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
|
81928
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'[0m
|
81929
|
+
Redirected to http://test.host/auth/google_apps
|
81930
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
81931
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
81932
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
81933
|
+
----------------------------------------------------------------------------------------------
|
81934
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
81935
|
+
----------------------------------------------------------------------------------------------
|
81936
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
81937
|
+
Processing by Contour::SessionsController#create as HTML
|
81938
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
81939
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
81940
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
|
81941
|
+
Redirected to http://test.host/auth/ldap
|
81942
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
81943
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81944
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81945
|
+
--------------------------------------------------------------------------
|
81946
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
81947
|
+
--------------------------------------------------------------------------
|
81948
|
+
Processing by Contour::SessionsController#create as HTML
|
81949
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
81950
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
81951
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
|
81952
|
+
Completed 401 Unauthorized in 3ms
|
81953
|
+
Processing by Contour::SessionsController#new as HTML
|
81954
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
81955
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
|
81956
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.9ms)
|
81957
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.2ms)
|
81958
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
|
81959
|
+
Completed 200 OK in 20ms (Views: 19.0ms | ActiveRecord: 0.0ms)
|
81960
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81961
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81962
|
+
-----------------------------------------------------
|
81963
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
81964
|
+
-----------------------------------------------------
|
81965
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81966
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81967
|
+
---------------------------------------------------------------------
|
81968
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
81969
|
+
---------------------------------------------------------------------
|
81970
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81971
|
+
[1m[35m (0.0ms)[0m begin transaction
|
81972
|
+
-----------------------
|
81973
|
+
ContourTest: test_truth
|
81974
|
+
-----------------------
|
81975
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
81976
|
+
[1m[35m (0.0ms)[0m begin transaction
|
81977
|
+
--------------------------------------------------------------------
|
81978
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
81979
|
+
--------------------------------------------------------------------
|
81980
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
81981
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
81982
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
81983
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:00:45 -0400
|
81984
|
+
Processing by WelcomeController#logged_in_page as HTML
|
81985
|
+
Completed 401 Unauthorized in 19ms
|
81986
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81987
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
81988
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
81989
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$hTdwHTLOUm6Lhk3RBLuHa./MwrwDfFcdba.Or0yVwmdgtpyJTI7xu"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00]]
|
81990
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81991
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
81992
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
81993
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
81994
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
81995
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
81996
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
81997
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 12:00:45 -0400
|
81998
|
+
Processing by Contour::SessionsController#create as HTML
|
81999
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
82000
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
82001
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82002
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82003
|
+
Completed 401 Unauthorized in 6ms
|
82004
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 12:00:45 -0400
|
82005
|
+
Processing by Contour::SessionsController#new as HTML
|
82006
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
|
82007
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
82008
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.6ms)
|
82009
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.7ms)
|
82010
|
+
Completed 200 OK in 34ms (Views: 31.9ms | ActiveRecord: 0.0ms)
|
82011
|
+
[1m[36m (13.3ms)[0m [1mrollback transaction[0m
|
82012
|
+
[1m[35m (0.2ms)[0m begin transaction
|
82013
|
+
--------------------------------------------------------
|
82014
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
82015
|
+
--------------------------------------------------------
|
82016
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82017
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
82018
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
82019
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:00:45 -0400
|
82020
|
+
Processing by WelcomeController#logged_in_page as HTML
|
82021
|
+
Completed 401 Unauthorized in 1ms
|
82022
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82023
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
82024
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
82025
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$U9DGZEph3iHOmWt5tlPdjurXO6mJGo0ZZGxR3Wp.rrFYtpajs7/.S"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00]]
|
82026
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82027
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
82028
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
82029
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
82030
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82031
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
82032
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
82033
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 12:00:45 -0400
|
82034
|
+
Processing by Contour::SessionsController#create as HTML
|
82035
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
82036
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
82037
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82038
|
+
[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" = 999914116 [["last_sign_in_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00]]
|
82039
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82040
|
+
Redirected to http://www.example.com/logged_in_page
|
82041
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
82042
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:00:45 -0400
|
82043
|
+
Processing by WelcomeController#logged_in_page as HTML
|
82044
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
|
82045
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
82046
|
+
[1m[36m (10.5ms)[0m [1mrollback transaction[0m
|
82047
|
+
[1m[35m (0.2ms)[0m begin transaction
|
82048
|
+
--------------------------------------------------------------------
|
82049
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
82050
|
+
--------------------------------------------------------------------
|
82051
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82052
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
82053
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
82054
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:00:45 -0400
|
82055
|
+
Processing by WelcomeController#logged_in_page as HTML
|
82056
|
+
Completed 401 Unauthorized in 1ms
|
82057
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82058
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
82059
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
82060
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$Ti670zMXuLKPNEP93ZE2GOSyKSilJRzXYdkgzTdVt0l.gO0CWkjIC"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 03 Sep 2013 16:00:45 UTC +00:00]]
|
82061
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82062
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
82063
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
82064
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
82065
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82066
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
82067
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
82068
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 12:00:45 -0400
|
82069
|
+
Processing by Contour::SessionsController#create as HTML
|
82070
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
82071
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
82072
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
82073
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
82074
|
+
Completed 401 Unauthorized in 5ms
|
82075
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 12:00:45 -0400
|
82076
|
+
Processing by Contour::SessionsController#new as HTML
|
82077
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
|
82078
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
82079
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.2ms)
|
82080
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.6ms)
|
82081
|
+
Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.0ms)
|
82082
|
+
[1m[36m (383.4ms)[0m [1mrollback transaction[0m
|
82083
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82084
|
+
-------------------------------------------------------------
|
82085
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
82086
|
+
-------------------------------------------------------------
|
82087
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82088
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
82089
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
82090
|
+
Started GET "/" for 127.0.0.1 at 2013-09-03 12:00:46 -0400
|
82091
|
+
Processing by WelcomeController#index as HTML
|
82092
|
+
Completed 401 Unauthorized in 1ms
|
82093
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82094
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82095
|
+
-------------------------------------------------------------------------
|
82096
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
82097
|
+
-------------------------------------------------------------------------
|
82098
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82099
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
82100
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
82101
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 12:00:46 -0400
|
82102
|
+
Processing by WelcomeController#logged_in_page as JSON
|
82103
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
82104
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82105
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 03 Sep 2013 16:00:46 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 16:00:46 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 16:00:46 UTC +00:00]]
|
82106
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
82107
|
+
Completed 200 OK in 79ms (Views: 0.2ms | ActiveRecord: 0.8ms)
|
82108
|
+
[1m[36m (97.5ms)[0m [1mrollback transaction[0m
|
82109
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82110
|
+
------------------------------------------------------------------------------------------------
|
82111
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
82112
|
+
------------------------------------------------------------------------------------------------
|
82113
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82114
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
82115
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
82116
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 12:00:46 -0400
|
82117
|
+
Processing by WelcomeController#logged_in_page as JSON
|
82118
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
82119
|
+
Completed 401 Unauthorized in 76ms
|
82120
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82121
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82122
|
+
------------------------------------
|
82123
|
+
UserTest: test_should_apply_omniauth
|
82124
|
+
------------------------------------
|
82125
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82126
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82127
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
82128
|
+
--------------------------------------
|
82129
|
+
UserTest: test_should_get_reverse_name
|
82130
|
+
--------------------------------------
|
82131
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82132
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
82133
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
82134
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "authentications"
|
82135
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-09-03 16:48:41', '2013-09-03 16:48:41', 949717663, 201799169)[0m
|
82136
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-09-03 16:48:41', '2013-09-03 16:48:41', 876923740, 201799169)
|
82137
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-09-03 16:48:41', '2013-09-03 16:48:41', 864673665, 201799169)[0m
|
82138
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
82139
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 16:48:41', '2013-09-03 16:48:41', 201799169)[0m
|
82140
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 16:48:41', '2013-09-03 16:48:41', 999914115)
|
82141
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 16:48:41', '2013-09-03 16:48:41', 725306934)[0m
|
82142
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 16:48:41', '2013-09-03 16:48:41', 349534908)
|
82143
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
82144
|
+
[1m[35m (0.0ms)[0m begin transaction
|
82145
|
+
-------------------------------------------------
|
82146
|
+
AuthenticationTest: test_should_get_provider_name
|
82147
|
+
-------------------------------------------------
|
82148
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
82149
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82150
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82151
|
+
--------------------------------------------------------------------------------
|
82152
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
82153
|
+
--------------------------------------------------------------------------------
|
82154
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
82155
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82156
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82157
|
+
-------------------------------------------------------------------------
|
82158
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
82159
|
+
-------------------------------------------------------------------------
|
82160
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82161
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
82162
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
82163
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
82164
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-09-03 16:48:41 UTC", "updated_at"=>"2013-09-03 16:48:41 UTC"}}
|
82165
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
82166
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
82167
|
+
Logged in user found, creating associated authentication.
|
82168
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82169
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:48:41 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 03 Sep 2013 16:48:41 UTC +00:00], ["user_id", 201799169]]
|
82170
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82171
|
+
Redirected to http://test.host/authentications
|
82172
|
+
Completed 302 Found in 42ms (ActiveRecord: 1.1ms)
|
82173
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
82174
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
82175
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82176
|
+
--------------------------------------------------------------------------
|
82177
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
82178
|
+
--------------------------------------------------------------------------
|
82179
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82180
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
82181
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
82182
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
82183
|
+
Parameters: {"id"=>"949717663"}
|
82184
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
82185
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
82186
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82187
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
82188
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82189
|
+
Redirected to http://test.host/authentications
|
82190
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
|
82191
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
82192
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
82193
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82194
|
+
-------------------------------------------------------------
|
82195
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
82196
|
+
-------------------------------------------------------------
|
82197
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82198
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
82199
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
82200
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
82201
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
|
82202
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1[0m [["user_id", 201799169]]
|
82203
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
|
82204
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1[0m [["user_id", 201799169]]
|
82205
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
|
82206
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1[0m [["user_id", 201799169]]
|
82207
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["user_id", 201799169]]
|
82208
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_authentications.html.erb (18.2ms)
|
82209
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (11.1ms)
|
82210
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.4ms)
|
82211
|
+
Completed 200 OK in 125ms (Views: 123.6ms | ActiveRecord: 0.9ms)
|
82212
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82213
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82214
|
+
-----------------------------------------------------------------------------
|
82215
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
82216
|
+
-----------------------------------------------------------------------------
|
82217
|
+
Processing by Contour::PasswordsController#create as HTML
|
82218
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
82219
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
82220
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '5QH6LoEa2NXhoaDQX7xo' LIMIT 1
|
82221
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82222
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "5QH6LoEa2NXhoaDQX7xo"], ["reset_password_sent_at", Tue, 03 Sep 2013 16:48:41 UTC +00:00], ["updated_at", Tue, 03 Sep 2013 16:48:41 UTC +00:00]]
|
82223
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82224
|
+
|
82225
|
+
Sent mail to valid@example.com (35.1ms)
|
82226
|
+
Date: Tue, 03 Sep 2013 12:48:41 -0400
|
82227
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
82228
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
82229
|
+
To: valid@example.com
|
82230
|
+
Message-ID: <522612e9a5fab_135b53fd3648606d8450e2@edge.partners.org.mail>
|
82231
|
+
Subject: Reset password instructions
|
82232
|
+
Mime-Version: 1.0
|
82233
|
+
Content-Type: text/html;
|
82234
|
+
charset=UTF-8
|
82235
|
+
Content-Transfer-Encoding: 7bit
|
82236
|
+
|
82237
|
+
<p>Hello valid@example.com!</p>
|
82238
|
+
|
82239
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
82240
|
+
|
82241
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=5QH6LoEa2NXhoaDQX7xo">Change my password</a></p>
|
82242
|
+
|
82243
|
+
<p>If you didn't request this, please ignore this email.</p>
|
82244
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
82245
|
+
|
82246
|
+
Redirected to http://test.host/users/login
|
82247
|
+
Completed 302 Found in 240ms (ActiveRecord: 1.0ms)
|
82248
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
82249
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82250
|
+
-----------------------------------------------------------------------------
|
82251
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
82252
|
+
-----------------------------------------------------------------------------
|
82253
|
+
Processing by Contour::PasswordsController#new as HTML
|
82254
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.9ms)
|
82255
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.9ms)
|
82256
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.5ms)
|
82257
|
+
Completed 200 OK in 111ms (Views: 110.2ms | ActiveRecord: 0.0ms)
|
82258
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82259
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82260
|
+
-------------------------------------------------------------------------------
|
82261
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
82262
|
+
-------------------------------------------------------------------------------
|
82263
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users"
|
82264
|
+
Processing by Contour::RegistrationsController#create as HTML
|
82265
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
|
82266
|
+
Unpermitted parameters: spam
|
82267
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82268
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
|
82269
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
82270
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:48:41 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$42F/cSE/InBoudJLPMbCyuNerKCYlJjDWr2Xi.XuKe.XR/bOdTt66"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 16:48:41 UTC +00:00]]
|
82271
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82272
|
+
Redirected to http://test.host/users/login
|
82273
|
+
Completed 302 Found in 95ms (ActiveRecord: 1.0ms)
|
82274
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
82275
|
+
[1m[35m (1.3ms)[0m rollback transaction
|
82276
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82277
|
+
--------------------------------------------------------------------------------------------
|
82278
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
82279
|
+
--------------------------------------------------------------------------------------------
|
82280
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
82281
|
+
Processing by Contour::RegistrationsController#create as HTML
|
82282
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
|
82283
|
+
Unpermitted parameters: status
|
82284
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82285
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
|
82286
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
82287
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:48:41 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$dZ74INfx3V8v6XU78Joh7OMWzRhldEzHLvamFDsO9DxBwME/pom5i"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 16:48:41 UTC +00:00]]
|
82288
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82289
|
+
Redirected to http://test.host/users/login
|
82290
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
|
82291
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
82292
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
82293
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82294
|
+
---------------------------------------------------------------------------------------------
|
82295
|
+
Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
|
82296
|
+
---------------------------------------------------------------------------------------------
|
82297
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
82298
|
+
Processing by Contour::RegistrationsController#create as HTML
|
82299
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
|
82300
|
+
SPAM BOT SIGNUP: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"password", "password_confirmation"=>"password", "spam"=>"http://buystuffhere.com"}, "controller"=>"contour/registrations", "action"=>"create"}
|
82301
|
+
Unpermitted parameters: spam
|
82302
|
+
Redirected to http://test.host/users/login
|
82303
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
|
82304
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
82305
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82306
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82307
|
+
----------------------------------------------------------------------
|
82308
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
82309
|
+
----------------------------------------------------------------------
|
82310
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82311
|
+
Processing by Contour::SessionsController#create as JSON
|
82312
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
82313
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
82314
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82315
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00]]
|
82316
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82317
|
+
Completed 200 OK in 78ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
82318
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
82319
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82320
|
+
----------------------------------------------------------------------------------------------------------
|
82321
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
82322
|
+
----------------------------------------------------------------------------------------------------------
|
82323
|
+
Processing by Contour::SessionsController#create as HTML
|
82324
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
82325
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1[0m
|
82326
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
|
82327
|
+
Redirected to http://test.host/auth/google_apps
|
82328
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
82329
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82330
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82331
|
+
----------------------------------------------------------------------------------------------
|
82332
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
82333
|
+
----------------------------------------------------------------------------------------------
|
82334
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82335
|
+
Processing by Contour::SessionsController#create as HTML
|
82336
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
82337
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
82338
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
82339
|
+
Redirected to http://test.host/auth/ldap
|
82340
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
82341
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82342
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
82343
|
+
--------------------------------------------------------------------------
|
82344
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
82345
|
+
--------------------------------------------------------------------------
|
82346
|
+
Processing by Contour::SessionsController#create as HTML
|
82347
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
82348
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
|
82349
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''[0m
|
82350
|
+
Completed 401 Unauthorized in 3ms
|
82351
|
+
Processing by Contour::SessionsController#new as HTML
|
82352
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
82353
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.1ms)
|
82354
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.7ms)
|
82355
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
|
82356
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.9ms)
|
82357
|
+
Completed 200 OK in 54ms (Views: 52.8ms | ActiveRecord: 0.0ms)
|
82358
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
82359
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82360
|
+
-----------------------------------------------------
|
82361
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
82362
|
+
-----------------------------------------------------
|
82363
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82364
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82365
|
+
---------------------------------------------------------------------
|
82366
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
82367
|
+
---------------------------------------------------------------------
|
82368
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82370
|
+
-----------------------
|
82371
|
+
ContourTest: test_truth
|
82372
|
+
-----------------------
|
82373
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82374
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82375
|
+
--------------------------------------------------------------------
|
82376
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
82377
|
+
--------------------------------------------------------------------
|
82378
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82379
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
82380
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
82381
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:48:42 -0400
|
82382
|
+
Processing by WelcomeController#logged_in_page as HTML
|
82383
|
+
Completed 401 Unauthorized in 19ms
|
82384
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82385
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
82386
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
82387
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$eJAp2jEou9jlROHChi1t0uEEIMcboqcU6Rx4.v/rMKP7N1s/4jTcS"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00]]
|
82388
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82389
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
82390
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
82391
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
82392
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82393
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
82394
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
|
82395
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 12:48:42 -0400
|
82396
|
+
Processing by Contour::SessionsController#create as HTML
|
82397
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
82398
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
82399
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82400
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82401
|
+
Completed 401 Unauthorized in 7ms
|
82402
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 12:48:42 -0400
|
82403
|
+
Processing by Contour::SessionsController#new as HTML
|
82404
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
82405
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
82406
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
|
82407
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.7ms)
|
82408
|
+
Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.0ms)
|
82409
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
82410
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82411
|
+
--------------------------------------------------------
|
82412
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
82413
|
+
--------------------------------------------------------
|
82414
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82415
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
82416
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
82417
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:48:42 -0400
|
82418
|
+
Processing by WelcomeController#logged_in_page as HTML
|
82419
|
+
Completed 401 Unauthorized in 1ms
|
82420
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82421
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
82422
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
82423
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$d9lMgqzjOnmMY5kk0gzuEeU12O5SYUEgxShB2LSVvZ9/v40/rlMVO"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00]]
|
82424
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82425
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
82426
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
82427
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
82428
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
82429
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
82430
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
82431
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 12:48:42 -0400
|
82432
|
+
Processing by Contour::SessionsController#create as HTML
|
82433
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
82434
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
82435
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82436
|
+
[1m[36mSQL (0.3ms)[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" = 999914116[0m [["last_sign_in_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00]]
|
82437
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82438
|
+
Redirected to http://www.example.com/logged_in_page
|
82439
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
82440
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:48:42 -0400
|
82441
|
+
Processing by WelcomeController#logged_in_page as HTML
|
82442
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1[0m
|
82443
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
82444
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
82445
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82446
|
+
--------------------------------------------------------------------
|
82447
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
82448
|
+
--------------------------------------------------------------------
|
82449
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82450
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
82451
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
82452
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:48:42 -0400
|
82453
|
+
Processing by WelcomeController#logged_in_page as HTML
|
82454
|
+
Completed 401 Unauthorized in 1ms
|
82455
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82456
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
82457
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
82458
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$4IeTL9Y34MMSebF8gbCF7eLqXSvTNFQaZHcz0qVkMyCpOFwR8owfy"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00]]
|
82459
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82460
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
82461
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
82462
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
82463
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
82464
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116[0m
|
82465
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
82466
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 12:48:42 -0400
|
82467
|
+
Processing by Contour::SessionsController#create as HTML
|
82468
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
82469
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
82470
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82471
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82472
|
+
Completed 401 Unauthorized in 5ms
|
82473
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 12:48:42 -0400
|
82474
|
+
Processing by Contour::SessionsController#new as HTML
|
82475
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.8ms)
|
82476
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
82477
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
|
82478
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.1ms)
|
82479
|
+
Completed 200 OK in 58ms (Views: 55.4ms | ActiveRecord: 0.0ms)
|
82480
|
+
[1m[35m (28.3ms)[0m rollback transaction
|
82481
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82482
|
+
-------------------------------------------------------------
|
82483
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
82484
|
+
-------------------------------------------------------------
|
82485
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82486
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
82487
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
82488
|
+
Started GET "/" for 127.0.0.1 at 2013-09-03 12:48:42 -0400
|
82489
|
+
Processing by WelcomeController#index as HTML
|
82490
|
+
Completed 401 Unauthorized in 1ms
|
82491
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82492
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82493
|
+
-------------------------------------------------------------------------
|
82494
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
82495
|
+
-------------------------------------------------------------------------
|
82496
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82497
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
82498
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
82499
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 12:48:42 -0400
|
82500
|
+
Processing by WelcomeController#logged_in_page as JSON
|
82501
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
82502
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82503
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00]]
|
82504
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82505
|
+
Completed 200 OK in 82ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
82506
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
82507
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82508
|
+
------------------------------------------------------------------------------------------------
|
82509
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
82510
|
+
------------------------------------------------------------------------------------------------
|
82511
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82512
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
82513
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
82514
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 12:48:42 -0400
|
82515
|
+
Processing by WelcomeController#logged_in_page as JSON
|
82516
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
82517
|
+
Completed 401 Unauthorized in 77ms
|
82518
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82519
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82520
|
+
------------------------------------
|
82521
|
+
UserTest: test_should_apply_omniauth
|
82522
|
+
------------------------------------
|
82523
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82524
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82525
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82526
|
+
--------------------------------------
|
82527
|
+
UserTest: test_should_get_reverse_name
|
82528
|
+
--------------------------------------
|
82529
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82530
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82531
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
82532
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
82533
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-09-03 16:51:33', '2013-09-03 16:51:33', 949717663, 201799169)[0m
|
82534
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-09-03 16:51:33', '2013-09-03 16:51:33', 876923740, 201799169)
|
82535
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-09-03 16:51:33', '2013-09-03 16:51:33', 864673665, 201799169)[0m
|
82536
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
82537
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 16:51:33', '2013-09-03 16:51:33', 201799169)[0m
|
82538
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 16:51:33', '2013-09-03 16:51:33', 999914115)
|
82539
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 16:51:33', '2013-09-03 16:51:33', 725306934)[0m
|
82540
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 16:51:33', '2013-09-03 16:51:33', 349534908)
|
82541
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
82542
|
+
[1m[35m (0.0ms)[0m begin transaction
|
82543
|
+
-------------------------------------------------
|
82544
|
+
AuthenticationTest: test_should_get_provider_name
|
82545
|
+
-------------------------------------------------
|
82546
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
82547
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82548
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82549
|
+
--------------------------------------------------------------------------------
|
82550
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
82551
|
+
--------------------------------------------------------------------------------
|
82552
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
82553
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82554
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82555
|
+
-------------------------------------------------------------------------
|
82556
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
82557
|
+
-------------------------------------------------------------------------
|
82558
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82559
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
82560
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
82561
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
82562
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-09-03 16:51:33 UTC", "updated_at"=>"2013-09-03 16:51:33 UTC"}}
|
82563
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
82564
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
82565
|
+
Logged in user found, creating associated authentication.
|
82566
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82567
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00], ["user_id", 201799169]]
|
82568
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82569
|
+
Redirected to http://test.host/authentications
|
82570
|
+
Completed 302 Found in 18ms (ActiveRecord: 0.9ms)
|
82571
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
82572
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
82573
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82574
|
+
--------------------------------------------------------------------------
|
82575
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
82576
|
+
--------------------------------------------------------------------------
|
82577
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82578
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
82579
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
82580
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
82581
|
+
Parameters: {"id"=>"949717663"}
|
82582
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
82583
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
82584
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82585
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
82586
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82587
|
+
Completed 500 Internal Server Error in 42ms
|
82588
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
82589
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
82590
|
+
-------------------------------------------------------------
|
82591
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
82592
|
+
-------------------------------------------------------------
|
82593
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82594
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
82595
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
82596
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
|
82597
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1[0m [["user_id", 201799169]]
|
82598
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
|
82599
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1[0m [["user_id", 201799169]]
|
82600
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
|
82601
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1[0m [["user_id", 201799169]]
|
82602
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
|
82603
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1[0m [["user_id", 201799169]]
|
82604
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_authentications.html.erb (17.9ms)
|
82605
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (10.3ms)
|
82606
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.3ms)
|
82607
|
+
Completed 200 OK in 104ms (Views: 103.1ms | ActiveRecord: 0.9ms)
|
82608
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82609
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82610
|
+
-----------------------------------------------------------------------------
|
82611
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
82612
|
+
-----------------------------------------------------------------------------
|
82613
|
+
Processing by Contour::PasswordsController#create as HTML
|
82614
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
82615
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
82616
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'eXpxymxpuhsGeKuMCDiB' LIMIT 1[0m
|
82617
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
82618
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "eXpxymxpuhsGeKuMCDiB"], ["reset_password_sent_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00], ["updated_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00]]
|
82619
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82620
|
+
|
82621
|
+
Sent mail to valid@example.com (12.1ms)
|
82622
|
+
Date: Tue, 03 Sep 2013 12:51:33 -0400
|
82623
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
82624
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
82625
|
+
To: valid@example.com
|
82626
|
+
Message-ID: <522613958fce5_1367f3fc4b54606cc4698b@edge.partners.org.mail>
|
82627
|
+
Subject: Reset password instructions
|
82628
|
+
Mime-Version: 1.0
|
82629
|
+
Content-Type: text/html;
|
82630
|
+
charset=UTF-8
|
82631
|
+
Content-Transfer-Encoding: 7bit
|
82632
|
+
|
82633
|
+
<p>Hello valid@example.com!</p>
|
82634
|
+
|
82635
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
82636
|
+
|
82637
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=eXpxymxpuhsGeKuMCDiB">Change my password</a></p>
|
82638
|
+
|
82639
|
+
<p>If you didn't request this, please ignore this email.</p>
|
82640
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
82641
|
+
|
82642
|
+
Redirected to http://test.host/users/login
|
82643
|
+
Completed 302 Found in 91ms (ActiveRecord: 0.9ms)
|
82644
|
+
[1m[36m (8.8ms)[0m [1mrollback transaction[0m
|
82645
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82646
|
+
-----------------------------------------------------------------------------
|
82647
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
82648
|
+
-----------------------------------------------------------------------------
|
82649
|
+
Processing by Contour::PasswordsController#new as HTML
|
82650
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.3ms)
|
82651
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.9ms)
|
82652
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.3ms)
|
82653
|
+
Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.0ms)
|
82654
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82655
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82656
|
+
-------------------------------------------------------------------------------
|
82657
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
82658
|
+
-------------------------------------------------------------------------------
|
82659
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
82660
|
+
Processing by Contour::RegistrationsController#create as HTML
|
82661
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
|
82662
|
+
Unpermitted parameters: spam
|
82663
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82664
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
82665
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
82666
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$jfGBMPINnkqRPZB5dB3Zu.xZazvb0kKlYp/7rjC1ZfPtHLWusisAa"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00]]
|
82667
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82668
|
+
Redirected to http://test.host/users/login
|
82669
|
+
Completed 302 Found in 21ms (ActiveRecord: 1.0ms)
|
82670
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
82671
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
82672
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82673
|
+
--------------------------------------------------------------------------------------------
|
82674
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
82675
|
+
--------------------------------------------------------------------------------------------
|
82676
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
82677
|
+
Processing by Contour::RegistrationsController#create as HTML
|
82678
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
|
82679
|
+
Unpermitted parameters: status
|
82680
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82681
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
82682
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
82683
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$oMIJPtcPxEpj6iil7usENOVyEsImq5ChqeU9K8dd.VX1J.Arn1QJC"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00]]
|
82684
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82685
|
+
Redirected to http://test.host/users/login
|
82686
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
|
82687
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
82688
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
82689
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82690
|
+
---------------------------------------------------------------------------------------------
|
82691
|
+
Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
|
82692
|
+
---------------------------------------------------------------------------------------------
|
82693
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
82694
|
+
Processing by Contour::RegistrationsController#create as HTML
|
82695
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
|
82696
|
+
SPAM BOT SIGNUP: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"password", "password_confirmation"=>"password", "spam"=>"http://buystuffhere.com"}, "controller"=>"contour/registrations", "action"=>"create"}
|
82697
|
+
Unpermitted parameters: spam
|
82698
|
+
Redirected to http://test.host/users/login
|
82699
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
|
82700
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
82701
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82702
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82703
|
+
----------------------------------------------------------------------
|
82704
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
82705
|
+
----------------------------------------------------------------------
|
82706
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82707
|
+
Processing by Contour::SessionsController#create as JSON
|
82708
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
82709
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
82710
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82711
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00]]
|
82712
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82713
|
+
Completed 200 OK in 81ms (Views: 0.3ms | ActiveRecord: 0.8ms)
|
82714
|
+
[1m[35m (11.0ms)[0m rollback transaction
|
82715
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82716
|
+
----------------------------------------------------------------------------------------------------------
|
82717
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
82718
|
+
----------------------------------------------------------------------------------------------------------
|
82719
|
+
Processing by Contour::SessionsController#create as HTML
|
82720
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
82721
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
|
82722
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'[0m
|
82723
|
+
Redirected to http://test.host/auth/google_apps
|
82724
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
82725
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82726
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82727
|
+
----------------------------------------------------------------------------------------------
|
82728
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
82729
|
+
----------------------------------------------------------------------------------------------
|
82730
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82731
|
+
Processing by Contour::SessionsController#create as HTML
|
82732
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
82733
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
82734
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
|
82735
|
+
Redirected to http://test.host/auth/ldap
|
82736
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
82737
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82738
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82739
|
+
--------------------------------------------------------------------------
|
82740
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
82741
|
+
--------------------------------------------------------------------------
|
82742
|
+
Processing by Contour::SessionsController#create as HTML
|
82743
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
82744
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
82745
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
|
82746
|
+
Completed 401 Unauthorized in 3ms
|
82747
|
+
Processing by Contour::SessionsController#new as HTML
|
82748
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
82749
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
|
82750
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
|
82751
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.2ms)
|
82752
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.8ms)
|
82753
|
+
Completed 200 OK in 20ms (Views: 18.5ms | ActiveRecord: 0.0ms)
|
82754
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82755
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82756
|
+
-----------------------------------------------------
|
82757
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
82758
|
+
-----------------------------------------------------
|
82759
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82760
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82761
|
+
---------------------------------------------------------------------
|
82762
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
82763
|
+
---------------------------------------------------------------------
|
82764
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82765
|
+
[1m[35m (0.0ms)[0m begin transaction
|
82766
|
+
-----------------------
|
82767
|
+
ContourTest: test_truth
|
82768
|
+
-----------------------
|
82769
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82770
|
+
[1m[35m (0.0ms)[0m begin transaction
|
82771
|
+
--------------------------------------------------------------------
|
82772
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
82773
|
+
--------------------------------------------------------------------
|
82774
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82775
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
82776
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
82777
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:51:33 -0400
|
82778
|
+
Processing by WelcomeController#logged_in_page as HTML
|
82779
|
+
Completed 401 Unauthorized in 20ms
|
82780
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82781
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
82782
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
82783
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$CrVGoNfcUWD9ghjhnZAk1uxPQxaCAn/r9b35JNH.fzbr2PxEmicb."], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 03 Sep 2013 16:51:33 UTC +00:00]]
|
82784
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82785
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
82786
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
82787
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
82788
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82789
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
82790
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
82791
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 12:51:33 -0400
|
82792
|
+
Processing by Contour::SessionsController#create as HTML
|
82793
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
82794
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
82795
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82796
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
82797
|
+
Completed 401 Unauthorized in 9ms
|
82798
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 12:51:34 -0400
|
82799
|
+
Processing by Contour::SessionsController#new as HTML
|
82800
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
82801
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
82802
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
|
82803
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
|
82804
|
+
Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.0ms)
|
82805
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
82806
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82807
|
+
--------------------------------------------------------
|
82808
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
82809
|
+
--------------------------------------------------------
|
82810
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82811
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
82812
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
82813
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:51:34 -0400
|
82814
|
+
Processing by WelcomeController#logged_in_page as HTML
|
82815
|
+
Completed 401 Unauthorized in 1ms
|
82816
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82817
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
82818
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
82819
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 16:51:34 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$PKomK380UHOvNab7b.xAbOgQXFPuJtMtIfxQL5g7jSOllrKyizPrW"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 03 Sep 2013 16:51:34 UTC +00:00]]
|
82820
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82821
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
82822
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
82823
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
82824
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82825
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
82826
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
82827
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 12:51:34 -0400
|
82828
|
+
Processing by Contour::SessionsController#create as HTML
|
82829
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
82830
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
82831
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
82832
|
+
[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" = 999914116 [["last_sign_in_at", Tue, 03 Sep 2013 16:51:34 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 16:51: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", Tue, 03 Sep 2013 16:51:34 UTC +00:00]]
|
82833
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82834
|
+
Redirected to http://www.example.com/logged_in_page
|
82835
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
82836
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:51:34 -0400
|
82837
|
+
Processing by WelcomeController#logged_in_page as HTML
|
82838
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
|
82839
|
+
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
82840
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
82841
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82842
|
+
--------------------------------------------------------------------
|
82843
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
82844
|
+
--------------------------------------------------------------------
|
82845
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82846
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
82847
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
82848
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:51:34 -0400
|
82849
|
+
Processing by WelcomeController#logged_in_page as HTML
|
82850
|
+
Completed 401 Unauthorized in 1ms
|
82851
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82852
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
82853
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
82854
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 16:51:34 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$eDuMEB4/nymYePeGxdqtZOhlhR9BPoRC7PVBCQv7v0Zp3HMQ5KUjm"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 03 Sep 2013 16:51:34 UTC +00:00]]
|
82855
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82856
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
82857
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
82858
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
82859
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82860
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
82861
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
82862
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 12:51:34 -0400
|
82863
|
+
Processing by Contour::SessionsController#create as HTML
|
82864
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
82865
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
82866
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82867
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
82868
|
+
Completed 401 Unauthorized in 5ms
|
82869
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 12:51:34 -0400
|
82870
|
+
Processing by Contour::SessionsController#new as HTML
|
82871
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
82872
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
82873
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.2ms)
|
82874
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
|
82875
|
+
Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.0ms)
|
82876
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
82877
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82878
|
+
-------------------------------------------------------------
|
82879
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
82880
|
+
-------------------------------------------------------------
|
82881
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82882
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
82883
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
82884
|
+
Started GET "/" for 127.0.0.1 at 2013-09-03 12:51:34 -0400
|
82885
|
+
Processing by WelcomeController#index as HTML
|
82886
|
+
Completed 401 Unauthorized in 1ms
|
82887
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82888
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82889
|
+
-------------------------------------------------------------------------
|
82890
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
82891
|
+
-------------------------------------------------------------------------
|
82892
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82893
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
82894
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
82895
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 12:51:34 -0400
|
82896
|
+
Processing by WelcomeController#logged_in_page as JSON
|
82897
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
82898
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82899
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 03 Sep 2013 16:51:34 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 16:51:34 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 16:51:34 UTC +00:00]]
|
82900
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
82901
|
+
Completed 200 OK in 81ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
82902
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
82903
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82904
|
+
------------------------------------------------------------------------------------------------
|
82905
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
82906
|
+
------------------------------------------------------------------------------------------------
|
82907
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82908
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
82909
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
82910
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 12:51:34 -0400
|
82911
|
+
Processing by WelcomeController#logged_in_page as JSON
|
82912
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
82913
|
+
Completed 401 Unauthorized in 78ms
|
82914
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82915
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82916
|
+
------------------------------------
|
82917
|
+
UserTest: test_should_apply_omniauth
|
82918
|
+
------------------------------------
|
82919
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82920
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82921
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
82922
|
+
--------------------------------------
|
82923
|
+
UserTest: test_should_get_reverse_name
|
82924
|
+
--------------------------------------
|
82925
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82926
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
82927
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
82928
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "authentications"
|
82929
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-09-03 16:51:59', '2013-09-03 16:51:59', 949717663, 201799169)[0m
|
82930
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-09-03 16:51:59', '2013-09-03 16:51:59', 876923740, 201799169)
|
82931
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-09-03 16:51:59', '2013-09-03 16:51:59', 864673665, 201799169)[0m
|
82932
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
82933
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 16:51:59', '2013-09-03 16:51:59', 201799169)[0m
|
82934
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 16:51:59', '2013-09-03 16:51:59', 999914115)
|
82935
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 16:51:59', '2013-09-03 16:51:59', 725306934)[0m
|
82936
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 16:51:59', '2013-09-03 16:51:59', 349534908)
|
82937
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
82938
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82939
|
+
-------------------------------------------------
|
82940
|
+
AuthenticationTest: test_should_get_provider_name
|
82941
|
+
-------------------------------------------------
|
82942
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
82943
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82944
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82945
|
+
--------------------------------------------------------------------------------
|
82946
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
82947
|
+
--------------------------------------------------------------------------------
|
82948
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
82949
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
82950
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82951
|
+
-------------------------------------------------------------------------
|
82952
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
82953
|
+
-------------------------------------------------------------------------
|
82954
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82955
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
82956
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
82957
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
82958
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-09-03 16:51:59 UTC", "updated_at"=>"2013-09-03 16:51:59 UTC"}}
|
82959
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
82960
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
82961
|
+
Logged in user found, creating associated authentication.
|
82962
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82963
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00], ["user_id", 201799169]]
|
82964
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
82965
|
+
Redirected to http://test.host/authentications
|
82966
|
+
Completed 302 Found in 18ms (ActiveRecord: 0.8ms)
|
82967
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
82968
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
82969
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82970
|
+
--------------------------------------------------------------------------
|
82971
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
82972
|
+
--------------------------------------------------------------------------
|
82973
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
82974
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
82975
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
82976
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
82977
|
+
Parameters: {"id"=>"949717663"}
|
82978
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
82979
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
82980
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
82981
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
82982
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82983
|
+
Redirected to http://test.host/authentications
|
82984
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
|
82985
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
82986
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
82987
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82988
|
+
-------------------------------------------------------------
|
82989
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
82990
|
+
-------------------------------------------------------------
|
82991
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
82992
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
82993
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
82994
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
82995
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
|
82996
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1[0m [["user_id", 201799169]]
|
82997
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
|
82998
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1[0m [["user_id", 201799169]]
|
82999
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
|
83000
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1[0m [["user_id", 201799169]]
|
83001
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["user_id", 201799169]]
|
83002
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_authentications.html.erb (17.9ms)
|
83003
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (12.3ms)
|
83004
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.2ms)
|
83005
|
+
Completed 200 OK in 107ms (Views: 105.8ms | ActiveRecord: 1.0ms)
|
83006
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83007
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83008
|
+
-----------------------------------------------------------------------------
|
83009
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
83010
|
+
-----------------------------------------------------------------------------
|
83011
|
+
Processing by Contour::PasswordsController#create as HTML
|
83012
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
83013
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
83014
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'WT5CxxzAZbD6A57rJMgp' LIMIT 1
|
83015
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83016
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "WT5CxxzAZbD6A57rJMgp"], ["reset_password_sent_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00], ["updated_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00]]
|
83017
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83018
|
+
|
83019
|
+
Sent mail to valid@example.com (11.8ms)
|
83020
|
+
Date: Tue, 03 Sep 2013 12:51:59 -0400
|
83021
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
83022
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
83023
|
+
To: valid@example.com
|
83024
|
+
Message-ID: <522613af69982_136a03fe6d0c606dc5557@edge.partners.org.mail>
|
83025
|
+
Subject: Reset password instructions
|
83026
|
+
Mime-Version: 1.0
|
83027
|
+
Content-Type: text/html;
|
83028
|
+
charset=UTF-8
|
83029
|
+
Content-Transfer-Encoding: 7bit
|
83030
|
+
|
83031
|
+
<p>Hello valid@example.com!</p>
|
83032
|
+
|
83033
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
83034
|
+
|
83035
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=WT5CxxzAZbD6A57rJMgp">Change my password</a></p>
|
83036
|
+
|
83037
|
+
<p>If you didn't request this, please ignore this email.</p>
|
83038
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
83039
|
+
|
83040
|
+
Redirected to http://test.host/users/login
|
83041
|
+
Completed 302 Found in 90ms (ActiveRecord: 0.9ms)
|
83042
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
83043
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83044
|
+
-----------------------------------------------------------------------------
|
83045
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
83046
|
+
-----------------------------------------------------------------------------
|
83047
|
+
Processing by Contour::PasswordsController#new as HTML
|
83048
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.3ms)
|
83049
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.8ms)
|
83050
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.1ms)
|
83051
|
+
Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.0ms)
|
83052
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83053
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83054
|
+
-------------------------------------------------------------------------------
|
83055
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
83056
|
+
-------------------------------------------------------------------------------
|
83057
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users"
|
83058
|
+
Processing by Contour::RegistrationsController#create as HTML
|
83059
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
|
83060
|
+
Unpermitted parameters: spam
|
83061
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83062
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
|
83063
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83064
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$BVNxmY8PiLaRxwQJkypYtumwyvIlgvrEzQbTUAZb2TlhMqY8dnKwy"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00]]
|
83065
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83066
|
+
Redirected to http://test.host/users/login
|
83067
|
+
Completed 302 Found in 17ms (ActiveRecord: 0.8ms)
|
83068
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
83069
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
83070
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83071
|
+
--------------------------------------------------------------------------------------------
|
83072
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
83073
|
+
--------------------------------------------------------------------------------------------
|
83074
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
83075
|
+
Processing by Contour::RegistrationsController#create as HTML
|
83076
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
|
83077
|
+
Unpermitted parameters: status
|
83078
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83079
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
|
83080
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83081
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$7cSE.i.8rGIWCSua6Tpkx.st8kJIf8RcVOCUAOyx/pIXpME707MZS"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00]]
|
83082
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83083
|
+
Redirected to http://test.host/users/login
|
83084
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
83085
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
83086
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
83087
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83088
|
+
---------------------------------------------------------------------------------------------
|
83089
|
+
Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
|
83090
|
+
---------------------------------------------------------------------------------------------
|
83091
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
83092
|
+
Processing by Contour::RegistrationsController#create as HTML
|
83093
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
|
83094
|
+
SPAM BOT SIGNUP: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"password", "password_confirmation"=>"password", "spam"=>"http://buystuffhere.com"}, "controller"=>"contour/registrations", "action"=>"create"}
|
83095
|
+
Unpermitted parameters: spam
|
83096
|
+
Redirected to http://test.host/users/login
|
83097
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
|
83098
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
83099
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83100
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83101
|
+
----------------------------------------------------------------------
|
83102
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
83103
|
+
----------------------------------------------------------------------
|
83104
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83105
|
+
Processing by Contour::SessionsController#create as JSON
|
83106
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
83107
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
83108
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83109
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00]]
|
83110
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83111
|
+
Completed 200 OK in 77ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
83112
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
83113
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83114
|
+
----------------------------------------------------------------------------------------------------------
|
83115
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
83116
|
+
----------------------------------------------------------------------------------------------------------
|
83117
|
+
Processing by Contour::SessionsController#create as HTML
|
83118
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
83119
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1[0m
|
83120
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
|
83121
|
+
Redirected to http://test.host/auth/google_apps
|
83122
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
83123
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83124
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83125
|
+
----------------------------------------------------------------------------------------------
|
83126
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
83127
|
+
----------------------------------------------------------------------------------------------
|
83128
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
83129
|
+
Processing by Contour::SessionsController#create as HTML
|
83130
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
83131
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
83132
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
83133
|
+
Redirected to http://test.host/auth/ldap
|
83134
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
83135
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83136
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
83137
|
+
--------------------------------------------------------------------------
|
83138
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
83139
|
+
--------------------------------------------------------------------------
|
83140
|
+
Processing by Contour::SessionsController#create as HTML
|
83141
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
83142
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
|
83143
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''[0m
|
83144
|
+
Completed 401 Unauthorized in 3ms
|
83145
|
+
Processing by Contour::SessionsController#new as HTML
|
83146
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
83147
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
|
83148
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
|
83149
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
|
83150
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.0ms)
|
83151
|
+
Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.0ms)
|
83152
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83153
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83154
|
+
-----------------------------------------------------
|
83155
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
83156
|
+
-----------------------------------------------------
|
83157
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83158
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
83159
|
+
---------------------------------------------------------------------
|
83160
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
83161
|
+
---------------------------------------------------------------------
|
83162
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83163
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
83164
|
+
-----------------------
|
83165
|
+
ContourTest: test_truth
|
83166
|
+
-----------------------
|
83167
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83168
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83169
|
+
--------------------------------------------------------------------
|
83170
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
83171
|
+
--------------------------------------------------------------------
|
83172
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83173
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
83174
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
83175
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:51:59 -0400
|
83176
|
+
Processing by WelcomeController#logged_in_page as HTML
|
83177
|
+
Completed 401 Unauthorized in 19ms
|
83178
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83179
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
83180
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83181
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$25pEwc5VVa90FM92fNDyLeIPYHJFHTIVm4I34RA/1vuVwxQv/7oCm"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00]]
|
83182
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83183
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
83184
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
83185
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
83186
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
83187
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
83188
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
|
83189
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 12:51:59 -0400
|
83190
|
+
Processing by Contour::SessionsController#create as HTML
|
83191
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
83192
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
83193
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83194
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83195
|
+
Completed 401 Unauthorized in 6ms
|
83196
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 12:51:59 -0400
|
83197
|
+
Processing by Contour::SessionsController#new as HTML
|
83198
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
83199
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
83200
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (38.0ms)
|
83201
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (39.7ms)
|
83202
|
+
Completed 200 OK in 49ms (Views: 47.4ms | ActiveRecord: 0.0ms)
|
83203
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
83204
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83205
|
+
--------------------------------------------------------
|
83206
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
83207
|
+
--------------------------------------------------------
|
83208
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83209
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
83210
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
83211
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:51:59 -0400
|
83212
|
+
Processing by WelcomeController#logged_in_page as HTML
|
83213
|
+
Completed 401 Unauthorized in 1ms
|
83214
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83215
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
83216
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83217
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$mtqTAff9oli6ZTOVmEqilOOKIf2Z/ENrzD5kt6MldHQCQEHYYghHO"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00]]
|
83218
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83219
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
83220
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
83221
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
83222
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
83223
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
83224
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
83225
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 12:51:59 -0400
|
83226
|
+
Processing by Contour::SessionsController#create as HTML
|
83227
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
83228
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
83229
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83230
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116[0m [["last_sign_in_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 16:51: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", Tue, 03 Sep 2013 16:51:59 UTC +00:00]]
|
83231
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
83232
|
+
Redirected to http://www.example.com/logged_in_page
|
83233
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
83234
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:51:59 -0400
|
83235
|
+
Processing by WelcomeController#logged_in_page as HTML
|
83236
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1[0m
|
83237
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
83238
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
83239
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83240
|
+
--------------------------------------------------------------------
|
83241
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
83242
|
+
--------------------------------------------------------------------
|
83243
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83244
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
83245
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
83246
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 12:51:59 -0400
|
83247
|
+
Processing by WelcomeController#logged_in_page as HTML
|
83248
|
+
Completed 401 Unauthorized in 1ms
|
83249
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83250
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
83251
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83252
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$hgtRDSqoqstOF/fWqnMG4efKwMm2FenFfhcOZK9F/a80E0PbCDv82"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 03 Sep 2013 16:51:59 UTC +00:00]]
|
83253
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83254
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83255
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
83256
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
83257
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
83258
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116[0m
|
83259
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
83260
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 12:51:59 -0400
|
83261
|
+
Processing by Contour::SessionsController#create as HTML
|
83262
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
83263
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
83264
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83265
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83266
|
+
Completed 401 Unauthorized in 5ms
|
83267
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 12:51:59 -0400
|
83268
|
+
Processing by Contour::SessionsController#new as HTML
|
83269
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
83270
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
|
83271
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
|
83272
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.0ms)
|
83273
|
+
Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.0ms)
|
83274
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
83275
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83276
|
+
-------------------------------------------------------------
|
83277
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
83278
|
+
-------------------------------------------------------------
|
83279
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83280
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
83281
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
83282
|
+
Started GET "/" for 127.0.0.1 at 2013-09-03 12:51:59 -0400
|
83283
|
+
Processing by WelcomeController#index as HTML
|
83284
|
+
Completed 401 Unauthorized in 1ms
|
83285
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83286
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83287
|
+
-------------------------------------------------------------------------
|
83288
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
83289
|
+
-------------------------------------------------------------------------
|
83290
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
83291
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
83292
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
83293
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 12:51:59 -0400
|
83294
|
+
Processing by WelcomeController#logged_in_page as JSON
|
83295
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
83296
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83297
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 03 Sep 2013 16:52:00 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 16:52:00 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 16:52:00 UTC +00:00]]
|
83298
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83299
|
+
Completed 200 OK in 79ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
83300
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
83301
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83302
|
+
------------------------------------------------------------------------------------------------
|
83303
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
83304
|
+
------------------------------------------------------------------------------------------------
|
83305
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83306
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
83307
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
83308
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 12:52:00 -0400
|
83309
|
+
Processing by WelcomeController#logged_in_page as JSON
|
83310
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
83311
|
+
Completed 401 Unauthorized in 74ms
|
83312
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83313
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83314
|
+
------------------------------------
|
83315
|
+
UserTest: test_should_apply_omniauth
|
83316
|
+
------------------------------------
|
83317
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83318
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83319
|
+
[1m[35m (0.0ms)[0m begin transaction
|
83320
|
+
--------------------------------------
|
83321
|
+
UserTest: test_should_get_reverse_name
|
83322
|
+
--------------------------------------
|
83323
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
83324
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83325
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
83326
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
83327
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-09-03 17:02:36', '2013-09-03 17:02:36', 949717663, 201799169)[0m
|
83328
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-09-03 17:02:36', '2013-09-03 17:02:36', 876923740, 201799169)
|
83329
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-09-03 17:02:36', '2013-09-03 17:02:36', 864673665, 201799169)[0m
|
83330
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
83331
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 17:02:36', '2013-09-03 17:02:36', 201799169)[0m
|
83332
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 17:02:36', '2013-09-03 17:02:36', 999914115)
|
83333
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 17:02:36', '2013-09-03 17:02:36', 725306934)[0m
|
83334
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 17:02:36', '2013-09-03 17:02:36', 349534908)
|
83335
|
+
[1m[36m (36.2ms)[0m [1mcommit transaction[0m
|
83336
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83337
|
+
-------------------------------------------------
|
83338
|
+
AuthenticationTest: test_should_get_provider_name
|
83339
|
+
-------------------------------------------------
|
83340
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
83341
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83342
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83343
|
+
--------------------------------------------------------------------------------
|
83344
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
83345
|
+
--------------------------------------------------------------------------------
|
83346
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
83347
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83348
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83349
|
+
-------------------------------------------------------------------------
|
83350
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
83351
|
+
-------------------------------------------------------------------------
|
83352
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
83353
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
83354
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
83355
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
83356
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-09-03 17:02:36 UTC", "updated_at"=>"2013-09-03 17:02:36 UTC"}}
|
83357
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
83358
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
83359
|
+
Logged in user found, creating associated authentication.
|
83360
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83361
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 17:02:36 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 03 Sep 2013 17:02:36 UTC +00:00], ["user_id", 201799169]]
|
83362
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83363
|
+
Redirected to http://test.host/authentications
|
83364
|
+
Completed 302 Found in 20ms (ActiveRecord: 1.0ms)
|
83365
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
83366
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
83367
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83368
|
+
--------------------------------------------------------------------------
|
83369
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
83370
|
+
--------------------------------------------------------------------------
|
83371
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83372
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
83373
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
83374
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
83375
|
+
Parameters: {"id"=>"949717663"}
|
83376
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
83377
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
83378
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83379
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
83380
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83381
|
+
Redirected to http://test.host/authentications
|
83382
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
|
83383
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
83384
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
83385
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83386
|
+
-------------------------------------------------------------
|
83387
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
83388
|
+
-------------------------------------------------------------
|
83389
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
83390
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
83391
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
83392
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
83393
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
|
83394
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1[0m [["user_id", 201799169]]
|
83395
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
|
83396
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1[0m [["user_id", 201799169]]
|
83397
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
|
83398
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1[0m [["user_id", 201799169]]
|
83399
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["user_id", 201799169]]
|
83400
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_add_remove_table.html.erb (24.0ms)
|
83401
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_authentications.html.erb (25.5ms)
|
83402
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.2ms)
|
83403
|
+
Completed 200 OK in 102ms (Views: 100.8ms | ActiveRecord: 1.2ms)
|
83404
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83405
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83406
|
+
-----------------------------------------------------------------------------
|
83407
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
83408
|
+
-----------------------------------------------------------------------------
|
83409
|
+
Processing by Contour::PasswordsController#create as HTML
|
83410
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
83411
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
83412
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'gRyxFvhAPWPGUTVaZgxN' LIMIT 1
|
83413
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83414
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "gRyxFvhAPWPGUTVaZgxN"], ["reset_password_sent_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00], ["updated_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00]]
|
83415
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83416
|
+
|
83417
|
+
Sent mail to valid@example.com (12.5ms)
|
83418
|
+
Date: Tue, 03 Sep 2013 13:02:37 -0400
|
83419
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
83420
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
83421
|
+
To: valid@example.com
|
83422
|
+
Message-ID: <5226162d11e38_139033fe7b84606d860656@edge.partners.org.mail>
|
83423
|
+
Subject: Reset password instructions
|
83424
|
+
Mime-Version: 1.0
|
83425
|
+
Content-Type: text/html;
|
83426
|
+
charset=UTF-8
|
83427
|
+
Content-Transfer-Encoding: 7bit
|
83428
|
+
|
83429
|
+
<p>Hello valid@example.com!</p>
|
83430
|
+
|
83431
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
83432
|
+
|
83433
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=gRyxFvhAPWPGUTVaZgxN">Change my password</a></p>
|
83434
|
+
|
83435
|
+
<p>If you didn't request this, please ignore this email.</p>
|
83436
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
83437
|
+
|
83438
|
+
Redirected to http://test.host/users/login
|
83439
|
+
Completed 302 Found in 99ms (ActiveRecord: 0.9ms)
|
83440
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
83441
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83442
|
+
-----------------------------------------------------------------------------
|
83443
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
83444
|
+
-----------------------------------------------------------------------------
|
83445
|
+
Processing by Contour::PasswordsController#new as HTML
|
83446
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.4ms)
|
83447
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.4ms)
|
83448
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (6.0ms)
|
83449
|
+
Completed 200 OK in 21ms (Views: 20.2ms | ActiveRecord: 0.0ms)
|
83450
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83451
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83452
|
+
-------------------------------------------------------------------------------
|
83453
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
83454
|
+
-------------------------------------------------------------------------------
|
83455
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users"
|
83456
|
+
Processing by Contour::RegistrationsController#create as HTML
|
83457
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
|
83458
|
+
Unpermitted parameters: spam
|
83459
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83460
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
|
83461
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83462
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$u2P7U0G1BlirlBipkOpIaeEfXoIq3Reexk/LhYURikMLB5vM5Ruq."], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00]]
|
83463
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83464
|
+
Redirected to http://test.host/users/login
|
83465
|
+
Completed 302 Found in 21ms (ActiveRecord: 1.3ms)
|
83466
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
83467
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
83468
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83469
|
+
--------------------------------------------------------------------------------------------
|
83470
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
83471
|
+
--------------------------------------------------------------------------------------------
|
83472
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users"
|
83473
|
+
Processing by Contour::RegistrationsController#create as HTML
|
83474
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
|
83475
|
+
Unpermitted parameters: status
|
83476
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83477
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
|
83478
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83479
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$F2N9S.hTvVhn0.QkrAEPcehW66Pu7vgYn1e6zHTfZzQMhvaV2PvY6"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00]]
|
83480
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83481
|
+
Redirected to http://test.host/users/login
|
83482
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
83483
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
83484
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
83485
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83486
|
+
---------------------------------------------------------------------------------------------
|
83487
|
+
Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
|
83488
|
+
---------------------------------------------------------------------------------------------
|
83489
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
83490
|
+
Processing by Contour::RegistrationsController#create as HTML
|
83491
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
|
83492
|
+
SPAM BOT SIGNUP: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"password", "password_confirmation"=>"password", "spam"=>"http://buystuffhere.com"}, "controller"=>"contour/registrations", "action"=>"create"}
|
83493
|
+
Unpermitted parameters: spam
|
83494
|
+
Redirected to http://test.host/users/login
|
83495
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
|
83496
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
83497
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83498
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83499
|
+
----------------------------------------------------------------------
|
83500
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
83501
|
+
----------------------------------------------------------------------
|
83502
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83503
|
+
Processing by Contour::SessionsController#create as JSON
|
83504
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
83505
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
83506
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83507
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00]]
|
83508
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83509
|
+
Completed 200 OK in 80ms (Views: 0.3ms | ActiveRecord: 0.8ms)
|
83510
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
83511
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83512
|
+
----------------------------------------------------------------------------------------------------------
|
83513
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
83514
|
+
----------------------------------------------------------------------------------------------------------
|
83515
|
+
Processing by Contour::SessionsController#create as HTML
|
83516
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
83517
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1[0m
|
83518
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
|
83519
|
+
Redirected to http://test.host/auth/google_apps
|
83520
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
83521
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83522
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83523
|
+
----------------------------------------------------------------------------------------------
|
83524
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
83525
|
+
----------------------------------------------------------------------------------------------
|
83526
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
83527
|
+
Processing by Contour::SessionsController#create as HTML
|
83528
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
83529
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
83530
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
83531
|
+
Redirected to http://test.host/auth/ldap
|
83532
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
83533
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83534
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83535
|
+
--------------------------------------------------------------------------
|
83536
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
83537
|
+
--------------------------------------------------------------------------
|
83538
|
+
Processing by Contour::SessionsController#create as HTML
|
83539
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
83540
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
|
83541
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''[0m
|
83542
|
+
Completed 401 Unauthorized in 3ms
|
83543
|
+
Processing by Contour::SessionsController#new as HTML
|
83544
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
83545
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.8ms)
|
83546
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
|
83547
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
|
83548
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.3ms)
|
83549
|
+
Completed 200 OK in 21ms (Views: 19.5ms | ActiveRecord: 0.0ms)
|
83550
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83551
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83552
|
+
-----------------------------------------------------
|
83553
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
83554
|
+
-----------------------------------------------------
|
83555
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83556
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83557
|
+
---------------------------------------------------------------------
|
83558
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
83559
|
+
---------------------------------------------------------------------
|
83560
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83561
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83562
|
+
-----------------------
|
83563
|
+
ContourTest: test_truth
|
83564
|
+
-----------------------
|
83565
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83566
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83567
|
+
--------------------------------------------------------------------
|
83568
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
83569
|
+
--------------------------------------------------------------------
|
83570
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83571
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
83572
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
83573
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:02:37 -0400
|
83574
|
+
Processing by WelcomeController#logged_in_page as HTML
|
83575
|
+
Completed 401 Unauthorized in 18ms
|
83576
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83577
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
83578
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83579
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$JtEqbddVPC2Di0SN752uk.BUEyPCp.pAxStnV7vUSQFfb3PSMzdo6"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00]]
|
83580
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83581
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
83582
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
83583
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
83584
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83585
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
83586
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
|
83587
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 13:02:37 -0400
|
83588
|
+
Processing by Contour::SessionsController#create as HTML
|
83589
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
83590
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
83591
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83592
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83593
|
+
Completed 401 Unauthorized in 6ms
|
83594
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 13:02:37 -0400
|
83595
|
+
Processing by Contour::SessionsController#new as HTML
|
83596
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
83597
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
83598
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (37.8ms)
|
83599
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (39.5ms)
|
83600
|
+
Completed 200 OK in 49ms (Views: 47.2ms | ActiveRecord: 0.0ms)
|
83601
|
+
[1m[35m (56.6ms)[0m rollback transaction
|
83602
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
83603
|
+
--------------------------------------------------------
|
83604
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
83605
|
+
--------------------------------------------------------
|
83606
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83607
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
83608
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
83609
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:02:37 -0400
|
83610
|
+
Processing by WelcomeController#logged_in_page as HTML
|
83611
|
+
Completed 401 Unauthorized in 1ms
|
83612
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83613
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
83614
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83615
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$4HzShbKoaj1.aJsMF7zgt.I4.x4hZeFMeiyH8lHeObay8mWP5LCiK"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00]]
|
83616
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83617
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
83618
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
83619
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
83620
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
83621
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
83622
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
83623
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 13:02:37 -0400
|
83624
|
+
Processing by Contour::SessionsController#create as HTML
|
83625
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
83626
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
83627
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83628
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116[0m [["last_sign_in_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00]]
|
83629
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
83630
|
+
Redirected to http://www.example.com/logged_in_page
|
83631
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
83632
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:02:37 -0400
|
83633
|
+
Processing by WelcomeController#logged_in_page as HTML
|
83634
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1[0m
|
83635
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
83636
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
83637
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83638
|
+
--------------------------------------------------------------------
|
83639
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
83640
|
+
--------------------------------------------------------------------
|
83641
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83642
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
83643
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
83644
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:02:37 -0400
|
83645
|
+
Processing by WelcomeController#logged_in_page as HTML
|
83646
|
+
Completed 401 Unauthorized in 1ms
|
83647
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83648
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
83649
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83650
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$pFARjWt4PwVy35h0YDAGFuFHzMcDOB2QYzWyIulKwkSaMNoOFVqVu"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00]]
|
83651
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83652
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
83653
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
83654
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
83655
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
83656
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116[0m
|
83657
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
83658
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 13:02:37 -0400
|
83659
|
+
Processing by Contour::SessionsController#create as HTML
|
83660
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
83661
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
83662
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
83663
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83664
|
+
Completed 401 Unauthorized in 5ms
|
83665
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 13:02:37 -0400
|
83666
|
+
Processing by Contour::SessionsController#new as HTML
|
83667
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
83668
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
83669
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
|
83670
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.9ms)
|
83671
|
+
Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.0ms)
|
83672
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
83673
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83674
|
+
-------------------------------------------------------------
|
83675
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
83676
|
+
-------------------------------------------------------------
|
83677
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83678
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
83679
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
83680
|
+
Started GET "/" for 127.0.0.1 at 2013-09-03 13:02:37 -0400
|
83681
|
+
Processing by WelcomeController#index as HTML
|
83682
|
+
Completed 401 Unauthorized in 1ms
|
83683
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83684
|
+
[1m[35m (0.0ms)[0m begin transaction
|
83685
|
+
-------------------------------------------------------------------------
|
83686
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
83687
|
+
-------------------------------------------------------------------------
|
83688
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
83689
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
83690
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
83691
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 13:02:37 -0400
|
83692
|
+
Processing by WelcomeController#logged_in_page as JSON
|
83693
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
83694
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83695
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00]]
|
83696
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83697
|
+
Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
83698
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
83699
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83700
|
+
------------------------------------------------------------------------------------------------
|
83701
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
83702
|
+
------------------------------------------------------------------------------------------------
|
83703
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83704
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
83705
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
83706
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 13:02:37 -0400
|
83707
|
+
Processing by WelcomeController#logged_in_page as JSON
|
83708
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
83709
|
+
Completed 401 Unauthorized in 74ms
|
83710
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83711
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83712
|
+
------------------------------------
|
83713
|
+
UserTest: test_should_apply_omniauth
|
83714
|
+
------------------------------------
|
83715
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83716
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83717
|
+
[1m[35m (0.0ms)[0m begin transaction
|
83718
|
+
--------------------------------------
|
83719
|
+
UserTest: test_should_get_reverse_name
|
83720
|
+
--------------------------------------
|
83721
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
83722
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83723
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
83724
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
83725
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-09-03 17:03:17', '2013-09-03 17:03:17', 949717663, 201799169)[0m
|
83726
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-09-03 17:03:17', '2013-09-03 17:03:17', 876923740, 201799169)
|
83727
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-09-03 17:03:17', '2013-09-03 17:03:17', 864673665, 201799169)[0m
|
83728
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
83729
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 17:03:17', '2013-09-03 17:03:17', 201799169)[0m
|
83730
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 17:03:17', '2013-09-03 17:03:17', 999914115)
|
83731
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 17:03:17', '2013-09-03 17:03:17', 725306934)[0m
|
83732
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 17:03:17', '2013-09-03 17:03:17', 349534908)
|
83733
|
+
[1m[36m (3.4ms)[0m [1mcommit transaction[0m
|
83734
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83735
|
+
-------------------------------------------------
|
83736
|
+
AuthenticationTest: test_should_get_provider_name
|
83737
|
+
-------------------------------------------------
|
83738
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
83739
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83740
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83741
|
+
--------------------------------------------------------------------------------
|
83742
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
83743
|
+
--------------------------------------------------------------------------------
|
83744
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
83745
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83746
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83747
|
+
-------------------------------------------------------------------------
|
83748
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
83749
|
+
-------------------------------------------------------------------------
|
83750
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
83751
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
83752
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
83753
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
83754
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-09-03 17:03:17 UTC", "updated_at"=>"2013-09-03 17:03:17 UTC"}}
|
83755
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
83756
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
83757
|
+
Logged in user found, creating associated authentication.
|
83758
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83759
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 17:03:17 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 03 Sep 2013 17:03:17 UTC +00:00], ["user_id", 201799169]]
|
83760
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83761
|
+
Redirected to http://test.host/authentications
|
83762
|
+
Completed 302 Found in 18ms (ActiveRecord: 0.9ms)
|
83763
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
83764
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
83765
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83766
|
+
--------------------------------------------------------------------------
|
83767
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
83768
|
+
--------------------------------------------------------------------------
|
83769
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83770
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
83771
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
83772
|
+
Processing by Contour::AuthenticationsController#destroy as JS
|
83773
|
+
Parameters: {"id"=>"949717663"}
|
83774
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
83775
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
83776
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
83777
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
83778
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83779
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
|
83780
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1[0m [["user_id", 201799169]]
|
83781
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
|
83782
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1[0m [["user_id", 201799169]]
|
83783
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
|
83784
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1[0m [["user_id", 201799169]]
|
83785
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["user_id", 201799169]]
|
83786
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_add_remove_table.html.erb (16.5ms)
|
83787
|
+
Completed 200 OK in 72ms (Views: 67.0ms | ActiveRecord: 1.4ms)
|
83788
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
83789
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
83790
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83791
|
+
-------------------------------------------------------------
|
83792
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
83793
|
+
-------------------------------------------------------------
|
83794
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83795
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
83796
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
83797
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
|
83798
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1[0m [["user_id", 201799169]]
|
83799
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
|
83800
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1[0m [["user_id", 201799169]]
|
83801
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
|
83802
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1[0m [["user_id", 201799169]]
|
83803
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
|
83804
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1[0m [["user_id", 201799169]]
|
83805
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_add_remove_table.html.erb (7.8ms)
|
83806
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_authentications.html.erb (9.0ms)
|
83807
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.2ms)
|
83808
|
+
Completed 200 OK in 76ms (Views: 75.5ms | ActiveRecord: 0.5ms)
|
83809
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83810
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83811
|
+
-----------------------------------------------------------------------------
|
83812
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
83813
|
+
-----------------------------------------------------------------------------
|
83814
|
+
Processing by Contour::PasswordsController#create as HTML
|
83815
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
83816
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
83817
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'u6K7eRzEkp5ano3w7gzo' LIMIT 1[0m
|
83818
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
83819
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "u6K7eRzEkp5ano3w7gzo"], ["reset_password_sent_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00], ["updated_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00]]
|
83820
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
83821
|
+
|
83822
|
+
Sent mail to valid@example.com (12.0ms)
|
83823
|
+
Date: Tue, 03 Sep 2013 13:03:18 -0400
|
83824
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
83825
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
83826
|
+
To: valid@example.com
|
83827
|
+
Message-ID: <5226165630fef_1392e3fda188606dc386d8@edge.partners.org.mail>
|
83828
|
+
Subject: Reset password instructions
|
83829
|
+
Mime-Version: 1.0
|
83830
|
+
Content-Type: text/html;
|
83831
|
+
charset=UTF-8
|
83832
|
+
Content-Transfer-Encoding: 7bit
|
83833
|
+
|
83834
|
+
<p>Hello valid@example.com!</p>
|
83835
|
+
|
83836
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
83837
|
+
|
83838
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=u6K7eRzEkp5ano3w7gzo">Change my password</a></p>
|
83839
|
+
|
83840
|
+
<p>If you didn't request this, please ignore this email.</p>
|
83841
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
83842
|
+
|
83843
|
+
Redirected to http://test.host/users/login
|
83844
|
+
Completed 302 Found in 88ms (ActiveRecord: 0.8ms)
|
83845
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
83846
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83847
|
+
-----------------------------------------------------------------------------
|
83848
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
83849
|
+
-----------------------------------------------------------------------------
|
83850
|
+
Processing by Contour::PasswordsController#new as HTML
|
83851
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.4ms)
|
83852
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.7ms)
|
83853
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.1ms)
|
83854
|
+
Completed 200 OK in 18ms (Views: 16.8ms | ActiveRecord: 0.0ms)
|
83855
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83856
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83857
|
+
-------------------------------------------------------------------------------
|
83858
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
83859
|
+
-------------------------------------------------------------------------------
|
83860
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
83861
|
+
Processing by Contour::RegistrationsController#create as HTML
|
83862
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
|
83863
|
+
Unpermitted parameters: spam
|
83864
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83865
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
83866
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83867
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$VFAf8zs4WXDNo/D8lAxX8euP0.wpqhWAS5y7x59H3w6ZG7dVLGa5i"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00]]
|
83868
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83869
|
+
Redirected to http://test.host/users/login
|
83870
|
+
Completed 302 Found in 20ms (ActiveRecord: 0.9ms)
|
83871
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
83872
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
83873
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83874
|
+
--------------------------------------------------------------------------------------------
|
83875
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
83876
|
+
--------------------------------------------------------------------------------------------
|
83877
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
83878
|
+
Processing by Contour::RegistrationsController#create as HTML
|
83879
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
|
83880
|
+
Unpermitted parameters: status
|
83881
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83882
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
83883
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83884
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$k3h0nGmON.TX/lJwU8GSB.7gl4kx6lmcm1QIc9rGnBwVxLzZw7gwi"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00]]
|
83885
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83886
|
+
Redirected to http://test.host/users/login
|
83887
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
|
83888
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
83889
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
83890
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83891
|
+
---------------------------------------------------------------------------------------------
|
83892
|
+
Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
|
83893
|
+
---------------------------------------------------------------------------------------------
|
83894
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
83895
|
+
Processing by Contour::RegistrationsController#create as HTML
|
83896
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
|
83897
|
+
SPAM BOT SIGNUP: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"password", "password_confirmation"=>"password", "spam"=>"http://buystuffhere.com"}, "controller"=>"contour/registrations", "action"=>"create"}
|
83898
|
+
Unpermitted parameters: spam
|
83899
|
+
Redirected to http://test.host/users/login
|
83900
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
|
83901
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "users"
|
83902
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83903
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83904
|
+
----------------------------------------------------------------------
|
83905
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
83906
|
+
----------------------------------------------------------------------
|
83907
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
83908
|
+
Processing by Contour::SessionsController#create as JSON
|
83909
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
83910
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
83911
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83912
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00]]
|
83913
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83914
|
+
Completed 200 OK in 77ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
83915
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
83916
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83917
|
+
----------------------------------------------------------------------------------------------------------
|
83918
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
83919
|
+
----------------------------------------------------------------------------------------------------------
|
83920
|
+
Processing by Contour::SessionsController#create as HTML
|
83921
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
83922
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
|
83923
|
+
[1m[36m (0.2ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'[0m
|
83924
|
+
Redirected to http://test.host/auth/google_apps
|
83925
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
83926
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
83927
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
83928
|
+
----------------------------------------------------------------------------------------------
|
83929
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
83930
|
+
----------------------------------------------------------------------------------------------
|
83931
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
83932
|
+
Processing by Contour::SessionsController#create as HTML
|
83933
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
83934
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
83935
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
|
83936
|
+
Redirected to http://test.host/auth/ldap
|
83937
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
83938
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83939
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83940
|
+
--------------------------------------------------------------------------
|
83941
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
83942
|
+
--------------------------------------------------------------------------
|
83943
|
+
Processing by Contour::SessionsController#create as HTML
|
83944
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
83945
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
83946
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
|
83947
|
+
Completed 401 Unauthorized in 3ms
|
83948
|
+
Processing by Contour::SessionsController#new as HTML
|
83949
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
83950
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
|
83951
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
|
83952
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.6ms)
|
83953
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.2ms)
|
83954
|
+
Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.0ms)
|
83955
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83956
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83957
|
+
-----------------------------------------------------
|
83958
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
83959
|
+
-----------------------------------------------------
|
83960
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83961
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83962
|
+
---------------------------------------------------------------------
|
83963
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
83964
|
+
---------------------------------------------------------------------
|
83965
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83966
|
+
[1m[35m (0.1ms)[0m begin transaction
|
83967
|
+
-----------------------
|
83968
|
+
ContourTest: test_truth
|
83969
|
+
-----------------------
|
83970
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
83971
|
+
[1m[35m (0.0ms)[0m begin transaction
|
83972
|
+
--------------------------------------------------------------------
|
83973
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
83974
|
+
--------------------------------------------------------------------
|
83975
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
83976
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
83977
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
83978
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:03:18 -0400
|
83979
|
+
Processing by WelcomeController#logged_in_page as HTML
|
83980
|
+
Completed 401 Unauthorized in 19ms
|
83981
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83982
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
83983
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
83984
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$D7Pud2j8jvCk6q1U1fQS.OHtL0m9SlA53BcefHCQLtPIOwe4EBTmO"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00]]
|
83985
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83986
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
83987
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
83988
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
83989
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
83990
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
83991
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
83992
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 13:03:18 -0400
|
83993
|
+
Processing by Contour::SessionsController#create as HTML
|
83994
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
83995
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
83996
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
83997
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
83998
|
+
Completed 401 Unauthorized in 6ms
|
83999
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 13:03:18 -0400
|
84000
|
+
Processing by Contour::SessionsController#new as HTML
|
84001
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
|
84002
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
84003
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
|
84004
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.2ms)
|
84005
|
+
Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.0ms)
|
84006
|
+
[1m[36m (24.6ms)[0m [1mrollback transaction[0m
|
84007
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84008
|
+
--------------------------------------------------------
|
84009
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
84010
|
+
--------------------------------------------------------
|
84011
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84012
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84013
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84014
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:03:18 -0400
|
84015
|
+
Processing by WelcomeController#logged_in_page as HTML
|
84016
|
+
Completed 401 Unauthorized in 1ms
|
84017
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84018
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
84019
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
84020
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$tpmLd2.TKqC45EQLov3XIOvuQcFU9u06POMy64R/oa8mTCXI4zySO"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00]]
|
84021
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84022
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
84023
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
84024
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
84025
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84026
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
84027
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
84028
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 13:03:18 -0400
|
84029
|
+
Processing by Contour::SessionsController#create as HTML
|
84030
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
84031
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
84032
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
84033
|
+
[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" = 999914116 [["last_sign_in_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00]]
|
84034
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84035
|
+
Redirected to http://www.example.com/logged_in_page
|
84036
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
84037
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:03:18 -0400
|
84038
|
+
Processing by WelcomeController#logged_in_page as HTML
|
84039
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
|
84040
|
+
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
84041
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
84042
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84043
|
+
--------------------------------------------------------------------
|
84044
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
84045
|
+
--------------------------------------------------------------------
|
84046
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84047
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84048
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84049
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:03:18 -0400
|
84050
|
+
Processing by WelcomeController#logged_in_page as HTML
|
84051
|
+
Completed 401 Unauthorized in 1ms
|
84052
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84053
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
84054
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
84055
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$FdssjDRoAYnrwYuBFGnAkeO8rzGvaNPo4PJtr7ogByQpvXpJSnzNa"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00]]
|
84056
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84057
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
84058
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
84059
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
84060
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84061
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
84062
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
84063
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 13:03:18 -0400
|
84064
|
+
Processing by Contour::SessionsController#create as HTML
|
84065
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
84066
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
84067
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
84068
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
84069
|
+
Completed 401 Unauthorized in 5ms
|
84070
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 13:03:18 -0400
|
84071
|
+
Processing by Contour::SessionsController#new as HTML
|
84072
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
84073
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
|
84074
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
|
84075
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.9ms)
|
84076
|
+
Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.0ms)
|
84077
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
84078
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84079
|
+
-------------------------------------------------------------
|
84080
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
84081
|
+
-------------------------------------------------------------
|
84082
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84083
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84084
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84085
|
+
Started GET "/" for 127.0.0.1 at 2013-09-03 13:03:18 -0400
|
84086
|
+
Processing by WelcomeController#index as HTML
|
84087
|
+
Completed 401 Unauthorized in 1ms
|
84088
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84089
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84090
|
+
-------------------------------------------------------------------------
|
84091
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
84092
|
+
-------------------------------------------------------------------------
|
84093
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
84094
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
84095
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
84096
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 13:03:18 -0400
|
84097
|
+
Processing by WelcomeController#logged_in_page as JSON
|
84098
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
84099
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84100
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00]]
|
84101
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
84102
|
+
Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
84103
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
84104
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84105
|
+
------------------------------------------------------------------------------------------------
|
84106
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
84107
|
+
------------------------------------------------------------------------------------------------
|
84108
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84109
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84110
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84111
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 13:03:18 -0400
|
84112
|
+
Processing by WelcomeController#logged_in_page as JSON
|
84113
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
84114
|
+
Completed 401 Unauthorized in 76ms
|
84115
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84116
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84117
|
+
------------------------------------
|
84118
|
+
UserTest: test_should_apply_omniauth
|
84119
|
+
------------------------------------
|
84120
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84121
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84122
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84123
|
+
--------------------------------------
|
84124
|
+
UserTest: test_should_get_reverse_name
|
84125
|
+
--------------------------------------
|
84126
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
84127
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
84128
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
84129
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
84130
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-09-03 17:08:35', '2013-09-03 17:08:35', 949717663, 201799169)[0m
|
84131
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-09-03 17:08:35', '2013-09-03 17:08:35', 876923740, 201799169)
|
84132
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-09-03 17:08:35', '2013-09-03 17:08:35', 864673665, 201799169)[0m
|
84133
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
84134
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 17:08:35', '2013-09-03 17:08:35', 201799169)[0m
|
84135
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 17:08:35', '2013-09-03 17:08:35', 999914115)
|
84136
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 17:08:35', '2013-09-03 17:08:35', 725306934)[0m
|
84137
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 17:08:35', '2013-09-03 17:08:35', 349534908)
|
84138
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
84139
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84140
|
+
-------------------------------------------------
|
84141
|
+
AuthenticationTest: test_should_get_provider_name
|
84142
|
+
-------------------------------------------------
|
84143
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
84144
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84145
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84146
|
+
--------------------------------------------------------------------------------
|
84147
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
84148
|
+
--------------------------------------------------------------------------------
|
84149
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
84150
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84151
|
+
[1m[35m (0.0ms)[0m begin transaction
|
84152
|
+
-------------------------------------------------------------------------
|
84153
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
84154
|
+
-------------------------------------------------------------------------
|
84155
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84156
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
84157
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
84158
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
84159
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-09-03 17:08:35 UTC", "updated_at"=>"2013-09-03 17:08:35 UTC"}}
|
84160
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
84161
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
84162
|
+
Logged in user found, creating associated authentication.
|
84163
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84164
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 17:08:35 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 03 Sep 2013 17:08:35 UTC +00:00], ["user_id", 201799169]]
|
84165
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
84166
|
+
Redirected to http://test.host/authentications
|
84167
|
+
Completed 302 Found in 22ms (ActiveRecord: 1.0ms)
|
84168
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
84169
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
84170
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84171
|
+
--------------------------------------------------------------------------
|
84172
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
84173
|
+
--------------------------------------------------------------------------
|
84174
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
84175
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
84176
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
84177
|
+
Processing by Contour::AuthenticationsController#destroy as JS
|
84178
|
+
Parameters: {"id"=>"949717663"}
|
84179
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
84180
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
84181
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
84182
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
84183
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84184
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
|
84185
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1[0m [["user_id", 201799169]]
|
84186
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
|
84187
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1[0m [["user_id", 201799169]]
|
84188
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
|
84189
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1[0m [["user_id", 201799169]]
|
84190
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["user_id", 201799169]]
|
84191
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_add_remove_table.html.erb (16.8ms)
|
84192
|
+
Completed 200 OK in 75ms (Views: 70.4ms | ActiveRecord: 1.5ms)
|
84193
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
84194
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
84195
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84196
|
+
-------------------------------------------------------------
|
84197
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
84198
|
+
-------------------------------------------------------------
|
84199
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
84200
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
84201
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
84202
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
|
84203
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1[0m [["user_id", 201799169]]
|
84204
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
|
84205
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1[0m [["user_id", 201799169]]
|
84206
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
|
84207
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1[0m [["user_id", 201799169]]
|
84208
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
|
84209
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1[0m [["user_id", 201799169]]
|
84210
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_add_remove_table.html.erb (7.6ms)
|
84211
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_authentications.html.erb (8.8ms)
|
84212
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.3ms)
|
84213
|
+
Completed 200 OK in 98ms (Views: 96.8ms | ActiveRecord: 0.5ms)
|
84214
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84215
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84216
|
+
-----------------------------------------------------------------------------
|
84217
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
84218
|
+
-----------------------------------------------------------------------------
|
84219
|
+
Processing by Contour::PasswordsController#create as HTML
|
84220
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
84221
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
84222
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'ueyH1PsTmyHHDVGUxk6U' LIMIT 1[0m
|
84223
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
84224
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "ueyH1PsTmyHHDVGUxk6U"], ["reset_password_sent_at", Tue, 03 Sep 2013 17:08:35 UTC +00:00], ["updated_at", Tue, 03 Sep 2013 17:08:35 UTC +00:00]]
|
84225
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
84226
|
+
|
84227
|
+
Sent mail to valid@example.com (14.5ms)
|
84228
|
+
Date: Tue, 03 Sep 2013 13:08:35 -0400
|
84229
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
84230
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
84231
|
+
To: valid@example.com
|
84232
|
+
Message-ID: <52261793d6f15_13a9c3fd2f60606cc290d0@edge.partners.org.mail>
|
84233
|
+
Subject: Reset password instructions
|
84234
|
+
Mime-Version: 1.0
|
84235
|
+
Content-Type: text/html;
|
84236
|
+
charset=UTF-8
|
84237
|
+
Content-Transfer-Encoding: 7bit
|
84238
|
+
|
84239
|
+
<p>Hello valid@example.com!</p>
|
84240
|
+
|
84241
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
84242
|
+
|
84243
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=ueyH1PsTmyHHDVGUxk6U">Change my password</a></p>
|
84244
|
+
|
84245
|
+
<p>If you didn't request this, please ignore this email.</p>
|
84246
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
84247
|
+
|
84248
|
+
Redirected to http://test.host/users/login
|
84249
|
+
Completed 302 Found in 96ms (ActiveRecord: 0.9ms)
|
84250
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
84251
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84252
|
+
-----------------------------------------------------------------------------
|
84253
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
84254
|
+
-----------------------------------------------------------------------------
|
84255
|
+
Processing by Contour::PasswordsController#new as HTML
|
84256
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.4ms)
|
84257
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.9ms)
|
84258
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.2ms)
|
84259
|
+
Completed 200 OK in 18ms (Views: 17.2ms | ActiveRecord: 0.0ms)
|
84260
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84261
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84262
|
+
-------------------------------------------------------------------------------
|
84263
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
84264
|
+
-------------------------------------------------------------------------------
|
84265
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
84266
|
+
Processing by Contour::RegistrationsController#create as HTML
|
84267
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
|
84268
|
+
Unpermitted parameters: spam
|
84269
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84270
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
84271
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
84272
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:08:35 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$KEbth/xLyi0jVRB1RWIp/eBJaNGcAPX6vhdTLoLdqZDz5seO/O2ZW"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 17:08:35 UTC +00:00]]
|
84273
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84274
|
+
Redirected to http://test.host/users/login
|
84275
|
+
Completed 302 Found in 18ms (ActiveRecord: 0.8ms)
|
84276
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
84277
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
84278
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84279
|
+
--------------------------------------------------------------------------------------------
|
84280
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
84281
|
+
--------------------------------------------------------------------------------------------
|
84282
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
84283
|
+
Processing by Contour::RegistrationsController#create as HTML
|
84284
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
|
84285
|
+
Unpermitted parameters: status
|
84286
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84287
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
84288
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
84289
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:08:35 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$CZrbKUbQWGTX3BWyV1RABOlrDwpbqA/.HChSH/IZCkrVmD958OVii"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 17:08:35 UTC +00:00]]
|
84290
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84291
|
+
Redirected to http://test.host/users/login
|
84292
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
84293
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
84294
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
84295
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84296
|
+
---------------------------------------------------------------------------------------------
|
84297
|
+
Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
|
84298
|
+
---------------------------------------------------------------------------------------------
|
84299
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
84300
|
+
Processing by Contour::RegistrationsController#create as HTML
|
84301
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
|
84302
|
+
SPAM BOT SIGNUP: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"password", "password_confirmation"=>"password", "spam"=>"http://buystuffhere.com"}, "controller"=>"contour/registrations", "action"=>"create"}
|
84303
|
+
Unpermitted parameters: spam
|
84304
|
+
Redirected to http://test.host/users/login
|
84305
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
|
84306
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
84307
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84308
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84309
|
+
----------------------------------------------------------------------
|
84310
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
84311
|
+
----------------------------------------------------------------------
|
84312
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84313
|
+
Processing by Contour::SessionsController#create as JSON
|
84314
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
84315
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
84316
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
84317
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00]]
|
84318
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84319
|
+
Completed 200 OK in 78ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
84320
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
84321
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84322
|
+
----------------------------------------------------------------------------------------------------------
|
84323
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
84324
|
+
----------------------------------------------------------------------------------------------------------
|
84325
|
+
Processing by Contour::SessionsController#create as HTML
|
84326
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
84327
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
|
84328
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'[0m
|
84329
|
+
Redirected to http://test.host/auth/google_apps
|
84330
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
84331
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84332
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
84333
|
+
----------------------------------------------------------------------------------------------
|
84334
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
84335
|
+
----------------------------------------------------------------------------------------------
|
84336
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
84337
|
+
Processing by Contour::SessionsController#create as HTML
|
84338
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
84339
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
84340
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
|
84341
|
+
Redirected to http://test.host/auth/ldap
|
84342
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
84343
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84344
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84345
|
+
--------------------------------------------------------------------------
|
84346
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
84347
|
+
--------------------------------------------------------------------------
|
84348
|
+
Processing by Contour::SessionsController#create as HTML
|
84349
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
84350
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
84351
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
|
84352
|
+
Completed 401 Unauthorized in 3ms
|
84353
|
+
Processing by Contour::SessionsController#new as HTML
|
84354
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
84355
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
|
84356
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
|
84357
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.3ms)
|
84358
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.2ms)
|
84359
|
+
Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.0ms)
|
84360
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84361
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84362
|
+
-----------------------------------------------------
|
84363
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
84364
|
+
-----------------------------------------------------
|
84365
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84366
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84367
|
+
---------------------------------------------------------------------
|
84368
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
84369
|
+
---------------------------------------------------------------------
|
84370
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84371
|
+
[1m[35m (0.0ms)[0m begin transaction
|
84372
|
+
-----------------------
|
84373
|
+
ContourTest: test_truth
|
84374
|
+
-----------------------
|
84375
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84376
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84377
|
+
--------------------------------------------------------------------
|
84378
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
84379
|
+
--------------------------------------------------------------------
|
84380
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84381
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84382
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84383
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:08:36 -0400
|
84384
|
+
Processing by WelcomeController#logged_in_page as HTML
|
84385
|
+
Completed 401 Unauthorized in 19ms
|
84386
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84387
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
84388
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
84389
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$XB2gJRUg2CPOcxzSUM4WLOHTY/.5Mu89dXqWTnMtYNH8sVtketceO"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00]]
|
84390
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84391
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
84392
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
84393
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
84394
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84395
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
84396
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
84397
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 13:08:36 -0400
|
84398
|
+
Processing by Contour::SessionsController#create as HTML
|
84399
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
84400
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
84401
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
84402
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
84403
|
+
Completed 401 Unauthorized in 6ms
|
84404
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 13:08:36 -0400
|
84405
|
+
Processing by Contour::SessionsController#new as HTML
|
84406
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
|
84407
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
84408
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
|
84409
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.2ms)
|
84410
|
+
Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.0ms)
|
84411
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
84412
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84413
|
+
--------------------------------------------------------
|
84414
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
84415
|
+
--------------------------------------------------------
|
84416
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84417
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84418
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84419
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:08:36 -0400
|
84420
|
+
Processing by WelcomeController#logged_in_page as HTML
|
84421
|
+
Completed 401 Unauthorized in 1ms
|
84422
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84423
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
84424
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
84425
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$0wrT.i4O4PgkRmh5QcS43eP9I/wY06VxCp8vCnbj1ENqMqWQeJYES"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00]]
|
84426
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84427
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
84428
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
84429
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
84430
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84431
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
84432
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
84433
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 13:08:36 -0400
|
84434
|
+
Processing by Contour::SessionsController#create as HTML
|
84435
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
84436
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
84437
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
84438
|
+
[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" = 999914116 [["last_sign_in_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00]]
|
84439
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84440
|
+
Redirected to http://www.example.com/logged_in_page
|
84441
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
84442
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:08:36 -0400
|
84443
|
+
Processing by WelcomeController#logged_in_page as HTML
|
84444
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
|
84445
|
+
Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.1ms)
|
84446
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
84447
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84448
|
+
--------------------------------------------------------------------
|
84449
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
84450
|
+
--------------------------------------------------------------------
|
84451
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84452
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84453
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84454
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:08:36 -0400
|
84455
|
+
Processing by WelcomeController#logged_in_page as HTML
|
84456
|
+
Completed 401 Unauthorized in 1ms
|
84457
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84458
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
84459
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
84460
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$bxJIobs6FTXYjAAOuyfv0uwv3D05kt5dCMJRyKVFkYbdLs6Wt360."], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00]]
|
84461
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84462
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
84463
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
84464
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
84465
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84466
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
84467
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
84468
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 13:08:36 -0400
|
84469
|
+
Processing by Contour::SessionsController#create as HTML
|
84470
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
84471
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
84472
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
84473
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
84474
|
+
Completed 401 Unauthorized in 5ms
|
84475
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 13:08:36 -0400
|
84476
|
+
Processing by Contour::SessionsController#new as HTML
|
84477
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
84478
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
|
84479
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
|
84480
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.9ms)
|
84481
|
+
Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.0ms)
|
84482
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
84483
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84484
|
+
-------------------------------------------------------------
|
84485
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
84486
|
+
-------------------------------------------------------------
|
84487
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84488
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84489
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84490
|
+
Started GET "/" for 127.0.0.1 at 2013-09-03 13:08:36 -0400
|
84491
|
+
Processing by WelcomeController#index as HTML
|
84492
|
+
Completed 401 Unauthorized in 1ms
|
84493
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84494
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
84495
|
+
-------------------------------------------------------------------------
|
84496
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
84497
|
+
-------------------------------------------------------------------------
|
84498
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
84499
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
84500
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
84501
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 13:08:36 -0400
|
84502
|
+
Processing by WelcomeController#logged_in_page as JSON
|
84503
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
84504
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84505
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00]]
|
84506
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
84507
|
+
Completed 200 OK in 78ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
84508
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
84509
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84510
|
+
------------------------------------------------------------------------------------------------
|
84511
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
84512
|
+
------------------------------------------------------------------------------------------------
|
84513
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84514
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84515
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84516
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 13:08:36 -0400
|
84517
|
+
Processing by WelcomeController#logged_in_page as JSON
|
84518
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
84519
|
+
Completed 401 Unauthorized in 75ms
|
84520
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84521
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84522
|
+
------------------------------------
|
84523
|
+
UserTest: test_should_apply_omniauth
|
84524
|
+
------------------------------------
|
84525
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84526
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84527
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84528
|
+
--------------------------------------
|
84529
|
+
UserTest: test_should_get_reverse_name
|
84530
|
+
--------------------------------------
|
84531
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
84532
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84533
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
84534
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "authentications"
|
84535
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-09-03 17:19:11', '2013-09-03 17:19:11', 949717663, 201799169)[0m
|
84536
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-09-03 17:19:11', '2013-09-03 17:19:11', 876923740, 201799169)
|
84537
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-09-03 17:19:11', '2013-09-03 17:19:11', 864673665, 201799169)[0m
|
84538
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
84539
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 17:19:11', '2013-09-03 17:19:11', 201799169)[0m
|
84540
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-09-03 17:19:11', '2013-09-03 17:19:11', 999914115)
|
84541
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 17:19:11', '2013-09-03 17:19:11', 725306934)[0m
|
84542
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-09-03 17:19:11', '2013-09-03 17:19:11', 349534908)
|
84543
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
84544
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84545
|
+
-------------------------------------------------
|
84546
|
+
AuthenticationTest: test_should_get_provider_name
|
84547
|
+
-------------------------------------------------
|
84548
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
84549
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84550
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84551
|
+
--------------------------------------------------------------------------------
|
84552
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
84553
|
+
--------------------------------------------------------------------------------
|
84554
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
84555
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84556
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84557
|
+
-------------------------------------------------------------------------
|
84558
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
84559
|
+
-------------------------------------------------------------------------
|
84560
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84561
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
84562
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
84563
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
84564
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-09-03 17:19:11 UTC", "updated_at"=>"2013-09-03 17:19:11 UTC"}}
|
84565
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
84566
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
84567
|
+
Logged in user found, creating associated authentication.
|
84568
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84569
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Sep 2013 17:19:11 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 03 Sep 2013 17:19:11 UTC +00:00], ["user_id", 201799169]]
|
84570
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
84571
|
+
Redirected to http://test.host/authentications
|
84572
|
+
Completed 302 Found in 19ms (ActiveRecord: 0.9ms)
|
84573
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
84574
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
84575
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84576
|
+
--------------------------------------------------------------------------
|
84577
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
84578
|
+
--------------------------------------------------------------------------
|
84579
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
84580
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
84581
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
84582
|
+
Processing by Contour::AuthenticationsController#destroy as JS
|
84583
|
+
Parameters: {"id"=>"949717663"}
|
84584
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
84585
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
84586
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
84587
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
84588
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84589
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
|
84590
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1[0m [["user_id", 201799169]]
|
84591
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
|
84592
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1[0m [["user_id", 201799169]]
|
84593
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
|
84594
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1[0m [["user_id", 201799169]]
|
84595
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["user_id", 201799169]]
|
84596
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_add_remove_table.html.erb (17.2ms)
|
84597
|
+
Completed 200 OK in 76ms (Views: 70.6ms | ActiveRecord: 1.7ms)
|
84598
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
84599
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
84600
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84601
|
+
-------------------------------------------------------------
|
84602
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
84603
|
+
-------------------------------------------------------------
|
84604
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
84605
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
84606
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
84607
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
|
84608
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1[0m [["user_id", 201799169]]
|
84609
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
|
84610
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1[0m [["user_id", 201799169]]
|
84611
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
|
84612
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1[0m [["user_id", 201799169]]
|
84613
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
|
84614
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1[0m [["user_id", 201799169]]
|
84615
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_add_remove_table.html.erb (7.6ms)
|
84616
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_authentications.html.erb (9.0ms)
|
84617
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
|
84618
|
+
Completed 200 OK in 80ms (Views: 79.5ms | ActiveRecord: 0.5ms)
|
84619
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84620
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84621
|
+
-----------------------------------------------------------------------------
|
84622
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
84623
|
+
-----------------------------------------------------------------------------
|
84624
|
+
Processing by Contour::PasswordsController#create as HTML
|
84625
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
84626
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
84627
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'VavbVi9Jn1SvqYBnTubn' LIMIT 1[0m
|
84628
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84629
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "VavbVi9Jn1SvqYBnTubn"], ["reset_password_sent_at", Tue, 03 Sep 2013 17:19:11 UTC +00:00], ["updated_at", Tue, 03 Sep 2013 17:19:11 UTC +00:00]]
|
84630
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
84631
|
+
|
84632
|
+
Sent mail to valid@example.com (12.2ms)
|
84633
|
+
Date: Tue, 03 Sep 2013 13:19:11 -0400
|
84634
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
84635
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
84636
|
+
To: valid@example.com
|
84637
|
+
Message-ID: <52261a0fab0a5_13cb53fc1520606dc564c1@edge.partners.org.mail>
|
84638
|
+
Subject: Reset password instructions
|
84639
|
+
Mime-Version: 1.0
|
84640
|
+
Content-Type: text/html;
|
84641
|
+
charset=UTF-8
|
84642
|
+
Content-Transfer-Encoding: 7bit
|
84643
|
+
|
84644
|
+
<p>Hello valid@example.com!</p>
|
84645
|
+
|
84646
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
84647
|
+
|
84648
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=VavbVi9Jn1SvqYBnTubn">Change my password</a></p>
|
84649
|
+
|
84650
|
+
<p>If you didn't request this, please ignore this email.</p>
|
84651
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
84652
|
+
|
84653
|
+
Redirected to http://test.host/users/login
|
84654
|
+
Completed 302 Found in 91ms (ActiveRecord: 0.9ms)
|
84655
|
+
[1m[36m (45.5ms)[0m [1mrollback transaction[0m
|
84656
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84657
|
+
-----------------------------------------------------------------------------
|
84658
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
84659
|
+
-----------------------------------------------------------------------------
|
84660
|
+
Processing by Contour::PasswordsController#new as HTML
|
84661
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
|
84662
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.4ms)
|
84663
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.1ms)
|
84664
|
+
Completed 200 OK in 20ms (Views: 19.3ms | ActiveRecord: 0.0ms)
|
84665
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84666
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84667
|
+
-------------------------------------------------------------------------------
|
84668
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
84669
|
+
-------------------------------------------------------------------------------
|
84670
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
84671
|
+
Processing by Contour::RegistrationsController#create as HTML
|
84672
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
|
84673
|
+
Unpermitted parameters: spam
|
84674
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84675
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
84676
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
84677
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:19:11 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$y4d6P.lgkh9SEPa3DGTcIuiXphtjO8oA7AbPGmFoR4QxHnsLVTZEq"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 17:19:11 UTC +00:00]]
|
84678
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84679
|
+
Redirected to http://test.host/users/login
|
84680
|
+
Completed 302 Found in 19ms (ActiveRecord: 0.8ms)
|
84681
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
84682
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
84683
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84684
|
+
--------------------------------------------------------------------------------------------
|
84685
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
84686
|
+
--------------------------------------------------------------------------------------------
|
84687
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
84688
|
+
Processing by Contour::RegistrationsController#create as HTML
|
84689
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
|
84690
|
+
Unpermitted parameters: status
|
84691
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84692
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
84693
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
84694
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:19:11 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$X2P5b5BlAEmEeDOJlm/bxel778QChDi1NeJMc1harEW1/CBtyNdyi"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 03 Sep 2013 17:19:11 UTC +00:00]]
|
84695
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84696
|
+
Redirected to http://test.host/users/login
|
84697
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
84698
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
84699
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
84700
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84701
|
+
---------------------------------------------------------------------------------------------
|
84702
|
+
Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
|
84703
|
+
---------------------------------------------------------------------------------------------
|
84704
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
84705
|
+
Processing by Contour::RegistrationsController#create as HTML
|
84706
|
+
Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
|
84707
|
+
SPAM BOT SIGNUP: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"password", "password_confirmation"=>"password", "spam"=>"http://buystuffhere.com"}, "controller"=>"contour/registrations", "action"=>"create"}
|
84708
|
+
Unpermitted parameters: spam
|
84709
|
+
Redirected to http://test.host/users/login
|
84710
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
|
84711
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
84712
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84713
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84714
|
+
----------------------------------------------------------------------
|
84715
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
84716
|
+
----------------------------------------------------------------------
|
84717
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84718
|
+
Processing by Contour::SessionsController#create as JSON
|
84719
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
84720
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
84721
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
84722
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00]]
|
84723
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84724
|
+
Completed 200 OK in 78ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
84725
|
+
[1m[35m (21.2ms)[0m rollback transaction
|
84726
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84727
|
+
----------------------------------------------------------------------------------------------------------
|
84728
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
84729
|
+
----------------------------------------------------------------------------------------------------------
|
84730
|
+
Processing by Contour::SessionsController#create as HTML
|
84731
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
84732
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
|
84733
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'[0m
|
84734
|
+
Redirected to http://test.host/auth/google_apps
|
84735
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
84736
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84737
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84738
|
+
----------------------------------------------------------------------------------------------
|
84739
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
84740
|
+
----------------------------------------------------------------------------------------------
|
84741
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
84742
|
+
Processing by Contour::SessionsController#create as HTML
|
84743
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
84744
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
84745
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
|
84746
|
+
Redirected to http://test.host/auth/ldap
|
84747
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
84748
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84749
|
+
[1m[35m (0.0ms)[0m begin transaction
|
84750
|
+
--------------------------------------------------------------------------
|
84751
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
84752
|
+
--------------------------------------------------------------------------
|
84753
|
+
Processing by Contour::SessionsController#create as HTML
|
84754
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
84755
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
84756
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
|
84757
|
+
Completed 401 Unauthorized in 3ms
|
84758
|
+
Processing by Contour::SessionsController#new as HTML
|
84759
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
84760
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
|
84761
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.0ms)
|
84762
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
|
84763
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.9ms)
|
84764
|
+
Completed 200 OK in 22ms (Views: 19.7ms | ActiveRecord: 0.0ms)
|
84765
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84766
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84767
|
+
-----------------------------------------------------
|
84768
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
84769
|
+
-----------------------------------------------------
|
84770
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84771
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84772
|
+
---------------------------------------------------------------------
|
84773
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
84774
|
+
---------------------------------------------------------------------
|
84775
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84776
|
+
[1m[35m (0.0ms)[0m begin transaction
|
84777
|
+
-----------------------
|
84778
|
+
ContourTest: test_truth
|
84779
|
+
-----------------------
|
84780
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84781
|
+
[1m[35m (0.0ms)[0m begin transaction
|
84782
|
+
--------------------------------------------------------------------
|
84783
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
84784
|
+
--------------------------------------------------------------------
|
84785
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84786
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84787
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84788
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:19:12 -0400
|
84789
|
+
Processing by WelcomeController#logged_in_page as HTML
|
84790
|
+
Completed 401 Unauthorized in 21ms
|
84791
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84792
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
84793
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
84794
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$uXpVwaMngE1bWCLTkadGKuIoeooOlak4sV7BKYqEgh9xTl91f/CxW"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00]]
|
84795
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84796
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84797
|
+
[1m[36mAuthentication Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
84798
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
84799
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84800
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
84801
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
84802
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 13:19:12 -0400
|
84803
|
+
Processing by Contour::SessionsController#create as HTML
|
84804
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
84805
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
84806
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
84807
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
84808
|
+
Completed 401 Unauthorized in 6ms
|
84809
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 13:19:12 -0400
|
84810
|
+
Processing by Contour::SessionsController#new as HTML
|
84811
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
84812
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
84813
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
|
84814
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (41.3ms)
|
84815
|
+
Completed 200 OK in 51ms (Views: 49.3ms | ActiveRecord: 0.0ms)
|
84816
|
+
[1m[36m (35.9ms)[0m [1mrollback transaction[0m
|
84817
|
+
[1m[35m (0.2ms)[0m begin transaction
|
84818
|
+
--------------------------------------------------------
|
84819
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
84820
|
+
--------------------------------------------------------
|
84821
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84822
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84823
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84824
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:19:12 -0400
|
84825
|
+
Processing by WelcomeController#logged_in_page as HTML
|
84826
|
+
Completed 401 Unauthorized in 1ms
|
84827
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84828
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
84829
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
84830
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$9SQT2TuVWv20og7It7wHx.Nww008et9vPOC3VKmgQwdF765bE9QPu"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00]]
|
84831
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84832
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84833
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
84834
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
84835
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84836
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
84837
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
84838
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 13:19:12 -0400
|
84839
|
+
Processing by Contour::SessionsController#create as HTML
|
84840
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
84841
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
84842
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
84843
|
+
[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" = 999914116 [["last_sign_in_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00]]
|
84844
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84845
|
+
Redirected to http://www.example.com/logged_in_page
|
84846
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
84847
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:19:12 -0400
|
84848
|
+
Processing by WelcomeController#logged_in_page as HTML
|
84849
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
|
84850
|
+
Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
84851
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
84852
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84853
|
+
--------------------------------------------------------------------
|
84854
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
84855
|
+
--------------------------------------------------------------------
|
84856
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84857
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84858
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84859
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-03 13:19:12 -0400
|
84860
|
+
Processing by WelcomeController#logged_in_page as HTML
|
84861
|
+
Completed 401 Unauthorized in 1ms
|
84862
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84863
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
84864
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
84865
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$hdX1BwMdf79gePSt89wBFe6EDtyurYTff4exAAOanS7K7vezRNYOC"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00]]
|
84866
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84867
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
84868
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
84869
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
84870
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
84871
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
84872
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
84873
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-09-03 13:19:12 -0400
|
84874
|
+
Processing by Contour::SessionsController#create as HTML
|
84875
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
84876
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
84877
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
84878
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
84879
|
+
Completed 401 Unauthorized in 5ms
|
84880
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-09-03 13:19:12 -0400
|
84881
|
+
Processing by Contour::SessionsController#new as HTML
|
84882
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
|
84883
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
84884
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.2ms)
|
84885
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.1ms)
|
84886
|
+
Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.0ms)
|
84887
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
84888
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84889
|
+
-------------------------------------------------------------
|
84890
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
84891
|
+
-------------------------------------------------------------
|
84892
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84893
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84894
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84895
|
+
Started GET "/" for 127.0.0.1 at 2013-09-03 13:19:12 -0400
|
84896
|
+
Processing by WelcomeController#index as HTML
|
84897
|
+
Completed 401 Unauthorized in 1ms
|
84898
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84899
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
84900
|
+
-------------------------------------------------------------------------
|
84901
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
84902
|
+
-------------------------------------------------------------------------
|
84903
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
84904
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
84905
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
84906
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 13:19:12 -0400
|
84907
|
+
Processing by WelcomeController#logged_in_page as JSON
|
84908
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
84909
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
84910
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00], ["current_sign_in_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00]]
|
84911
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
84912
|
+
Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
84913
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
84914
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84915
|
+
------------------------------------------------------------------------------------------------
|
84916
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
84917
|
+
------------------------------------------------------------------------------------------------
|
84918
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84919
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
84920
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
84921
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-03 13:19:12 -0400
|
84922
|
+
Processing by WelcomeController#logged_in_page as JSON
|
84923
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
84924
|
+
Completed 401 Unauthorized in 75ms
|
84925
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
84926
|
+
[1m[35m (0.1ms)[0m begin transaction
|
84927
|
+
------------------------------------
|
84928
|
+
UserTest: test_should_apply_omniauth
|
84929
|
+
------------------------------------
|
84930
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
84931
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
84932
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
84933
|
+
--------------------------------------
|
84934
|
+
UserTest: test_should_get_reverse_name
|
81344
84935
|
--------------------------------------
|
81345
84936
|
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
81346
84937
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|