contour 2.1.0.beta17 → 2.1.0.rc

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/app/assets/stylesheets/contour.css +0 -2
  4. data/app/controllers/contour/authentications_controller.rb +5 -4
  5. data/app/views/contour/authentications/_add_remove_table.html.erb +31 -0
  6. data/app/views/contour/authentications/_authentications.html.erb +3 -0
  7. data/app/views/contour/authentications/destroy.js.erb +1 -0
  8. data/app/views/contour/authentications/index.html.erb +1 -22
  9. data/lib/contour/engine.rb +1 -1
  10. data/lib/contour/version.rb +1 -1
  11. data/test/controllers/authentications_controller_test.rb +2 -3
  12. data/test/dummy/db/test.sqlite3 +0 -0
  13. data/test/dummy/log/test.log +3591 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/0b793dc498fe65856d1b31a805f114dc +0 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  16. data/test/dummy/tmp/cache/assets/test/sprockets/1c3ad26f378b8f1fc2c20392ce4a540d +0 -0
  17. data/test/dummy/tmp/cache/assets/test/sprockets/291c470bea09e91a82ed77cb455b45fc +0 -0
  18. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/3e2f53860ebad5d43a5b7b1d2f7c93db +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/408c90980fca5a250881bafa3ef0ca63 +0 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/6666059cb20313a69e518d351e00eb1f +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/8f6410f2a80e0115a1b8bf6cf7cbf317 +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/a7b222735fc6d94f5713fa8e4c00feec +0 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  26. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  28. metadata +9 -5
  29. data/app/assets/stylesheets/contour/authentication.css +0 -63
  30. data/app/assets/stylesheets/contour/errors.css +0 -38
  31. data/app/views/contour/authentications/_index.html.erb +0 -14
@@ -81341,6 +81341,3597 @@ UserTest: test_should_apply_omniauth
81341
81341
   (0.1ms) begin transaction
81342
81342
  --------------------------------------
81343
81343
  UserTest: test_should_get_reverse_name
81344
+ --------------------------------------
81345
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81346
+  (0.1ms) rollback transaction
81347
+  (0.4ms) begin transaction
81348
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
81349
+ Fixture Insert (0.2ms) INSERT 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)
81350
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
81352
+ Fixture Delete (0.1ms) DELETE FROM "users"
81353
+ Fixture Insert (0.1ms) 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 ('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)
81354
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) 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 ('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)
81356
+ Fixture Insert (0.1ms) 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
+  (6.3ms) commit transaction
81358
+  (0.1ms) begin transaction
81359
+ -------------------------------------------------
81360
+ AuthenticationTest: test_should_get_provider_name
81361
+ -------------------------------------------------
81362
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
81363
+  (0.1ms) rollback transaction
81364
+  (0.1ms) begin transaction
81365
+ --------------------------------------------------------------------------------
81366
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
81367
+ --------------------------------------------------------------------------------
81368
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
81369
+  (0.1ms) rollback transaction
81370
+  (0.1ms) begin transaction
81371
+ -------------------------------------------------------------------------
81372
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
81373
+ -------------------------------------------------------------------------
81374
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81375
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
81376
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
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
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
81380
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
81381
+ Logged in user found, creating associated authentication.
81382
+  (0.1ms) SAVEPOINT active_record_1
81383
+ SQL (0.4ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81385
+ Redirected to http://test.host/authentications
81386
+ Completed 302 Found in 60ms (ActiveRecord: 0.9ms)
81387
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
81388
+  (29.0ms) rollback transaction
81389
+  (0.2ms) begin transaction
81390
+ --------------------------------------------------------------------------
81391
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
81392
+ --------------------------------------------------------------------------
81393
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81394
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
81395
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
81396
+ Processing by Contour::AuthenticationsController#destroy as HTML
81397
+ Parameters: {"id"=>"949717663"}
81398
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
81399
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
81400
+  (0.1ms) SAVEPOINT active_record_1
81401
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
81402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81403
+ Redirected to http://test.host/authentications
81404
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
81405
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
81406
+  (0.7ms) rollback transaction
81407
+  (0.1ms) begin transaction
81408
+ -------------------------------------------------------------
81409
+ Contour::AuthenticationsControllerTest: test_should_get_index
81410
+ -------------------------------------------------------------
81411
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81412
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
81413
+ Processing by Contour::AuthenticationsController#index as HTML
81414
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
81415
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
81416
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["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
+  (0.1ms) rollback transaction
81422
+  (0.0ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
81429
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'yiDoorndwiyRySpfydYA' LIMIT 1
81430
+  (0.0ms) SAVEPOINT active_record_1
81431
+ SQL (0.4ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["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
+  (0.1ms) 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
+  (0.8ms) rollback transaction
81458
+  (0.1ms) 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
+  (0.1ms) rollback transaction
81468
+  (0.1ms) begin transaction
81469
+ -------------------------------------------------------------------------------
81470
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
81471
+ -------------------------------------------------------------------------------
81472
+  (0.2ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SAVEPOINT active_record_1
81477
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
81478
+ Binary data inserted for `string` type on column `encrypted_password`
81479
+ SQL (0.7ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81481
+ Redirected to http://test.host/users/login
81482
+ Completed 302 Found in 32ms (ActiveRecord: 1.0ms)
81483
+  (0.1ms) SELECT COUNT(*) FROM "users"
81484
+  (0.7ms) rollback transaction
81485
+  (0.1ms) begin transaction
81486
+ --------------------------------------------------------------------------------------------
81487
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
81488
+ --------------------------------------------------------------------------------------------
81489
+  (0.1ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SAVEPOINT active_record_1
81494
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
81495
+ Binary data inserted for `string` type on column `encrypted_password`
81496
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81498
+ Redirected to http://test.host/users/login
81499
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
81500
+  (0.1ms) SELECT COUNT(*) FROM "users"
81501
+  (0.7ms) rollback transaction
81502
+  (0.1ms) begin transaction
81503
+ ---------------------------------------------------------------------------------------------
81504
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
81505
+ ---------------------------------------------------------------------------------------------
81506
+  (0.1ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SELECT COUNT(*) FROM "users"
81514
+  (0.1ms) rollback transaction
81515
+  (0.1ms) begin transaction
81516
+ ----------------------------------------------------------------------
81517
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
81518
+ ----------------------------------------------------------------------
81519
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81520
+ Processing by Contour::SessionsController#create as JSON
81521
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
81522
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
81523
+  (0.1ms) SAVEPOINT active_record_1
81524
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81526
+ Completed 200 OK in 80ms (Views: 0.3ms | ActiveRecord: 0.9ms)
81527
+  (0.8ms) rollback transaction
81528
+  (0.1ms) begin transaction
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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
81535
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
81536
+ Redirected to http://test.host/auth/google_apps
81537
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
81538
+  (0.1ms) rollback transaction
81539
+  (0.1ms) begin transaction
81540
+ ----------------------------------------------------------------------------------------------
81541
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
81542
+ ----------------------------------------------------------------------------------------------
81543
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
81547
+  (0.1ms) 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
+  (0.1ms) rollback transaction
81551
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
81558
+  (0.1ms) 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
+  (0.2ms) rollback transaction
81568
+  (0.1ms) begin transaction
81569
+ -----------------------------------------------------
81570
+ ContourHelperTest: test_should_show_sort_field_helper
81571
+ -----------------------------------------------------
81572
+  (0.1ms) rollback transaction
81573
+  (0.1ms) begin transaction
81574
+ ---------------------------------------------------------------------
81575
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
81576
+ ---------------------------------------------------------------------
81577
+  (0.1ms) rollback transaction
81578
+  (0.1ms) begin transaction
81579
+ -----------------------
81580
+ ContourTest: test_truth
81581
+ -----------------------
81582
+  (0.1ms) rollback transaction
81583
+  (0.0ms) begin transaction
81584
+ --------------------------------------------------------------------
81585
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
81586
+ --------------------------------------------------------------------
81587
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81588
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
81589
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
81594
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
81595
+ Binary data inserted for `string` type on column `encrypted_password`
81596
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81598
+  (0.0ms) SAVEPOINT active_record_1
81599
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
81600
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
81601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
81602
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
81603
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
81608
+  (0.1ms) SAVEPOINT active_record_1
81609
+  (0.0ms) 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
+  (0.9ms) rollback transaction
81619
+  (0.1ms) begin transaction
81620
+ --------------------------------------------------------
81621
+ NavigationTest: test_friendly_url_forwarding_after_login
81622
+ --------------------------------------------------------
81623
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81624
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
81625
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
81630
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
81631
+ Binary data inserted for `string` type on column `encrypted_password`
81632
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81634
+  (0.0ms) SAVEPOINT active_record_1
81635
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
81636
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
81637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
81638
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
81639
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
81644
+  (0.1ms) SAVEPOINT active_record_1
81645
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.2ms) 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
+  (0.9ms) rollback transaction
81654
+  (0.1ms) begin transaction
81655
+ --------------------------------------------------------------------
81656
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
81657
+ --------------------------------------------------------------------
81658
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81659
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
81660
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
81665
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
81666
+ Binary data inserted for `string` type on column `encrypted_password`
81667
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81669
+  (0.0ms) SAVEPOINT active_record_1
81670
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
81671
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
81672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
81673
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
81674
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
81679
+  (0.1ms) SAVEPOINT active_record_1
81680
+  (0.0ms) 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
+  (0.8ms) rollback transaction
81690
+  (0.1ms) begin transaction
81691
+ -------------------------------------------------------------
81692
+ NavigationTest: test_root_navigation_redirected_to_login_page
81693
+ -------------------------------------------------------------
81694
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81695
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
81696
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) rollback transaction
81701
+  (0.1ms) begin transaction
81702
+ -------------------------------------------------------------------------
81703
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
81704
+ -------------------------------------------------------------------------
81705
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81706
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
81707
+ User Load (0.0ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
81711
+  (0.1ms) SAVEPOINT active_record_1
81712
+ SQL (0.4ms) 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", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 15:56:18 UTC +00:00]]
81713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
81714
+ Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 0.6ms)
81715
+  (0.9ms) rollback transaction
81716
+  (0.1ms) begin transaction
81717
+ ------------------------------------------------------------------------------------------------
81718
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
81719
+ ------------------------------------------------------------------------------------------------
81720
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81721
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
81722
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
81726
+ Completed 401 Unauthorized in 75ms
81727
+  (0.1ms) rollback transaction
81728
+  (0.0ms) begin transaction
81729
+ ------------------------------------
81730
+ UserTest: test_should_apply_omniauth
81731
+ ------------------------------------
81732
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81733
+  (0.1ms) rollback transaction
81734
+  (0.0ms) begin transaction
81735
+ --------------------------------------
81736
+ UserTest: test_should_get_reverse_name
81737
+ --------------------------------------
81738
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81739
+  (0.1ms) rollback transaction
81740
+  (0.4ms) begin transaction
81741
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
81742
+ Fixture Insert (0.2ms) INSERT 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)
81743
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
81745
+ Fixture Delete (0.2ms) DELETE FROM "users"
81746
+ Fixture Insert (0.1ms) 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 ('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)
81747
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) 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 ('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)
81749
+ Fixture Insert (0.1ms) 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
+  (2.5ms) commit transaction
81751
+  (0.1ms) begin transaction
81752
+ -------------------------------------------------
81753
+ AuthenticationTest: test_should_get_provider_name
81754
+ -------------------------------------------------
81755
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
81756
+  (0.1ms) rollback transaction
81757
+  (0.1ms) begin transaction
81758
+ --------------------------------------------------------------------------------
81759
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
81760
+ --------------------------------------------------------------------------------
81761
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
81762
+  (0.1ms) rollback transaction
81763
+  (0.1ms) begin transaction
81764
+ -------------------------------------------------------------------------
81765
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
81766
+ -------------------------------------------------------------------------
81767
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81768
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
81769
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
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
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
81773
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
81774
+ Logged in user found, creating associated authentication.
81775
+  (0.1ms) SAVEPOINT active_record_1
81776
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81778
+ Redirected to http://test.host/authentications
81779
+ Completed 302 Found in 21ms (ActiveRecord: 1.0ms)
81780
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
81781
+  (7.9ms) rollback transaction
81782
+  (0.1ms) begin transaction
81783
+ --------------------------------------------------------------------------
81784
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
81785
+ --------------------------------------------------------------------------
81786
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81787
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
81788
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
81789
+ Processing by Contour::AuthenticationsController#destroy as HTML
81790
+ Parameters: {"id"=>"949717663"}
81791
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
81792
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
81793
+  (0.1ms) SAVEPOINT active_record_1
81794
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
81795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81796
+ Redirected to http://test.host/authentications
81797
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
81798
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
81799
+  (0.5ms) rollback transaction
81800
+  (0.1ms) begin transaction
81801
+ -------------------------------------------------------------
81802
+ Contour::AuthenticationsControllerTest: test_should_get_index
81803
+ -------------------------------------------------------------
81804
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81805
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
81806
+ Processing by Contour::AuthenticationsController#index as HTML
81807
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
81808
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
81809
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["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
+  (0.1ms) rollback transaction
81815
+  (0.1ms) begin transaction
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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
81822
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'qBZL24zHGfNTsF5mNGM9' LIMIT 1
81823
+  (0.1ms) SAVEPOINT active_record_1
81824
+ SQL (0.6ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["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
+  (0.1ms) 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
+  (2.8ms) rollback transaction
81851
+  (0.1ms) 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
+  (0.1ms) rollback transaction
81861
+  (0.1ms) begin transaction
81862
+ -------------------------------------------------------------------------------
81863
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
81864
+ -------------------------------------------------------------------------------
81865
+  (0.2ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SAVEPOINT active_record_1
81870
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
81871
+ Binary data inserted for `string` type on column `encrypted_password`
81872
+ SQL (0.6ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81874
+ Redirected to http://test.host/users/login
81875
+ Completed 302 Found in 16ms (ActiveRecord: 0.8ms)
81876
+  (0.1ms) SELECT COUNT(*) FROM "users"
81877
+  (0.6ms) rollback transaction
81878
+  (0.1ms) begin transaction
81879
+ --------------------------------------------------------------------------------------------
81880
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
81881
+ --------------------------------------------------------------------------------------------
81882
+  (0.2ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SAVEPOINT active_record_1
81887
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
81888
+ Binary data inserted for `string` type on column `encrypted_password`
81889
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81891
+ Redirected to http://test.host/users/login
81892
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
81893
+  (0.1ms) SELECT COUNT(*) FROM "users"
81894
+  (0.5ms) rollback transaction
81895
+  (0.1ms) begin transaction
81896
+ ---------------------------------------------------------------------------------------------
81897
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
81898
+ ---------------------------------------------------------------------------------------------
81899
+  (0.2ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SELECT COUNT(*) FROM "users"
81907
+  (0.1ms) rollback transaction
81908
+  (0.1ms) begin transaction
81909
+ ----------------------------------------------------------------------
81910
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
81911
+ ----------------------------------------------------------------------
81912
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81913
+ Processing by Contour::SessionsController#create as JSON
81914
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
81915
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
81916
+  (0.1ms) SAVEPOINT active_record_1
81917
+ SQL (2.0ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81919
+ Completed 200 OK in 79ms (Views: 0.3ms | ActiveRecord: 2.3ms)
81920
+  (0.6ms) rollback transaction
81921
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
81928
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
81929
+ Redirected to http://test.host/auth/google_apps
81930
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
81931
+  (0.1ms) rollback transaction
81932
+  (0.0ms) begin transaction
81933
+ ----------------------------------------------------------------------------------------------
81934
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
81935
+ ----------------------------------------------------------------------------------------------
81936
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
81940
+  (0.1ms) 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
+  (0.1ms) rollback transaction
81944
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
81951
+  (0.1ms) 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
+  (0.1ms) rollback transaction
81961
+  (0.1ms) begin transaction
81962
+ -----------------------------------------------------
81963
+ ContourHelperTest: test_should_show_sort_field_helper
81964
+ -----------------------------------------------------
81965
+  (0.1ms) rollback transaction
81966
+  (0.1ms) begin transaction
81967
+ ---------------------------------------------------------------------
81968
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
81969
+ ---------------------------------------------------------------------
81970
+  (0.1ms) rollback transaction
81971
+  (0.0ms) begin transaction
81972
+ -----------------------
81973
+ ContourTest: test_truth
81974
+ -----------------------
81975
+  (0.1ms) rollback transaction
81976
+  (0.0ms) begin transaction
81977
+ --------------------------------------------------------------------
81978
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
81979
+ --------------------------------------------------------------------
81980
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81981
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
81982
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
81987
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
81988
+ Binary data inserted for `string` type on column `encrypted_password`
81989
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
81991
+  (0.0ms) SAVEPOINT active_record_1
81992
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
81993
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
81994
+  (0.0ms) RELEASE SAVEPOINT active_record_1
81995
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
81996
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
82001
+  (0.1ms) SAVEPOINT active_record_1
82002
+  (0.1ms) 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
+  (13.3ms) rollback transaction
82012
+  (0.2ms) begin transaction
82013
+ --------------------------------------------------------
82014
+ NavigationTest: test_friendly_url_forwarding_after_login
82015
+ --------------------------------------------------------
82016
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82017
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82018
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
82023
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
82024
+ Binary data inserted for `string` type on column `encrypted_password`
82025
+ SQL (0.6ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82027
+  (0.0ms) SAVEPOINT active_record_1
82028
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82029
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
82031
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
82032
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
82037
+  (0.1ms) SAVEPOINT active_record_1
82038
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+  (10.5ms) rollback transaction
82047
+  (0.2ms) begin transaction
82048
+ --------------------------------------------------------------------
82049
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
82050
+ --------------------------------------------------------------------
82051
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82052
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82053
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
82058
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
82059
+ Binary data inserted for `string` type on column `encrypted_password`
82060
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82062
+  (0.0ms) SAVEPOINT active_record_1
82063
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82064
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82065
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82066
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
82067
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
82072
+  (0.0ms) SAVEPOINT active_record_1
82073
+  (0.0ms) 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
+  (383.4ms) rollback transaction
82083
+  (0.1ms) begin transaction
82084
+ -------------------------------------------------------------
82085
+ NavigationTest: test_root_navigation_redirected_to_login_page
82086
+ -------------------------------------------------------------
82087
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82088
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82089
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) rollback transaction
82094
+  (0.1ms) begin transaction
82095
+ -------------------------------------------------------------------------
82096
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
82097
+ -------------------------------------------------------------------------
82098
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82099
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82100
+ User Load (0.0ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
82104
+  (0.1ms) SAVEPOINT active_record_1
82105
+ SQL (0.5ms) 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: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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
82107
+ Completed 200 OK in 79ms (Views: 0.2ms | ActiveRecord: 0.8ms)
82108
+  (97.5ms) rollback transaction
82109
+  (0.1ms) begin transaction
82110
+ ------------------------------------------------------------------------------------------------
82111
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
82112
+ ------------------------------------------------------------------------------------------------
82113
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82114
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82115
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
82119
+ Completed 401 Unauthorized in 76ms
82120
+  (0.1ms) rollback transaction
82121
+  (0.1ms) begin transaction
82122
+ ------------------------------------
82123
+ UserTest: test_should_apply_omniauth
82124
+ ------------------------------------
82125
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82126
+  (0.1ms) rollback transaction
82127
+  (0.0ms) begin transaction
82128
+ --------------------------------------
82129
+ UserTest: test_should_get_reverse_name
82130
+ --------------------------------------
82131
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82132
+  (0.0ms) rollback transaction
82133
+  (0.4ms) begin transaction
82134
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
82135
+ Fixture Insert (0.2ms) INSERT 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)
82136
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
82138
+ Fixture Delete (0.1ms) DELETE FROM "users"
82139
+ Fixture Insert (0.1ms) 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 ('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)
82140
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) 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 ('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)
82142
+ Fixture Insert (0.1ms) 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
+  (2.2ms) commit transaction
82144
+  (0.0ms) begin transaction
82145
+ -------------------------------------------------
82146
+ AuthenticationTest: test_should_get_provider_name
82147
+ -------------------------------------------------
82148
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
82149
+  (0.1ms) rollback transaction
82150
+  (0.1ms) begin transaction
82151
+ --------------------------------------------------------------------------------
82152
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
82153
+ --------------------------------------------------------------------------------
82154
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
82155
+  (0.1ms) rollback transaction
82156
+  (0.1ms) begin transaction
82157
+ -------------------------------------------------------------------------
82158
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
82159
+ -------------------------------------------------------------------------
82160
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82161
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
82162
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
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
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
82166
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
82167
+ Logged in user found, creating associated authentication.
82168
+  (0.1ms) SAVEPOINT active_record_1
82169
+ SQL (0.6ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82171
+ Redirected to http://test.host/authentications
82172
+ Completed 302 Found in 42ms (ActiveRecord: 1.1ms)
82173
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
82174
+  (0.6ms) rollback transaction
82175
+  (0.1ms) begin transaction
82176
+ --------------------------------------------------------------------------
82177
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
82178
+ --------------------------------------------------------------------------
82179
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82180
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
82181
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
82182
+ Processing by Contour::AuthenticationsController#destroy as HTML
82183
+ Parameters: {"id"=>"949717663"}
82184
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
82185
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
82186
+  (0.1ms) SAVEPOINT active_record_1
82187
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
82188
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82189
+ Redirected to http://test.host/authentications
82190
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
82191
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
82192
+  (0.7ms) rollback transaction
82193
+  (0.1ms) begin transaction
82194
+ -------------------------------------------------------------
82195
+ Contour::AuthenticationsControllerTest: test_should_get_index
82196
+ -------------------------------------------------------------
82197
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82198
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
82199
+ Processing by Contour::AuthenticationsController#index as HTML
82200
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
82201
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
82202
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
82203
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
82204
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
82205
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
82206
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
82207
+ Authentication Load (0.1ms) 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
+  (0.1ms) rollback transaction
82213
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
82220
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '5QH6LoEa2NXhoaDQX7xo' LIMIT 1
82221
+  (0.1ms) SAVEPOINT active_record_1
82222
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.8ms) rollback transaction
82249
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
82259
+  (0.1ms) begin transaction
82260
+ -------------------------------------------------------------------------------
82261
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
82262
+ -------------------------------------------------------------------------------
82263
+  (0.2ms) 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
+  (0.1ms) SAVEPOINT active_record_1
82268
+ User Exists (0.2ms) 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
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82272
+ Redirected to http://test.host/users/login
82273
+ Completed 302 Found in 95ms (ActiveRecord: 1.0ms)
82274
+  (0.1ms) SELECT COUNT(*) FROM "users"
82275
+  (1.3ms) rollback transaction
82276
+  (0.1ms) begin transaction
82277
+ --------------------------------------------------------------------------------------------
82278
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
82279
+ --------------------------------------------------------------------------------------------
82280
+  (0.1ms) 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
+  (0.1ms) SAVEPOINT active_record_1
82285
+ User Exists (0.1ms) 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
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82289
+ Redirected to http://test.host/users/login
82290
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
82291
+  (0.1ms) SELECT COUNT(*) FROM "users"
82292
+  (1.1ms) rollback transaction
82293
+  (0.1ms) begin transaction
82294
+ ---------------------------------------------------------------------------------------------
82295
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
82296
+ ---------------------------------------------------------------------------------------------
82297
+  (0.1ms) 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
+  (0.1ms) SELECT COUNT(*) FROM "users"
82305
+  (0.1ms) rollback transaction
82306
+  (0.1ms) begin transaction
82307
+ ----------------------------------------------------------------------
82308
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
82309
+ ----------------------------------------------------------------------
82310
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
82314
+  (0.1ms) SAVEPOINT active_record_1
82315
+ SQL (0.4ms) 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", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 16:48:42 UTC +00:00]]
82316
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82317
+ Completed 200 OK in 78ms (Views: 0.3ms | ActiveRecord: 0.7ms)
82318
+  (0.7ms) rollback transaction
82319
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
82326
+  (0.1ms) 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
+  (0.1ms) rollback transaction
82330
+  (0.1ms) begin transaction
82331
+ ----------------------------------------------------------------------------------------------
82332
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
82333
+ ----------------------------------------------------------------------------------------------
82334
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82335
+ Processing by Contour::SessionsController#create as HTML
82336
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
82337
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
82338
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
82339
+ Redirected to http://test.host/auth/ldap
82340
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
82341
+  (0.1ms) rollback transaction
82342
+  (0.0ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
82349
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
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
+  (0.2ms) rollback transaction
82359
+  (0.1ms) begin transaction
82360
+ -----------------------------------------------------
82361
+ ContourHelperTest: test_should_show_sort_field_helper
82362
+ -----------------------------------------------------
82363
+  (0.1ms) rollback transaction
82364
+  (0.1ms) begin transaction
82365
+ ---------------------------------------------------------------------
82366
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
82367
+ ---------------------------------------------------------------------
82368
+  (0.1ms) rollback transaction
82369
+  (0.1ms) begin transaction
82370
+ -----------------------
82371
+ ContourTest: test_truth
82372
+ -----------------------
82373
+  (0.1ms) rollback transaction
82374
+  (0.1ms) begin transaction
82375
+ --------------------------------------------------------------------
82376
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
82377
+ --------------------------------------------------------------------
82378
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82379
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82380
+ User Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
82385
+ User Exists (0.1ms) 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
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82389
+  (0.0ms) SAVEPOINT active_record_1
82390
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82391
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82393
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
82394
+ SQL (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
82399
+  (0.1ms) SAVEPOINT active_record_1
82400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+  (0.8ms) rollback transaction
82410
+  (0.1ms) begin transaction
82411
+ --------------------------------------------------------
82412
+ NavigationTest: test_friendly_url_forwarding_after_login
82413
+ --------------------------------------------------------
82414
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82415
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82416
+ User Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
82421
+ User Exists (0.1ms) 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
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82425
+  (0.0ms) SAVEPOINT active_record_1
82426
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82427
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
82429
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
82430
+ SQL (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
82435
+  (0.1ms) SAVEPOINT active_record_1
82436
+ SQL (0.3ms) 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: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
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
82443
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
82444
+  (0.8ms) rollback transaction
82445
+  (0.1ms) begin transaction
82446
+ --------------------------------------------------------------------
82447
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
82448
+ --------------------------------------------------------------------
82449
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82450
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82451
+ User Load (0.1ms) 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
+  (0.1ms) SAVEPOINT active_record_1
82456
+ User Exists (0.1ms) 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
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82460
+  (0.0ms) SAVEPOINT active_record_1
82461
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82462
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
82464
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
82465
+ SQL (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
82470
+  (0.1ms) SAVEPOINT active_record_1
82471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+  (28.3ms) rollback transaction
82481
+  (0.1ms) begin transaction
82482
+ -------------------------------------------------------------
82483
+ NavigationTest: test_root_navigation_redirected_to_login_page
82484
+ -------------------------------------------------------------
82485
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82486
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82487
+ User Load (0.1ms) 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
+  (0.1ms) rollback transaction
82492
+  (0.1ms) begin transaction
82493
+ -------------------------------------------------------------------------
82494
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
82495
+ -------------------------------------------------------------------------
82496
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82497
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82498
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
82502
+  (0.1ms) SAVEPOINT active_record_1
82503
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82505
+ Completed 200 OK in 82ms (Views: 0.2ms | ActiveRecord: 0.7ms)
82506
+  (0.5ms) rollback transaction
82507
+  (0.1ms) begin transaction
82508
+ ------------------------------------------------------------------------------------------------
82509
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
82510
+ ------------------------------------------------------------------------------------------------
82511
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82512
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82513
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
82517
+ Completed 401 Unauthorized in 77ms
82518
+  (0.1ms) rollback transaction
82519
+  (0.1ms) begin transaction
82520
+ ------------------------------------
82521
+ UserTest: test_should_apply_omniauth
82522
+ ------------------------------------
82523
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82524
+  (0.1ms) rollback transaction
82525
+  (0.1ms) begin transaction
82526
+ --------------------------------------
82527
+ UserTest: test_should_get_reverse_name
82528
+ --------------------------------------
82529
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82530
+  (0.1ms) rollback transaction
82531
+  (0.3ms) begin transaction
82532
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
82533
+ Fixture Insert (0.2ms) INSERT 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)
82534
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
82536
+ Fixture Delete (0.1ms) DELETE FROM "users"
82537
+ Fixture Insert (0.1ms) 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 ('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)
82538
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) 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 ('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)
82540
+ Fixture Insert (0.1ms) 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
+  (1.9ms) commit transaction
82542
+  (0.0ms) begin transaction
82543
+ -------------------------------------------------
82544
+ AuthenticationTest: test_should_get_provider_name
82545
+ -------------------------------------------------
82546
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
82547
+  (0.1ms) rollback transaction
82548
+  (0.1ms) begin transaction
82549
+ --------------------------------------------------------------------------------
82550
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
82551
+ --------------------------------------------------------------------------------
82552
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
82553
+  (0.1ms) rollback transaction
82554
+  (0.1ms) begin transaction
82555
+ -------------------------------------------------------------------------
82556
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
82557
+ -------------------------------------------------------------------------
82558
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82559
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
82560
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
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
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
82564
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
82565
+ Logged in user found, creating associated authentication.
82566
+  (0.1ms) SAVEPOINT active_record_1
82567
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82569
+ Redirected to http://test.host/authentications
82570
+ Completed 302 Found in 18ms (ActiveRecord: 0.9ms)
82571
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
82572
+  (0.7ms) rollback transaction
82573
+  (0.1ms) begin transaction
82574
+ --------------------------------------------------------------------------
82575
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
82576
+ --------------------------------------------------------------------------
82577
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82578
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
82579
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
82580
+ Processing by Contour::AuthenticationsController#destroy as HTML
82581
+ Parameters: {"id"=>"949717663"}
82582
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
82583
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
82584
+  (0.1ms) SAVEPOINT active_record_1
82585
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
82586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
82587
+ Completed 500 Internal Server Error in 42ms
82588
+  (0.7ms) rollback transaction
82589
+  (0.0ms) begin transaction
82590
+ -------------------------------------------------------------
82591
+ Contour::AuthenticationsControllerTest: test_should_get_index
82592
+ -------------------------------------------------------------
82593
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82594
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
82595
+ Processing by Contour::AuthenticationsController#index as HTML
82596
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
82597
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
82598
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
82599
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
82600
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
82601
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
82602
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
82603
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["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
+  (0.1ms) rollback transaction
82609
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
82616
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'eXpxymxpuhsGeKuMCDiB' LIMIT 1
82617
+  (0.0ms) SAVEPOINT active_record_1
82618
+ SQL (0.4ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["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
+  (0.1ms) 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
+  (8.8ms) rollback transaction
82645
+  (0.1ms) 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
+  (0.1ms) rollback transaction
82655
+  (0.1ms) begin transaction
82656
+ -------------------------------------------------------------------------------
82657
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
82658
+ -------------------------------------------------------------------------------
82659
+  (0.2ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SAVEPOINT active_record_1
82664
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
82665
+ Binary data inserted for `string` type on column `encrypted_password`
82666
+ SQL (0.7ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82668
+ Redirected to http://test.host/users/login
82669
+ Completed 302 Found in 21ms (ActiveRecord: 1.0ms)
82670
+  (0.1ms) SELECT COUNT(*) FROM "users"
82671
+  (0.7ms) rollback transaction
82672
+  (0.1ms) begin transaction
82673
+ --------------------------------------------------------------------------------------------
82674
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
82675
+ --------------------------------------------------------------------------------------------
82676
+  (0.1ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SAVEPOINT active_record_1
82681
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
82682
+ Binary data inserted for `string` type on column `encrypted_password`
82683
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82685
+ Redirected to http://test.host/users/login
82686
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
82687
+  (0.1ms) SELECT COUNT(*) FROM "users"
82688
+  (0.8ms) rollback transaction
82689
+  (0.1ms) begin transaction
82690
+ ---------------------------------------------------------------------------------------------
82691
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
82692
+ ---------------------------------------------------------------------------------------------
82693
+  (0.1ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SELECT COUNT(*) FROM "users"
82701
+  (0.1ms) rollback transaction
82702
+  (0.1ms) begin transaction
82703
+ ----------------------------------------------------------------------
82704
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
82705
+ ----------------------------------------------------------------------
82706
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82707
+ Processing by Contour::SessionsController#create as JSON
82708
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
82709
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
82710
+  (0.1ms) SAVEPOINT active_record_1
82711
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82713
+ Completed 200 OK in 81ms (Views: 0.3ms | ActiveRecord: 0.8ms)
82714
+  (11.0ms) rollback transaction
82715
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
82722
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
82723
+ Redirected to http://test.host/auth/google_apps
82724
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
82725
+  (0.1ms) rollback transaction
82726
+  (0.1ms) begin transaction
82727
+ ----------------------------------------------------------------------------------------------
82728
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
82729
+ ----------------------------------------------------------------------------------------------
82730
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
82734
+  (0.1ms) 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
+  (0.1ms) rollback transaction
82738
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
82745
+  (0.1ms) 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
+  (0.1ms) rollback transaction
82755
+  (0.1ms) begin transaction
82756
+ -----------------------------------------------------
82757
+ ContourHelperTest: test_should_show_sort_field_helper
82758
+ -----------------------------------------------------
82759
+  (0.1ms) rollback transaction
82760
+  (0.1ms) begin transaction
82761
+ ---------------------------------------------------------------------
82762
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
82763
+ ---------------------------------------------------------------------
82764
+  (0.1ms) rollback transaction
82765
+  (0.0ms) begin transaction
82766
+ -----------------------
82767
+ ContourTest: test_truth
82768
+ -----------------------
82769
+  (0.1ms) rollback transaction
82770
+  (0.0ms) begin transaction
82771
+ --------------------------------------------------------------------
82772
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
82773
+ --------------------------------------------------------------------
82774
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82775
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82776
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
82781
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
82782
+ Binary data inserted for `string` type on column `encrypted_password`
82783
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82785
+  (0.0ms) SAVEPOINT active_record_1
82786
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82787
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82788
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82789
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
82790
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
82795
+  (0.1ms) SAVEPOINT active_record_1
82796
+  (0.1ms) 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
+  (1.0ms) rollback transaction
82806
+  (0.1ms) begin transaction
82807
+ --------------------------------------------------------
82808
+ NavigationTest: test_friendly_url_forwarding_after_login
82809
+ --------------------------------------------------------
82810
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82811
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82812
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
82817
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
82818
+ Binary data inserted for `string` type on column `encrypted_password`
82819
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82821
+  (0.0ms) SAVEPOINT active_record_1
82822
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82823
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82824
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82825
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
82826
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
82831
+  (0.0ms) SAVEPOINT active_record_1
82832
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+  (0.8ms) rollback transaction
82841
+  (0.1ms) begin transaction
82842
+ --------------------------------------------------------------------
82843
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
82844
+ --------------------------------------------------------------------
82845
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82846
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82847
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
82852
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
82853
+ Binary data inserted for `string` type on column `encrypted_password`
82854
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82856
+  (0.0ms) SAVEPOINT active_record_1
82857
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82858
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
82859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
82860
+ SQL (0.2ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
82861
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
82866
+  (0.1ms) SAVEPOINT active_record_1
82867
+  (0.0ms) 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
+  (0.8ms) rollback transaction
82877
+  (0.1ms) begin transaction
82878
+ -------------------------------------------------------------
82879
+ NavigationTest: test_root_navigation_redirected_to_login_page
82880
+ -------------------------------------------------------------
82881
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82882
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82883
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) rollback transaction
82888
+  (0.1ms) begin transaction
82889
+ -------------------------------------------------------------------------
82890
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
82891
+ -------------------------------------------------------------------------
82892
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82893
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82894
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
82898
+  (0.1ms) SAVEPOINT active_record_1
82899
+ SQL (0.4ms) 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: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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
82901
+ Completed 200 OK in 81ms (Views: 0.2ms | ActiveRecord: 0.6ms)
82902
+  (0.7ms) rollback transaction
82903
+  (0.1ms) begin transaction
82904
+ ------------------------------------------------------------------------------------------------
82905
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
82906
+ ------------------------------------------------------------------------------------------------
82907
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82908
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
82909
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
82913
+ Completed 401 Unauthorized in 78ms
82914
+  (0.1ms) rollback transaction
82915
+  (0.1ms) begin transaction
82916
+ ------------------------------------
82917
+ UserTest: test_should_apply_omniauth
82918
+ ------------------------------------
82919
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82920
+  (0.1ms) rollback transaction
82921
+  (0.0ms) begin transaction
82922
+ --------------------------------------
82923
+ UserTest: test_should_get_reverse_name
82924
+ --------------------------------------
82925
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82926
+  (0.0ms) rollback transaction
82927
+  (0.3ms) begin transaction
82928
+ Fixture Delete (0.6ms) DELETE FROM "authentications"
82929
+ Fixture Insert (0.2ms) INSERT 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)
82930
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
82932
+ Fixture Delete (0.1ms) DELETE FROM "users"
82933
+ Fixture Insert (0.1ms) 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 ('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)
82934
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) 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 ('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)
82936
+ Fixture Insert (0.1ms) 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
+  (3.0ms) commit transaction
82938
+  (0.1ms) begin transaction
82939
+ -------------------------------------------------
82940
+ AuthenticationTest: test_should_get_provider_name
82941
+ -------------------------------------------------
82942
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
82943
+  (0.1ms) rollback transaction
82944
+  (0.1ms) begin transaction
82945
+ --------------------------------------------------------------------------------
82946
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
82947
+ --------------------------------------------------------------------------------
82948
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
82949
+  (0.1ms) rollback transaction
82950
+  (0.1ms) begin transaction
82951
+ -------------------------------------------------------------------------
82952
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
82953
+ -------------------------------------------------------------------------
82954
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82955
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
82956
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
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
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
82960
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
82961
+ Logged in user found, creating associated authentication.
82962
+  (0.1ms) SAVEPOINT active_record_1
82963
+ SQL (0.4ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
82965
+ Redirected to http://test.host/authentications
82966
+ Completed 302 Found in 18ms (ActiveRecord: 0.8ms)
82967
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
82968
+  (0.8ms) rollback transaction
82969
+  (0.1ms) begin transaction
82970
+ --------------------------------------------------------------------------
82971
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
82972
+ --------------------------------------------------------------------------
82973
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82974
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
82975
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
82976
+ Processing by Contour::AuthenticationsController#destroy as HTML
82977
+ Parameters: {"id"=>"949717663"}
82978
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
82979
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
82980
+  (0.1ms) SAVEPOINT active_record_1
82981
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
82982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
82983
+ Redirected to http://test.host/authentications
82984
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
82985
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
82986
+  (1.1ms) rollback transaction
82987
+  (0.1ms) begin transaction
82988
+ -------------------------------------------------------------
82989
+ Contour::AuthenticationsControllerTest: test_should_get_index
82990
+ -------------------------------------------------------------
82991
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
82992
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
82993
+ Processing by Contour::AuthenticationsController#index as HTML
82994
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
82995
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
82996
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
82997
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
82998
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
82999
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
83000
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
83001
+ Authentication Load (0.1ms) 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
+  (0.1ms) rollback transaction
83007
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83014
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'WT5CxxzAZbD6A57rJMgp' LIMIT 1
83015
+  (0.1ms) SAVEPOINT active_record_1
83016
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.8ms) rollback transaction
83043
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
83053
+  (0.1ms) begin transaction
83054
+ -------------------------------------------------------------------------------
83055
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
83056
+ -------------------------------------------------------------------------------
83057
+  (0.2ms) 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
+  (0.1ms) SAVEPOINT active_record_1
83062
+ User Exists (0.1ms) 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
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83066
+ Redirected to http://test.host/users/login
83067
+ Completed 302 Found in 17ms (ActiveRecord: 0.8ms)
83068
+  (0.1ms) SELECT COUNT(*) FROM "users"
83069
+  (0.8ms) rollback transaction
83070
+  (0.1ms) begin transaction
83071
+ --------------------------------------------------------------------------------------------
83072
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
83073
+ --------------------------------------------------------------------------------------------
83074
+  (0.1ms) 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
+  (0.1ms) SAVEPOINT active_record_1
83079
+ User Exists (0.1ms) 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
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83083
+ Redirected to http://test.host/users/login
83084
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
83085
+  (0.1ms) SELECT COUNT(*) FROM "users"
83086
+  (0.8ms) rollback transaction
83087
+  (0.1ms) begin transaction
83088
+ ---------------------------------------------------------------------------------------------
83089
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
83090
+ ---------------------------------------------------------------------------------------------
83091
+  (0.1ms) 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
+  (0.1ms) SELECT COUNT(*) FROM "users"
83099
+  (0.1ms) rollback transaction
83100
+  (0.1ms) begin transaction
83101
+ ----------------------------------------------------------------------
83102
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
83103
+ ----------------------------------------------------------------------
83104
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83108
+  (0.1ms) SAVEPOINT active_record_1
83109
+ SQL (0.4ms) 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: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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83111
+ Completed 200 OK in 77ms (Views: 0.3ms | ActiveRecord: 0.7ms)
83112
+  (1.0ms) rollback transaction
83113
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
83120
+  (0.1ms) 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
+  (0.1ms) rollback transaction
83124
+  (0.1ms) begin transaction
83125
+ ----------------------------------------------------------------------------------------------
83126
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
83127
+ ----------------------------------------------------------------------------------------------
83128
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83129
+ Processing by Contour::SessionsController#create as HTML
83130
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
83131
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83132
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
83133
+ Redirected to http://test.host/auth/ldap
83134
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
83135
+  (0.1ms) rollback transaction
83136
+  (0.0ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
83143
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
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
+  (0.1ms) rollback transaction
83153
+  (0.1ms) begin transaction
83154
+ -----------------------------------------------------
83155
+ ContourHelperTest: test_should_show_sort_field_helper
83156
+ -----------------------------------------------------
83157
+  (0.1ms) rollback transaction
83158
+  (0.0ms) begin transaction
83159
+ ---------------------------------------------------------------------
83160
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
83161
+ ---------------------------------------------------------------------
83162
+  (0.1ms) rollback transaction
83163
+  (0.0ms) begin transaction
83164
+ -----------------------
83165
+ ContourTest: test_truth
83166
+ -----------------------
83167
+  (0.1ms) rollback transaction
83168
+  (0.1ms) begin transaction
83169
+ --------------------------------------------------------------------
83170
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
83171
+ --------------------------------------------------------------------
83172
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83173
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83174
+ User Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
83179
+ User Exists (0.1ms) 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
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83183
+  (0.0ms) SAVEPOINT active_record_1
83184
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83185
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
83187
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
83188
+ SQL (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
83193
+  (0.1ms) SAVEPOINT active_record_1
83194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+  (0.9ms) rollback transaction
83204
+  (0.1ms) begin transaction
83205
+ --------------------------------------------------------
83206
+ NavigationTest: test_friendly_url_forwarding_after_login
83207
+ --------------------------------------------------------
83208
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83209
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83210
+ User Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
83215
+ User Exists (0.1ms) 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
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83219
+  (0.0ms) SAVEPOINT active_record_1
83220
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83221
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83222
+  (0.0ms) RELEASE SAVEPOINT active_record_1
83223
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
83224
+ SQL (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
83229
+  (0.1ms) SAVEPOINT active_record_1
83230
+ SQL (0.2ms) 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: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
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
83237
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
83238
+  (0.6ms) rollback transaction
83239
+  (0.1ms) begin transaction
83240
+ --------------------------------------------------------------------
83241
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
83242
+ --------------------------------------------------------------------
83243
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83244
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83245
+ User Load (0.1ms) 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
+  (0.1ms) SAVEPOINT active_record_1
83250
+ User Exists (0.1ms) 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
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83254
+  (0.1ms) SAVEPOINT active_record_1
83255
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83256
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
83258
+ SQL (0.2ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
83259
+ SQL (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
83264
+  (0.1ms) SAVEPOINT active_record_1
83265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+  (0.8ms) rollback transaction
83275
+  (0.1ms) begin transaction
83276
+ -------------------------------------------------------------
83277
+ NavigationTest: test_root_navigation_redirected_to_login_page
83278
+ -------------------------------------------------------------
83279
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83280
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83281
+ User Load (0.1ms) 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
+  (0.1ms) rollback transaction
83286
+  (0.1ms) begin transaction
83287
+ -------------------------------------------------------------------------
83288
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
83289
+ -------------------------------------------------------------------------
83290
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83291
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83292
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83296
+  (0.1ms) SAVEPOINT active_record_1
83297
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83299
+ Completed 200 OK in 79ms (Views: 0.2ms | ActiveRecord: 0.6ms)
83300
+  (0.7ms) rollback transaction
83301
+  (0.1ms) begin transaction
83302
+ ------------------------------------------------------------------------------------------------
83303
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
83304
+ ------------------------------------------------------------------------------------------------
83305
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83306
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83307
+ User Load (0.0ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83311
+ Completed 401 Unauthorized in 74ms
83312
+  (0.1ms) rollback transaction
83313
+  (0.1ms) begin transaction
83314
+ ------------------------------------
83315
+ UserTest: test_should_apply_omniauth
83316
+ ------------------------------------
83317
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83318
+  (0.1ms) rollback transaction
83319
+  (0.0ms) begin transaction
83320
+ --------------------------------------
83321
+ UserTest: test_should_get_reverse_name
83322
+ --------------------------------------
83323
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83324
+  (0.1ms) rollback transaction
83325
+  (0.3ms) begin transaction
83326
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
83327
+ Fixture Insert (0.2ms) INSERT 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)
83328
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
83330
+ Fixture Delete (0.1ms) DELETE FROM "users"
83331
+ Fixture Insert (0.1ms) 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 ('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)
83332
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) 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 ('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)
83334
+ Fixture Insert (0.1ms) 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
+  (36.2ms) commit transaction
83336
+  (0.1ms) begin transaction
83337
+ -------------------------------------------------
83338
+ AuthenticationTest: test_should_get_provider_name
83339
+ -------------------------------------------------
83340
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
83341
+  (0.1ms) rollback transaction
83342
+  (0.1ms) begin transaction
83343
+ --------------------------------------------------------------------------------
83344
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
83345
+ --------------------------------------------------------------------------------
83346
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
83347
+  (0.1ms) rollback transaction
83348
+  (0.1ms) begin transaction
83349
+ -------------------------------------------------------------------------
83350
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
83351
+ -------------------------------------------------------------------------
83352
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83353
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
83354
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
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
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
83358
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
83359
+ Logged in user found, creating associated authentication.
83360
+  (0.1ms) SAVEPOINT active_record_1
83361
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83363
+ Redirected to http://test.host/authentications
83364
+ Completed 302 Found in 20ms (ActiveRecord: 1.0ms)
83365
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
83366
+  (0.7ms) rollback transaction
83367
+  (0.1ms) begin transaction
83368
+ --------------------------------------------------------------------------
83369
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
83370
+ --------------------------------------------------------------------------
83371
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83372
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
83373
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
83374
+ Processing by Contour::AuthenticationsController#destroy as HTML
83375
+ Parameters: {"id"=>"949717663"}
83376
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
83377
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
83378
+  (0.1ms) SAVEPOINT active_record_1
83379
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
83380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
83381
+ Redirected to http://test.host/authentications
83382
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
83383
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
83384
+  (0.8ms) rollback transaction
83385
+  (0.1ms) begin transaction
83386
+ -------------------------------------------------------------
83387
+ Contour::AuthenticationsControllerTest: test_should_get_index
83388
+ -------------------------------------------------------------
83389
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83390
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
83391
+ Processing by Contour::AuthenticationsController#index as HTML
83392
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
83393
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
83394
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
83395
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
83396
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
83397
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
83398
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
83399
+ Authentication Load (0.2ms) 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
+  (0.1ms) rollback transaction
83405
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83412
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'gRyxFvhAPWPGUTVaZgxN' LIMIT 1
83413
+  (0.1ms) SAVEPOINT active_record_1
83414
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.5ms) rollback transaction
83441
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
83451
+  (0.1ms) begin transaction
83452
+ -------------------------------------------------------------------------------
83453
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
83454
+ -------------------------------------------------------------------------------
83455
+  (0.2ms) 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
+  (0.1ms) SAVEPOINT active_record_1
83460
+ User Exists (0.1ms) 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
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83464
+ Redirected to http://test.host/users/login
83465
+ Completed 302 Found in 21ms (ActiveRecord: 1.3ms)
83466
+  (0.1ms) SELECT COUNT(*) FROM "users"
83467
+  (0.8ms) rollback transaction
83468
+  (0.1ms) begin transaction
83469
+ --------------------------------------------------------------------------------------------
83470
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
83471
+ --------------------------------------------------------------------------------------------
83472
+  (0.2ms) 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
+  (0.1ms) SAVEPOINT active_record_1
83477
+ User Exists (0.1ms) 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
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83481
+ Redirected to http://test.host/users/login
83482
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
83483
+  (0.1ms) SELECT COUNT(*) FROM "users"
83484
+  (0.8ms) rollback transaction
83485
+  (0.1ms) begin transaction
83486
+ ---------------------------------------------------------------------------------------------
83487
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
83488
+ ---------------------------------------------------------------------------------------------
83489
+  (0.1ms) 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
+  (0.2ms) SELECT COUNT(*) FROM "users"
83497
+  (0.1ms) rollback transaction
83498
+  (0.1ms) begin transaction
83499
+ ----------------------------------------------------------------------
83500
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
83501
+ ----------------------------------------------------------------------
83502
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83506
+  (0.1ms) SAVEPOINT active_record_1
83507
+ SQL (0.5ms) 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", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:02:37 UTC +00:00]]
83508
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83509
+ Completed 200 OK in 80ms (Views: 0.3ms | ActiveRecord: 0.8ms)
83510
+  (0.8ms) rollback transaction
83511
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
83518
+  (0.1ms) 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
+  (0.1ms) rollback transaction
83522
+  (0.1ms) begin transaction
83523
+ ----------------------------------------------------------------------------------------------
83524
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
83525
+ ----------------------------------------------------------------------------------------------
83526
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83527
+ Processing by Contour::SessionsController#create as HTML
83528
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
83529
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83530
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
83531
+ Redirected to http://test.host/auth/ldap
83532
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
83533
+  (0.1ms) rollback transaction
83534
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
83541
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
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
+  (0.1ms) rollback transaction
83551
+  (0.1ms) begin transaction
83552
+ -----------------------------------------------------
83553
+ ContourHelperTest: test_should_show_sort_field_helper
83554
+ -----------------------------------------------------
83555
+  (0.1ms) rollback transaction
83556
+  (0.1ms) begin transaction
83557
+ ---------------------------------------------------------------------
83558
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
83559
+ ---------------------------------------------------------------------
83560
+  (0.1ms) rollback transaction
83561
+  (0.1ms) begin transaction
83562
+ -----------------------
83563
+ ContourTest: test_truth
83564
+ -----------------------
83565
+  (0.1ms) rollback transaction
83566
+  (0.1ms) begin transaction
83567
+ --------------------------------------------------------------------
83568
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
83569
+ --------------------------------------------------------------------
83570
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83571
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83572
+ User Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
83577
+ User Exists (0.1ms) 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
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83581
+  (0.0ms) SAVEPOINT active_record_1
83582
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83583
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83584
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83585
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
83586
+ SQL (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
83591
+  (0.1ms) SAVEPOINT active_record_1
83592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+  (56.6ms) rollback transaction
83602
+  (0.2ms) begin transaction
83603
+ --------------------------------------------------------
83604
+ NavigationTest: test_friendly_url_forwarding_after_login
83605
+ --------------------------------------------------------
83606
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83607
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83608
+ User Load (0.1ms) 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
+  (0.1ms) SAVEPOINT active_record_1
83613
+ User Exists (0.1ms) 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
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83617
+  (0.0ms) SAVEPOINT active_record_1
83618
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83619
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83620
+  (0.0ms) RELEASE SAVEPOINT active_record_1
83621
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
83622
+ SQL (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
83627
+  (0.1ms) SAVEPOINT active_record_1
83628
+ SQL (0.2ms) 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: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
+  (0.0ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
83635
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
83636
+  (0.8ms) rollback transaction
83637
+  (0.1ms) begin transaction
83638
+ --------------------------------------------------------------------
83639
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
83640
+ --------------------------------------------------------------------
83641
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83642
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83643
+ User Load (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
83648
+ User Exists (0.1ms) 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
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83652
+  (0.0ms) SAVEPOINT active_record_1
83653
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83654
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
83656
+ SQL (0.2ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
83657
+ SQL (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
83662
+  (0.0ms) SAVEPOINT active_record_1
83663
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.8ms) rollback transaction
83673
+  (0.1ms) begin transaction
83674
+ -------------------------------------------------------------
83675
+ NavigationTest: test_root_navigation_redirected_to_login_page
83676
+ -------------------------------------------------------------
83677
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83678
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83679
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
83684
+  (0.0ms) begin transaction
83685
+ -------------------------------------------------------------------------
83686
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
83687
+ -------------------------------------------------------------------------
83688
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83689
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83690
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83694
+  (0.1ms) SAVEPOINT active_record_1
83695
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
83697
+ Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 0.7ms)
83698
+  (1.0ms) rollback transaction
83699
+  (0.1ms) begin transaction
83700
+ ------------------------------------------------------------------------------------------------
83701
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
83702
+ ------------------------------------------------------------------------------------------------
83703
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83704
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83705
+ User Load (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83709
+ Completed 401 Unauthorized in 74ms
83710
+  (0.1ms) rollback transaction
83711
+  (0.1ms) begin transaction
83712
+ ------------------------------------
83713
+ UserTest: test_should_apply_omniauth
83714
+ ------------------------------------
83715
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83716
+  (0.1ms) rollback transaction
83717
+  (0.0ms) begin transaction
83718
+ --------------------------------------
83719
+ UserTest: test_should_get_reverse_name
83720
+ --------------------------------------
83721
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83722
+  (0.1ms) rollback transaction
83723
+  (0.3ms) begin transaction
83724
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
83725
+ Fixture Insert (0.2ms) INSERT 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)
83726
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
83728
+ Fixture Delete (0.1ms) DELETE FROM "users"
83729
+ Fixture Insert (0.1ms) 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 ('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)
83730
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) 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 ('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)
83732
+ Fixture Insert (0.1ms) 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
+  (3.4ms) commit transaction
83734
+  (0.1ms) begin transaction
83735
+ -------------------------------------------------
83736
+ AuthenticationTest: test_should_get_provider_name
83737
+ -------------------------------------------------
83738
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
83739
+  (0.1ms) rollback transaction
83740
+  (0.1ms) begin transaction
83741
+ --------------------------------------------------------------------------------
83742
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
83743
+ --------------------------------------------------------------------------------
83744
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
83745
+  (0.1ms) rollback transaction
83746
+  (0.1ms) begin transaction
83747
+ -------------------------------------------------------------------------
83748
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
83749
+ -------------------------------------------------------------------------
83750
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83751
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
83752
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
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
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
83756
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
83757
+ Logged in user found, creating associated authentication.
83758
+  (0.1ms) SAVEPOINT active_record_1
83759
+ SQL (0.4ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83761
+ Redirected to http://test.host/authentications
83762
+ Completed 302 Found in 18ms (ActiveRecord: 0.9ms)
83763
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
83764
+  (0.8ms) rollback transaction
83765
+  (0.1ms) begin transaction
83766
+ --------------------------------------------------------------------------
83767
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
83768
+ --------------------------------------------------------------------------
83769
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83770
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
83771
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
83772
+ Processing by Contour::AuthenticationsController#destroy as JS
83773
+ Parameters: {"id"=>"949717663"}
83774
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
83775
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
83776
+  (0.0ms) SAVEPOINT active_record_1
83777
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
83778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83779
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
83780
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
83781
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
83782
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
83783
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
83784
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
83785
+ Authentication Load (0.1ms) 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
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
83789
+  (0.7ms) rollback transaction
83790
+  (0.1ms) begin transaction
83791
+ -------------------------------------------------------------
83792
+ Contour::AuthenticationsControllerTest: test_should_get_index
83793
+ -------------------------------------------------------------
83794
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83795
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
83796
+ Processing by Contour::AuthenticationsController#index as HTML
83797
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
83798
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
83799
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
83800
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
83801
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
83802
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
83803
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
83804
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["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
+  (0.1ms) rollback transaction
83810
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83817
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'u6K7eRzEkp5ano3w7gzo' LIMIT 1
83818
+  (0.0ms) SAVEPOINT active_record_1
83819
+ SQL (0.4ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["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
+  (0.1ms) 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
+  (0.8ms) rollback transaction
83846
+  (0.1ms) 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
+  (0.1ms) rollback transaction
83856
+  (0.1ms) begin transaction
83857
+ -------------------------------------------------------------------------------
83858
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
83859
+ -------------------------------------------------------------------------------
83860
+  (0.2ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SAVEPOINT active_record_1
83865
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
83866
+ Binary data inserted for `string` type on column `encrypted_password`
83867
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83869
+ Redirected to http://test.host/users/login
83870
+ Completed 302 Found in 20ms (ActiveRecord: 0.9ms)
83871
+  (0.1ms) SELECT COUNT(*) FROM "users"
83872
+  (0.8ms) rollback transaction
83873
+  (0.1ms) begin transaction
83874
+ --------------------------------------------------------------------------------------------
83875
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
83876
+ --------------------------------------------------------------------------------------------
83877
+  (0.1ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SAVEPOINT active_record_1
83882
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
83883
+ Binary data inserted for `string` type on column `encrypted_password`
83884
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83886
+ Redirected to http://test.host/users/login
83887
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
83888
+  (0.1ms) SELECT COUNT(*) FROM "users"
83889
+  (0.8ms) rollback transaction
83890
+  (0.1ms) begin transaction
83891
+ ---------------------------------------------------------------------------------------------
83892
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
83893
+ ---------------------------------------------------------------------------------------------
83894
+  (0.1ms) SELECT COUNT(*) FROM "users"
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
+  (0.2ms) SELECT COUNT(*) FROM "users"
83902
+  (0.1ms) rollback transaction
83903
+  (0.1ms) begin transaction
83904
+ ----------------------------------------------------------------------
83905
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
83906
+ ----------------------------------------------------------------------
83907
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83908
+ Processing by Contour::SessionsController#create as JSON
83909
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
83910
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83911
+  (0.1ms) SAVEPOINT active_record_1
83912
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83914
+ Completed 200 OK in 77ms (Views: 0.3ms | ActiveRecord: 0.7ms)
83915
+  (1.1ms) rollback transaction
83916
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
83923
+  (0.2ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
83924
+ Redirected to http://test.host/auth/google_apps
83925
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
83926
+  (0.1ms) rollback transaction
83927
+  (0.1ms) begin transaction
83928
+ ----------------------------------------------------------------------------------------------
83929
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
83930
+ ----------------------------------------------------------------------------------------------
83931
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
83935
+  (0.1ms) 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
+  (0.1ms) rollback transaction
83939
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
83946
+  (0.1ms) 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
+  (0.1ms) rollback transaction
83956
+  (0.1ms) begin transaction
83957
+ -----------------------------------------------------
83958
+ ContourHelperTest: test_should_show_sort_field_helper
83959
+ -----------------------------------------------------
83960
+  (0.1ms) rollback transaction
83961
+  (0.1ms) begin transaction
83962
+ ---------------------------------------------------------------------
83963
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
83964
+ ---------------------------------------------------------------------
83965
+  (0.1ms) rollback transaction
83966
+  (0.1ms) begin transaction
83967
+ -----------------------
83968
+ ContourTest: test_truth
83969
+ -----------------------
83970
+  (0.1ms) rollback transaction
83971
+  (0.0ms) begin transaction
83972
+ --------------------------------------------------------------------
83973
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
83974
+ --------------------------------------------------------------------
83975
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
83976
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
83977
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
83982
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
83983
+ Binary data inserted for `string` type on column `encrypted_password`
83984
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83986
+  (0.0ms) SAVEPOINT active_record_1
83987
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83988
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
83989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
83990
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
83991
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
83996
+  (0.1ms) SAVEPOINT active_record_1
83997
+  (0.0ms) 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
+  (24.6ms) rollback transaction
84007
+  (0.1ms) begin transaction
84008
+ --------------------------------------------------------
84009
+ NavigationTest: test_friendly_url_forwarding_after_login
84010
+ --------------------------------------------------------
84011
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84012
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84013
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
84018
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
84019
+ Binary data inserted for `string` type on column `encrypted_password`
84020
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84022
+  (0.0ms) SAVEPOINT active_record_1
84023
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84024
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84026
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
84027
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
84032
+  (0.1ms) SAVEPOINT active_record_1
84033
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+  (0.9ms) rollback transaction
84042
+  (0.1ms) begin transaction
84043
+ --------------------------------------------------------------------
84044
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
84045
+ --------------------------------------------------------------------
84046
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84047
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84048
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
84053
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
84054
+ Binary data inserted for `string` type on column `encrypted_password`
84055
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84057
+  (0.0ms) SAVEPOINT active_record_1
84058
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84059
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84061
+ SQL (0.2ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
84062
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
84067
+  (0.1ms) SAVEPOINT active_record_1
84068
+  (0.0ms) 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
+  (0.8ms) rollback transaction
84078
+  (0.1ms) begin transaction
84079
+ -------------------------------------------------------------
84080
+ NavigationTest: test_root_navigation_redirected_to_login_page
84081
+ -------------------------------------------------------------
84082
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84083
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84084
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) rollback transaction
84089
+  (0.1ms) begin transaction
84090
+ -------------------------------------------------------------------------
84091
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
84092
+ -------------------------------------------------------------------------
84093
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84094
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84095
+ User Load (0.0ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
84099
+  (0.1ms) SAVEPOINT active_record_1
84100
+ SQL (0.4ms) 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", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:03:18 UTC +00:00]]
84101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84102
+ Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 0.6ms)
84103
+  (0.7ms) rollback transaction
84104
+  (0.1ms) begin transaction
84105
+ ------------------------------------------------------------------------------------------------
84106
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
84107
+ ------------------------------------------------------------------------------------------------
84108
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84109
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84110
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
84114
+ Completed 401 Unauthorized in 76ms
84115
+  (0.1ms) rollback transaction
84116
+  (0.1ms) begin transaction
84117
+ ------------------------------------
84118
+ UserTest: test_should_apply_omniauth
84119
+ ------------------------------------
84120
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84121
+  (0.1ms) rollback transaction
84122
+  (0.1ms) begin transaction
84123
+ --------------------------------------
84124
+ UserTest: test_should_get_reverse_name
84125
+ --------------------------------------
84126
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84127
+  (0.0ms) rollback transaction
84128
+  (0.3ms) begin transaction
84129
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
84130
+ Fixture Insert (0.2ms) INSERT 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)
84131
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
84133
+ Fixture Delete (0.1ms) DELETE FROM "users"
84134
+ Fixture Insert (0.1ms) 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 ('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)
84135
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) 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 ('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)
84137
+ Fixture Insert (0.1ms) 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
+  (3.8ms) commit transaction
84139
+  (0.1ms) begin transaction
84140
+ -------------------------------------------------
84141
+ AuthenticationTest: test_should_get_provider_name
84142
+ -------------------------------------------------
84143
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
84144
+  (0.1ms) rollback transaction
84145
+  (0.1ms) begin transaction
84146
+ --------------------------------------------------------------------------------
84147
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
84148
+ --------------------------------------------------------------------------------
84149
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
84150
+  (0.1ms) rollback transaction
84151
+  (0.0ms) begin transaction
84152
+ -------------------------------------------------------------------------
84153
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
84154
+ -------------------------------------------------------------------------
84155
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84156
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
84157
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
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
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
84161
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
84162
+ Logged in user found, creating associated authentication.
84163
+  (0.1ms) SAVEPOINT active_record_1
84164
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84166
+ Redirected to http://test.host/authentications
84167
+ Completed 302 Found in 22ms (ActiveRecord: 1.0ms)
84168
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
84169
+  (1.1ms) rollback transaction
84170
+  (0.1ms) begin transaction
84171
+ --------------------------------------------------------------------------
84172
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
84173
+ --------------------------------------------------------------------------
84174
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84175
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
84176
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
84177
+ Processing by Contour::AuthenticationsController#destroy as JS
84178
+ Parameters: {"id"=>"949717663"}
84179
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
84180
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
84181
+  (0.1ms) SAVEPOINT active_record_1
84182
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
84183
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84184
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
84185
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
84186
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
84187
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
84188
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
84189
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
84190
+ Authentication Load (0.1ms) 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
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
84194
+  (0.7ms) rollback transaction
84195
+  (0.1ms) begin transaction
84196
+ -------------------------------------------------------------
84197
+ Contour::AuthenticationsControllerTest: test_should_get_index
84198
+ -------------------------------------------------------------
84199
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84200
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
84201
+ Processing by Contour::AuthenticationsController#index as HTML
84202
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
84203
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
84204
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
84205
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
84206
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
84207
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
84208
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
84209
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["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
+  (0.1ms) rollback transaction
84215
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
84222
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'ueyH1PsTmyHHDVGUxk6U' LIMIT 1
84223
+  (0.0ms) SAVEPOINT active_record_1
84224
+ SQL (0.5ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["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
+  (0.1ms) 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
+  (1.1ms) rollback transaction
84251
+  (0.1ms) 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
+  (0.1ms) rollback transaction
84261
+  (0.1ms) begin transaction
84262
+ -------------------------------------------------------------------------------
84263
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
84264
+ -------------------------------------------------------------------------------
84265
+  (0.2ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SAVEPOINT active_record_1
84270
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
84271
+ Binary data inserted for `string` type on column `encrypted_password`
84272
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84274
+ Redirected to http://test.host/users/login
84275
+ Completed 302 Found in 18ms (ActiveRecord: 0.8ms)
84276
+  (0.1ms) SELECT COUNT(*) FROM "users"
84277
+  (1.0ms) rollback transaction
84278
+  (0.1ms) begin transaction
84279
+ --------------------------------------------------------------------------------------------
84280
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
84281
+ --------------------------------------------------------------------------------------------
84282
+  (0.2ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SAVEPOINT active_record_1
84287
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
84288
+ Binary data inserted for `string` type on column `encrypted_password`
84289
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84291
+ Redirected to http://test.host/users/login
84292
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
84293
+  (0.1ms) SELECT COUNT(*) FROM "users"
84294
+  (0.8ms) rollback transaction
84295
+  (0.1ms) begin transaction
84296
+ ---------------------------------------------------------------------------------------------
84297
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
84298
+ ---------------------------------------------------------------------------------------------
84299
+  (0.1ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SELECT COUNT(*) FROM "users"
84307
+  (0.1ms) rollback transaction
84308
+  (0.1ms) begin transaction
84309
+ ----------------------------------------------------------------------
84310
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
84311
+ ----------------------------------------------------------------------
84312
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84313
+ Processing by Contour::SessionsController#create as JSON
84314
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
84315
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
84316
+  (0.1ms) SAVEPOINT active_record_1
84317
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84319
+ Completed 200 OK in 78ms (Views: 0.3ms | ActiveRecord: 0.7ms)
84320
+  (0.7ms) rollback transaction
84321
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
84328
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
84329
+ Redirected to http://test.host/auth/google_apps
84330
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
84331
+  (0.1ms) rollback transaction
84332
+  (0.0ms) begin transaction
84333
+ ----------------------------------------------------------------------------------------------
84334
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
84335
+ ----------------------------------------------------------------------------------------------
84336
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
84340
+  (0.1ms) 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
+  (0.1ms) rollback transaction
84344
+  (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
84351
+  (0.1ms) 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
+  (0.1ms) rollback transaction
84361
+  (0.1ms) begin transaction
84362
+ -----------------------------------------------------
84363
+ ContourHelperTest: test_should_show_sort_field_helper
84364
+ -----------------------------------------------------
84365
+  (0.1ms) rollback transaction
84366
+  (0.1ms) begin transaction
84367
+ ---------------------------------------------------------------------
84368
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
84369
+ ---------------------------------------------------------------------
84370
+  (0.1ms) rollback transaction
84371
+  (0.0ms) begin transaction
84372
+ -----------------------
84373
+ ContourTest: test_truth
84374
+ -----------------------
84375
+  (0.1ms) rollback transaction
84376
+  (0.1ms) begin transaction
84377
+ --------------------------------------------------------------------
84378
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
84379
+ --------------------------------------------------------------------
84380
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84381
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84382
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
84387
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
84388
+ Binary data inserted for `string` type on column `encrypted_password`
84389
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84391
+  (0.0ms) SAVEPOINT active_record_1
84392
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84393
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84395
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
84396
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
84401
+  (0.1ms) SAVEPOINT active_record_1
84402
+  (0.0ms) 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
+  (0.9ms) rollback transaction
84412
+  (0.1ms) begin transaction
84413
+ --------------------------------------------------------
84414
+ NavigationTest: test_friendly_url_forwarding_after_login
84415
+ --------------------------------------------------------
84416
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84417
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84418
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
84423
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
84424
+ Binary data inserted for `string` type on column `encrypted_password`
84425
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84427
+  (0.0ms) SAVEPOINT active_record_1
84428
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84429
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84431
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
84432
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
84437
+  (0.1ms) SAVEPOINT active_record_1
84438
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.1ms) 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
+  (0.8ms) rollback transaction
84447
+  (0.1ms) begin transaction
84448
+ --------------------------------------------------------------------
84449
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
84450
+ --------------------------------------------------------------------
84451
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84452
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84453
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
84458
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
84459
+ Binary data inserted for `string` type on column `encrypted_password`
84460
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84462
+  (0.0ms) SAVEPOINT active_record_1
84463
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84464
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84465
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84466
+ SQL (0.2ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
84467
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
84472
+  (0.0ms) SAVEPOINT active_record_1
84473
+  (0.1ms) 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
+  (0.8ms) rollback transaction
84483
+  (0.1ms) begin transaction
84484
+ -------------------------------------------------------------
84485
+ NavigationTest: test_root_navigation_redirected_to_login_page
84486
+ -------------------------------------------------------------
84487
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84488
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84489
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) rollback transaction
84494
+  (0.0ms) begin transaction
84495
+ -------------------------------------------------------------------------
84496
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
84497
+ -------------------------------------------------------------------------
84498
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84499
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84500
+ User Load (0.0ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
84504
+  (0.1ms) SAVEPOINT active_record_1
84505
+ SQL (0.4ms) 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", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:08:36 UTC +00:00]]
84506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84507
+ Completed 200 OK in 78ms (Views: 0.2ms | ActiveRecord: 0.7ms)
84508
+  (0.7ms) rollback transaction
84509
+  (0.1ms) begin transaction
84510
+ ------------------------------------------------------------------------------------------------
84511
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
84512
+ ------------------------------------------------------------------------------------------------
84513
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84514
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84515
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
84519
+ Completed 401 Unauthorized in 75ms
84520
+  (0.1ms) rollback transaction
84521
+  (0.1ms) begin transaction
84522
+ ------------------------------------
84523
+ UserTest: test_should_apply_omniauth
84524
+ ------------------------------------
84525
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84526
+  (0.1ms) rollback transaction
84527
+  (0.1ms) begin transaction
84528
+ --------------------------------------
84529
+ UserTest: test_should_get_reverse_name
84530
+ --------------------------------------
84531
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84532
+  (0.1ms) rollback transaction
84533
+  (0.3ms) begin transaction
84534
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
84535
+ Fixture Insert (0.3ms) INSERT 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)
84536
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
84538
+ Fixture Delete (0.1ms) DELETE FROM "users"
84539
+ Fixture Insert (0.1ms) 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 ('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)
84540
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) 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 ('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)
84542
+ Fixture Insert (0.1ms) 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
+  (2.6ms) commit transaction
84544
+  (0.1ms) begin transaction
84545
+ -------------------------------------------------
84546
+ AuthenticationTest: test_should_get_provider_name
84547
+ -------------------------------------------------
84548
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
84549
+  (0.1ms) rollback transaction
84550
+  (0.1ms) begin transaction
84551
+ --------------------------------------------------------------------------------
84552
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
84553
+ --------------------------------------------------------------------------------
84554
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
84555
+  (0.1ms) rollback transaction
84556
+  (0.1ms) begin transaction
84557
+ -------------------------------------------------------------------------
84558
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
84559
+ -------------------------------------------------------------------------
84560
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84561
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
84562
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
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
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
84566
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
84567
+ Logged in user found, creating associated authentication.
84568
+  (0.1ms) SAVEPOINT active_record_1
84569
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84571
+ Redirected to http://test.host/authentications
84572
+ Completed 302 Found in 19ms (ActiveRecord: 0.9ms)
84573
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
84574
+  (0.5ms) rollback transaction
84575
+  (0.1ms) begin transaction
84576
+ --------------------------------------------------------------------------
84577
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
84578
+ --------------------------------------------------------------------------
84579
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84580
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
84581
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
84582
+ Processing by Contour::AuthenticationsController#destroy as JS
84583
+ Parameters: {"id"=>"949717663"}
84584
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
84585
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
84586
+  (0.1ms) SAVEPOINT active_record_1
84587
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
84588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84589
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
84590
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
84591
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
84592
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
84593
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
84594
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
84595
+ Authentication Load (0.1ms) 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
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
84599
+  (0.7ms) rollback transaction
84600
+  (0.1ms) begin transaction
84601
+ -------------------------------------------------------------
84602
+ Contour::AuthenticationsControllerTest: test_should_get_index
84603
+ -------------------------------------------------------------
84604
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84605
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
84606
+ Processing by Contour::AuthenticationsController#index as HTML
84607
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
84608
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
84609
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
84610
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
84611
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
84612
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
84613
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
84614
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["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
+  (0.1ms) rollback transaction
84620
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
84627
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'VavbVi9Jn1SvqYBnTubn' LIMIT 1
84628
+  (0.1ms) SAVEPOINT active_record_1
84629
+ SQL (0.5ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["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
+  (0.1ms) 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
+  (45.5ms) rollback transaction
84656
+  (0.1ms) 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
+  (0.1ms) rollback transaction
84666
+  (0.1ms) begin transaction
84667
+ -------------------------------------------------------------------------------
84668
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
84669
+ -------------------------------------------------------------------------------
84670
+  (0.2ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SAVEPOINT active_record_1
84675
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
84676
+ Binary data inserted for `string` type on column `encrypted_password`
84677
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84679
+ Redirected to http://test.host/users/login
84680
+ Completed 302 Found in 19ms (ActiveRecord: 0.8ms)
84681
+  (0.1ms) SELECT COUNT(*) FROM "users"
84682
+  (0.8ms) rollback transaction
84683
+  (0.1ms) begin transaction
84684
+ --------------------------------------------------------------------------------------------
84685
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
84686
+ --------------------------------------------------------------------------------------------
84687
+  (0.1ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SAVEPOINT active_record_1
84692
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
84693
+ Binary data inserted for `string` type on column `encrypted_password`
84694
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84696
+ Redirected to http://test.host/users/login
84697
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
84698
+  (0.1ms) SELECT COUNT(*) FROM "users"
84699
+  (0.8ms) rollback transaction
84700
+  (0.1ms) begin transaction
84701
+ ---------------------------------------------------------------------------------------------
84702
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
84703
+ ---------------------------------------------------------------------------------------------
84704
+  (0.1ms) SELECT COUNT(*) FROM "users"
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
+  (0.1ms) SELECT COUNT(*) FROM "users"
84712
+  (0.1ms) rollback transaction
84713
+  (0.1ms) begin transaction
84714
+ ----------------------------------------------------------------------
84715
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
84716
+ ----------------------------------------------------------------------
84717
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84718
+ Processing by Contour::SessionsController#create as JSON
84719
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
84720
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
84721
+  (0.1ms) SAVEPOINT active_record_1
84722
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84724
+ Completed 200 OK in 78ms (Views: 0.3ms | ActiveRecord: 0.7ms)
84725
+  (21.2ms) rollback transaction
84726
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
84733
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
84734
+ Redirected to http://test.host/auth/google_apps
84735
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
84736
+  (0.1ms) rollback transaction
84737
+  (0.1ms) begin transaction
84738
+ ----------------------------------------------------------------------------------------------
84739
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
84740
+ ----------------------------------------------------------------------------------------------
84741
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
84745
+  (0.1ms) 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
+  (0.1ms) rollback transaction
84749
+  (0.0ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
84756
+  (0.1ms) 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
+  (0.1ms) rollback transaction
84766
+  (0.1ms) begin transaction
84767
+ -----------------------------------------------------
84768
+ ContourHelperTest: test_should_show_sort_field_helper
84769
+ -----------------------------------------------------
84770
+  (0.1ms) rollback transaction
84771
+  (0.1ms) begin transaction
84772
+ ---------------------------------------------------------------------
84773
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
84774
+ ---------------------------------------------------------------------
84775
+  (0.1ms) rollback transaction
84776
+  (0.0ms) begin transaction
84777
+ -----------------------
84778
+ ContourTest: test_truth
84779
+ -----------------------
84780
+  (0.1ms) rollback transaction
84781
+  (0.0ms) begin transaction
84782
+ --------------------------------------------------------------------
84783
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
84784
+ --------------------------------------------------------------------
84785
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84786
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84787
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
84792
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
84793
+ Binary data inserted for `string` type on column `encrypted_password`
84794
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84796
+  (0.1ms) SAVEPOINT active_record_1
84797
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84798
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84800
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
84801
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
84806
+  (0.1ms) SAVEPOINT active_record_1
84807
+  (0.0ms) 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
+  (35.9ms) rollback transaction
84817
+  (0.2ms) begin transaction
84818
+ --------------------------------------------------------
84819
+ NavigationTest: test_friendly_url_forwarding_after_login
84820
+ --------------------------------------------------------
84821
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84822
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84823
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
84828
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
84829
+ Binary data inserted for `string` type on column `encrypted_password`
84830
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84832
+  (0.1ms) SAVEPOINT active_record_1
84833
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84834
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84836
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
84837
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
84842
+  (0.1ms) SAVEPOINT active_record_1
84843
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
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
+ User Load (0.2ms) 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
+  (0.9ms) rollback transaction
84852
+  (0.1ms) begin transaction
84853
+ --------------------------------------------------------------------
84854
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
84855
+ --------------------------------------------------------------------
84856
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84857
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84858
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) SAVEPOINT active_record_1
84863
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
84864
+ Binary data inserted for `string` type on column `encrypted_password`
84865
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
84867
+  (0.0ms) SAVEPOINT active_record_1
84868
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84869
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
84870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84871
+ SQL (0.2ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
84872
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
84877
+  (0.1ms) SAVEPOINT active_record_1
84878
+  (0.0ms) 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
+  (0.7ms) rollback transaction
84888
+  (0.1ms) begin transaction
84889
+ -------------------------------------------------------------
84890
+ NavigationTest: test_root_navigation_redirected_to_login_page
84891
+ -------------------------------------------------------------
84892
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84893
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84894
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) rollback transaction
84899
+  (0.0ms) begin transaction
84900
+ -------------------------------------------------------------------------
84901
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
84902
+ -------------------------------------------------------------------------
84903
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84904
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84905
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
84909
+  (0.1ms) SAVEPOINT active_record_1
84910
+ SQL (0.4ms) 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", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 03 Sep 2013 17:19:12 UTC +00:00]]
84911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
84912
+ Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 0.7ms)
84913
+  (1.0ms) rollback transaction
84914
+  (0.1ms) begin transaction
84915
+ ------------------------------------------------------------------------------------------------
84916
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
84917
+ ------------------------------------------------------------------------------------------------
84918
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84919
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
84920
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
84924
+ Completed 401 Unauthorized in 75ms
84925
+  (0.1ms) rollback transaction
84926
+  (0.1ms) begin transaction
84927
+ ------------------------------------
84928
+ UserTest: test_should_apply_omniauth
84929
+ ------------------------------------
84930
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
84931
+  (0.1ms) rollback transaction
84932
+  (0.0ms) begin transaction
84933
+ --------------------------------------
84934
+ UserTest: test_should_get_reverse_name
81344
84935
  --------------------------------------
81345
84936
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
81346
84937
   (0.1ms) rollback transaction