contour 2.2.0.beta1 → 2.2.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
@@ -87362,6 +87362,816 @@ UserTest: test_should_apply_omniauth
87362
87362
   (0.1ms) begin transaction
87363
87363
  --------------------------------------
87364
87364
  UserTest: test_should_get_reverse_name
87365
+ --------------------------------------
87366
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87367
+  (0.1ms) rollback transaction
87368
+  (0.3ms) begin transaction
87369
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
87370
+ 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-24 16:08:51', '2013-09-24 16:08:51', 949717663, 201799169)
87371
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-09-24 16:08:51', '2013-09-24 16:08:51', 876923740, 201799169)
87372
+ 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-24 16:08:51', '2013-09-24 16:08:51', 864673665, 201799169)
87373
+ Fixture Delete (0.1ms) DELETE FROM "users"
87374
+ 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-24 16:08:51', '2013-09-24 16:08:51', 201799169)
87375
+ 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-24 16:08:51', '2013-09-24 16:08:51', 999914115)
87376
+ 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-24 16:08:51', '2013-09-24 16:08:51', 725306934)
87377
+ 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-24 16:08:51', '2013-09-24 16:08:51', 349534908)
87378
+  (1.7ms) commit transaction
87379
+  (0.1ms) begin transaction
87380
+ -------------------------------------------------
87381
+ AuthenticationTest: test_should_get_provider_name
87382
+ -------------------------------------------------
87383
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
87384
+  (0.1ms) rollback transaction
87385
+  (0.1ms) begin transaction
87386
+ --------------------------------------------------------------------------------
87387
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
87388
+ --------------------------------------------------------------------------------
87389
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
87390
+  (0.1ms) rollback transaction
87391
+  (0.0ms) begin transaction
87392
+ -------------------------------------------------------------------------
87393
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
87394
+ -------------------------------------------------------------------------
87395
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87396
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
87397
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
87398
+ Processing by Contour::AuthenticationsController#create as HTML
87399
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-09-24 16:08:51 UTC", "updated_at"=>"2013-09-24 16:08:51 UTC"}}
87400
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
87401
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
87402
+ Logged in user found, creating associated authentication.
87403
+  (0.1ms) SAVEPOINT active_record_1
87404
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 16:08:51 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 24 Sep 2013 16:08:51 UTC +00:00], ["user_id", 201799169]]
87405
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87406
+ Redirected to http://test.host/authentications
87407
+ Completed 302 Found in 54ms (ActiveRecord: 0.9ms)
87408
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
87409
+  (0.8ms) rollback transaction
87410
+  (0.1ms) begin transaction
87411
+ --------------------------------------------------------------------------
87412
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
87413
+ --------------------------------------------------------------------------
87414
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87415
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
87416
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
87417
+ Processing by Contour::AuthenticationsController#destroy as JS
87418
+ Parameters: {"id"=>"949717663"}
87419
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
87420
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
87421
+  (0.0ms) SAVEPOINT active_record_1
87422
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
87423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87424
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
87425
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
87426
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
87427
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
87428
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
87429
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
87430
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["user_id", 201799169]]
87431
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_add_remove_table.html.erb (17.3ms)
87432
+ Completed 200 OK in 41ms (Views: 35.4ms | ActiveRecord: 1.8ms)
87433
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
87434
+  (0.7ms) rollback transaction
87435
+  (0.1ms) begin transaction
87436
+ -------------------------------------------------------------
87437
+ Contour::AuthenticationsControllerTest: test_should_get_index
87438
+ -------------------------------------------------------------
87439
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87440
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
87441
+ Processing by Contour::AuthenticationsController#index as HTML
87442
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
87443
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
87444
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
87445
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
87446
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
87447
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
87448
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
87449
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["user_id", 201799169]]
87450
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_add_remove_table.html.erb (12.0ms)
87451
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_authentications.html.erb (13.2ms)
87452
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.2ms)
87453
+ Completed 200 OK in 89ms (Views: 87.6ms | ActiveRecord: 0.9ms)
87454
+  (0.2ms) rollback transaction
87455
+  (0.1ms) begin transaction
87456
+ -----------------------------------------------------------------------------
87457
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
87458
+ -----------------------------------------------------------------------------
87459
+ Processing by Contour::PasswordsController#create as HTML
87460
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
87461
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
87462
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'NNt3wz3tJXrnyY4LoS96' LIMIT 1
87463
+  (0.0ms) SAVEPOINT active_record_1
87464
+ SQL (0.5ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "NNt3wz3tJXrnyY4LoS96"], ["reset_password_sent_at", Tue, 24 Sep 2013 16:08:51 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 16:08:51 UTC +00:00]]
87465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87466
+
87467
+ Sent mail to valid@example.com (12.2ms)
87468
+ Date: Tue, 24 Sep 2013 12:08:51 -0400
87469
+ From: please-change-me-at-config-initializers-devise@example.com
87470
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
87471
+ To: valid@example.com
87472
+ Message-ID: <5241b91382802_138643ffa418606d4920ec@edge.partners.org.mail>
87473
+ Subject: Reset password instructions
87474
+ Mime-Version: 1.0
87475
+ Content-Type: text/html;
87476
+ charset=UTF-8
87477
+ Content-Transfer-Encoding: 7bit
87478
+
87479
+ <p>Hello valid@example.com!</p>
87480
+
87481
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
87482
+
87483
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=NNt3wz3tJXrnyY4LoS96">Change my password</a></p>
87484
+
87485
+ <p>If you didn't request this, please ignore this email.</p>
87486
+ <p>Your password won't change until you access the link above and create a new one.</p>
87487
+
87488
+ Redirected to http://test.host/users/login
87489
+ Completed 302 Found in 125ms (ActiveRecord: 0.9ms)
87490
+  (0.6ms) rollback transaction
87491
+  (0.1ms) begin transaction
87492
+ -----------------------------------------------------------------------------
87493
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
87494
+ -----------------------------------------------------------------------------
87495
+ Processing by Contour::PasswordsController#new as HTML
87496
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.4ms)
87497
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.0ms)
87498
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.7ms)
87499
+ Completed 200 OK in 57ms (Views: 56.4ms | ActiveRecord: 0.0ms)
87500
+  (0.1ms) rollback transaction
87501
+  (0.1ms) begin transaction
87502
+ -------------------------------------------------------------------------------
87503
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
87504
+ -------------------------------------------------------------------------------
87505
+  (0.2ms) SELECT COUNT(*) FROM "users"
87506
+ Processing by Contour::RegistrationsController#create as HTML
87507
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
87508
+ Unpermitted parameters: spam
87509
+  (0.1ms) SAVEPOINT active_record_1
87510
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
87511
+ Binary data inserted for `string` type on column `encrypted_password`
87512
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 16:08:51 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$uh7N/kNL5ZpY4zxSqi69H.kjnFaJ4OiZIFa4QDH3BuRVkIIKa9c0O"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 24 Sep 2013 16:08:51 UTC +00:00]]
87513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87514
+ Redirected to http://test.host/users/login
87515
+ Completed 302 Found in 18ms (ActiveRecord: 0.8ms)
87516
+  (0.1ms) SELECT COUNT(*) FROM "users"
87517
+  (0.8ms) rollback transaction
87518
+  (0.1ms) begin transaction
87519
+ --------------------------------------------------------------------------------------------
87520
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
87521
+ --------------------------------------------------------------------------------------------
87522
+  (0.2ms) SELECT COUNT(*) FROM "users"
87523
+ Processing by Contour::RegistrationsController#create as HTML
87524
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
87525
+ Unpermitted parameters: status
87526
+  (0.1ms) SAVEPOINT active_record_1
87527
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
87528
+ Binary data inserted for `string` type on column `encrypted_password`
87529
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 16:08:51 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$Bbi0GMkNnntfhsp7byjEUeMqAlNGBWert3G5fOITZbR9cWtAMfVLG"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 24 Sep 2013 16:08:51 UTC +00:00]]
87530
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87531
+ Redirected to http://test.host/users/login
87532
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
87533
+  (0.1ms) SELECT COUNT(*) FROM "users"
87534
+  (1.1ms) rollback transaction
87535
+  (0.1ms) begin transaction
87536
+ ---------------------------------------------------------------------------------------------
87537
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
87538
+ ---------------------------------------------------------------------------------------------
87539
+  (0.2ms) SELECT COUNT(*) FROM "users"
87540
+ Processing by Contour::RegistrationsController#create as HTML
87541
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
87542
+ 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"}
87543
+ Unpermitted parameters: spam
87544
+ Redirected to http://test.host/users/login
87545
+ Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
87546
+  (0.2ms) SELECT COUNT(*) FROM "users"
87547
+  (0.1ms) rollback transaction
87548
+  (0.1ms) begin transaction
87549
+ ----------------------------------------------------------------------
87550
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
87551
+ ----------------------------------------------------------------------
87552
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87553
+ Processing by Contour::SessionsController#create as JSON
87554
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
87555
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
87556
+  (0.1ms) SAVEPOINT active_record_1
87557
+ 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, 24 Sep 2013 16:08:51 UTC +00:00], ["current_sign_in_at", Tue, 24 Sep 2013 16:08:51 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 24 Sep 2013 16:08:51 UTC +00:00]]
87558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87559
+ Completed 200 OK in 84ms (Views: 0.4ms | ActiveRecord: 0.8ms)
87560
+  (32.5ms) rollback transaction
87561
+  (0.2ms) begin transaction
87562
+ ----------------------------------------------------------------------------------------------------------
87563
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
87564
+ ----------------------------------------------------------------------------------------------------------
87565
+ Processing by Contour::SessionsController#create as HTML
87566
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
87567
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
87568
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
87569
+ Redirected to http://test.host/auth/google_apps
87570
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
87571
+  (0.1ms) rollback transaction
87572
+  (0.1ms) begin transaction
87573
+ ----------------------------------------------------------------------------------------------
87574
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
87575
+ ----------------------------------------------------------------------------------------------
87576
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87577
+ Processing by Contour::SessionsController#create as HTML
87578
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
87579
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
87580
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
87581
+ Redirected to http://test.host/auth/ldap
87582
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
87583
+  (0.1ms) rollback transaction
87584
+  (0.0ms) begin transaction
87585
+ --------------------------------------------------------------------------
87586
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
87587
+ --------------------------------------------------------------------------
87588
+ Processing by Contour::SessionsController#create as HTML
87589
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
87590
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
87591
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
87592
+ Completed 401 Unauthorized in 3ms
87593
+ Processing by Contour::SessionsController#new as HTML
87594
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
87595
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
87596
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.0ms)
87597
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.2ms)
87598
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.7ms)
87599
+ Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.0ms)
87600
+  (0.1ms) rollback transaction
87601
+  (0.1ms) begin transaction
87602
+ -----------------------------------------------------
87603
+ ContourHelperTest: test_should_show_sort_field_helper
87604
+ -----------------------------------------------------
87605
+  (0.1ms) rollback transaction
87606
+  (0.1ms) begin transaction
87607
+ ---------------------------------------------------------------------
87608
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
87609
+ ---------------------------------------------------------------------
87610
+  (0.1ms) rollback transaction
87611
+  (0.1ms) begin transaction
87612
+ -----------------------
87613
+ ContourTest: test_truth
87614
+ -----------------------
87615
+  (0.1ms) rollback transaction
87616
+  (0.1ms) begin transaction
87617
+ --------------------------------------------------------------------
87618
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
87619
+ --------------------------------------------------------------------
87620
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87621
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
87622
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
87623
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-24 12:08:51 -0400
87624
+ Processing by WelcomeController#logged_in_page as HTML
87625
+ Completed 401 Unauthorized in 18ms
87626
+  (0.1ms) SAVEPOINT active_record_1
87627
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
87628
+ Binary data inserted for `string` type on column `encrypted_password`
87629
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 16:08:52 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$MmF5cWW82iBFK6nHBS5pBu62U5TeZqCZIRWqE4bPQzQ17thmLM7Hq"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 24 Sep 2013 16:08:52 UTC +00:00]]
87630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87631
+  (0.0ms) SAVEPOINT active_record_1
87632
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
87633
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
87634
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87635
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
87636
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
87637
+ Started POST "/users/login" for 127.0.0.1 at 2013-09-24 12:08:52 -0400
87638
+ Processing by Contour::SessionsController#create as HTML
87639
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
87640
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
87641
+  (0.1ms) SAVEPOINT active_record_1
87642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87643
+ Completed 401 Unauthorized in 6ms
87644
+ Started GET "/users/login" for 127.0.0.1 at 2013-09-24 12:08:52 -0400
87645
+ Processing by Contour::SessionsController#new as HTML
87646
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
87647
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
87648
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.5ms)
87649
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.3ms)
87650
+ Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.0ms)
87651
+  (0.9ms) rollback transaction
87652
+  (0.1ms) begin transaction
87653
+ --------------------------------------------------------
87654
+ NavigationTest: test_friendly_url_forwarding_after_login
87655
+ --------------------------------------------------------
87656
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87657
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
87658
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
87659
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-24 12:08:52 -0400
87660
+ Processing by WelcomeController#logged_in_page as HTML
87661
+ Completed 401 Unauthorized in 1ms
87662
+  (0.1ms) SAVEPOINT active_record_1
87663
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
87664
+ Binary data inserted for `string` type on column `encrypted_password`
87665
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 16:08:52 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$OY0YaMuxMTDn9zo.BGIBfOmvWlrB0CF8JHVQHfiHRuvZL7tTMrQum"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 24 Sep 2013 16:08:52 UTC +00:00]]
87666
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87667
+  (0.0ms) SAVEPOINT active_record_1
87668
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
87669
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
87670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87671
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
87672
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
87673
+ Started POST "/users/login" for 127.0.0.1 at 2013-09-24 12:08:52 -0400
87674
+ Processing by Contour::SessionsController#create as HTML
87675
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
87676
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
87677
+  (0.1ms) SAVEPOINT active_record_1
87678
+ 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, 24 Sep 2013 16:08:52 UTC +00:00], ["current_sign_in_at", Tue, 24 Sep 2013 16:08:52 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 24 Sep 2013 16:08:52 UTC +00:00]]
87679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87680
+ Redirected to http://www.example.com/logged_in_page
87681
+ Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
87682
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-24 12:08:52 -0400
87683
+ Processing by WelcomeController#logged_in_page as HTML
87684
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
87685
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.2ms)
87686
+  (0.8ms) rollback transaction
87687
+  (0.1ms) begin transaction
87688
+ --------------------------------------------------------------------
87689
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
87690
+ --------------------------------------------------------------------
87691
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87692
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
87693
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
87694
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-24 12:08:52 -0400
87695
+ Processing by WelcomeController#logged_in_page as HTML
87696
+ Completed 401 Unauthorized in 1ms
87697
+  (0.1ms) SAVEPOINT active_record_1
87698
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
87699
+ Binary data inserted for `string` type on column `encrypted_password`
87700
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 16:08:52 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$ulrE/nlk1qXvSuzfS3yqzOSudk0/8MG.TGNwGGBwtVM3iSkx1HhhO"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 24 Sep 2013 16:08:52 UTC +00:00]]
87701
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87702
+  (0.1ms) SAVEPOINT active_record_1
87703
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
87704
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
87705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87706
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
87707
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
87708
+ Started POST "/users/login" for 127.0.0.1 at 2013-09-24 12:08:52 -0400
87709
+ Processing by Contour::SessionsController#create as HTML
87710
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
87711
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
87712
+  (0.1ms) SAVEPOINT active_record_1
87713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87714
+ Completed 401 Unauthorized in 5ms
87715
+ Started GET "/users/login" for 127.0.0.1 at 2013-09-24 12:08:52 -0400
87716
+ Processing by Contour::SessionsController#new as HTML
87717
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.9ms)
87718
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
87719
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
87720
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.1ms)
87721
+ Completed 200 OK in 61ms (Views: 59.2ms | ActiveRecord: 0.0ms)
87722
+  (1.1ms) rollback transaction
87723
+  (0.1ms) begin transaction
87724
+ -------------------------------------------------------------
87725
+ NavigationTest: test_root_navigation_redirected_to_login_page
87726
+ -------------------------------------------------------------
87727
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87728
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
87729
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
87730
+ Started GET "/" for 127.0.0.1 at 2013-09-24 12:08:52 -0400
87731
+ Processing by WelcomeController#index as HTML
87732
+ Completed 401 Unauthorized in 1ms
87733
+  (0.1ms) rollback transaction
87734
+  (0.1ms) begin transaction
87735
+ -------------------------------------------------------------------------
87736
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
87737
+ -------------------------------------------------------------------------
87738
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87739
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
87740
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
87741
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-24 12:08:52 -0400
87742
+ Processing by WelcomeController#logged_in_page as JSON
87743
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
87744
+  (0.1ms) SAVEPOINT active_record_1
87745
+ 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, 24 Sep 2013 16:08:52 UTC +00:00], ["current_sign_in_at", Tue, 24 Sep 2013 16:08:52 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 24 Sep 2013 16:08:52 UTC +00:00]]
87746
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87747
+ Completed 200 OK in 81ms (Views: 0.2ms | ActiveRecord: 0.7ms)
87748
+  (0.9ms) rollback transaction
87749
+  (0.1ms) begin transaction
87750
+ ------------------------------------------------------------------------------------------------
87751
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
87752
+ ------------------------------------------------------------------------------------------------
87753
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87754
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
87755
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
87756
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-24 12:08:52 -0400
87757
+ Processing by WelcomeController#logged_in_page as JSON
87758
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
87759
+ Completed 401 Unauthorized in 79ms
87760
+  (0.1ms) rollback transaction
87761
+  (0.1ms) begin transaction
87762
+ ------------------------------------
87763
+ UserTest: test_should_apply_omniauth
87764
+ ------------------------------------
87765
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87766
+  (0.1ms) rollback transaction
87767
+  (0.1ms) begin transaction
87768
+ --------------------------------------
87769
+ UserTest: test_should_get_reverse_name
87770
+ --------------------------------------
87771
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87772
+  (0.1ms) rollback transaction
87773
+  (0.4ms) begin transaction
87774
+ Fixture Delete (0.6ms) DELETE FROM "authentications"
87775
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-09-24 16:12:22', '2013-09-24 16:12:22', 949717663, 201799169)
87776
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-09-24 16:12:22', '2013-09-24 16:12:22', 876923740, 201799169)
87777
+ 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-24 16:12:22', '2013-09-24 16:12:22', 864673665, 201799169)
87778
+ Fixture Delete (0.2ms) DELETE FROM "users"
87779
+ 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-24 16:12:22', '2013-09-24 16:12:22', 201799169)
87780
+ 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-24 16:12:22', '2013-09-24 16:12:22', 999914115)
87781
+ 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-24 16:12:22', '2013-09-24 16:12:22', 725306934)
87782
+ 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-24 16:12:22', '2013-09-24 16:12:22', 349534908)
87783
+  (32.1ms) commit transaction
87784
+  (0.1ms) begin transaction
87785
+ -------------------------------------------------
87786
+ AuthenticationTest: test_should_get_provider_name
87787
+ -------------------------------------------------
87788
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
87789
+  (0.1ms) rollback transaction
87790
+  (0.1ms) begin transaction
87791
+ --------------------------------------------------------------------------------
87792
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
87793
+ --------------------------------------------------------------------------------
87794
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
87795
+  (0.1ms) rollback transaction
87796
+  (0.0ms) begin transaction
87797
+ -------------------------------------------------------------------------
87798
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
87799
+ -------------------------------------------------------------------------
87800
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87801
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
87802
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
87803
+ Processing by Contour::AuthenticationsController#create as HTML
87804
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-09-24 16:12:22 UTC", "updated_at"=>"2013-09-24 16:12:22 UTC"}}
87805
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
87806
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
87807
+ Logged in user found, creating associated authentication.
87808
+  (0.1ms) SAVEPOINT active_record_1
87809
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 16:12:22 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 24 Sep 2013 16:12:22 UTC +00:00], ["user_id", 201799169]]
87810
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87811
+ Redirected to http://test.host/authentications
87812
+ Completed 302 Found in 57ms (ActiveRecord: 1.3ms)
87813
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
87814
+  (1.0ms) rollback transaction
87815
+  (0.1ms) begin transaction
87816
+ --------------------------------------------------------------------------
87817
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
87818
+ --------------------------------------------------------------------------
87819
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87820
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
87821
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
87822
+ Processing by Contour::AuthenticationsController#destroy as JS
87823
+ Parameters: {"id"=>"949717663"}
87824
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
87825
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
87826
+  (0.1ms) SAVEPOINT active_record_1
87827
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
87828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87829
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
87830
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
87831
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
87832
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
87833
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
87834
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
87835
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["user_id", 201799169]]
87836
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_add_remove_table.html.erb (22.6ms)
87837
+ Completed 200 OK in 44ms (Views: 38.5ms | ActiveRecord: 1.9ms)
87838
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
87839
+  (0.7ms) rollback transaction
87840
+  (0.1ms) begin transaction
87841
+ -------------------------------------------------------------
87842
+ Contour::AuthenticationsControllerTest: test_should_get_index
87843
+ -------------------------------------------------------------
87844
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87845
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
87846
+ Processing by Contour::AuthenticationsController#index as HTML
87847
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
87848
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'google_apps' LIMIT 1 [["user_id", 201799169]]
87849
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'open_id' LIMIT 1 [["user_id", 201799169]]
87850
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'ldap' LIMIT 1 [["user_id", 201799169]]
87851
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'twitter' LIMIT 1 [["user_id", 201799169]]
87852
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'facebook' LIMIT 1 [["user_id", 201799169]]
87853
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'linked_in' LIMIT 1 [["user_id", 201799169]]
87854
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."provider" = 'cas' LIMIT 1 [["user_id", 201799169]]
87855
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_add_remove_table.html.erb (8.0ms)
87856
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_authentications.html.erb (9.3ms)
87857
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.4ms)
87858
+ Completed 200 OK in 678ms (Views: 677.3ms | ActiveRecord: 0.5ms)
87859
+  (0.2ms) rollback transaction
87860
+  (0.1ms) begin transaction
87861
+ -----------------------------------------------------------------------------
87862
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
87863
+ -----------------------------------------------------------------------------
87864
+ Processing by Contour::PasswordsController#create as HTML
87865
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
87866
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
87867
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'zVcmRtqm85XaMykd89z3' LIMIT 1
87868
+  (0.1ms) SAVEPOINT active_record_1
87869
+ SQL (0.6ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "zVcmRtqm85XaMykd89z3"], ["reset_password_sent_at", Tue, 24 Sep 2013 16:12:23 UTC +00:00], ["updated_at", Tue, 24 Sep 2013 16:12:23 UTC +00:00]]
87870
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87871
+
87872
+ Sent mail to valid@example.com (12.9ms)
87873
+ Date: Tue, 24 Sep 2013 12:12:23 -0400
87874
+ From: please-change-me-at-config-initializers-devise@example.com
87875
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
87876
+ To: valid@example.com
87877
+ Message-ID: <5241b9e79a6e1_138f93feaed4606dc638e2@edge.partners.org.mail>
87878
+ Subject: Reset password instructions
87879
+ Mime-Version: 1.0
87880
+ Content-Type: text/html;
87881
+ charset=UTF-8
87882
+ Content-Transfer-Encoding: 7bit
87883
+
87884
+ <p>Hello valid@example.com!</p>
87885
+
87886
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
87887
+
87888
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=zVcmRtqm85XaMykd89z3">Change my password</a></p>
87889
+
87890
+ <p>If you didn't request this, please ignore this email.</p>
87891
+ <p>Your password won't change until you access the link above and create a new one.</p>
87892
+
87893
+ Redirected to http://test.host/users/login
87894
+ Completed 302 Found in 67ms (ActiveRecord: 1.1ms)
87895
+  (1.1ms) rollback transaction
87896
+  (0.1ms) begin transaction
87897
+ -----------------------------------------------------------------------------
87898
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
87899
+ -----------------------------------------------------------------------------
87900
+ Processing by Contour::PasswordsController#new as HTML
87901
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
87902
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.3ms)
87903
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.1ms)
87904
+ Completed 200 OK in 25ms (Views: 23.9ms | ActiveRecord: 0.0ms)
87905
+  (0.1ms) rollback transaction
87906
+  (0.1ms) begin transaction
87907
+ -------------------------------------------------------------------------------
87908
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
87909
+ -------------------------------------------------------------------------------
87910
+  (0.2ms) SELECT COUNT(*) FROM "users"
87911
+ Processing by Contour::RegistrationsController#create as HTML
87912
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
87913
+ Unpermitted parameters: spam
87914
+  (0.1ms) SAVEPOINT active_record_1
87915
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
87916
+ Binary data inserted for `string` type on column `encrypted_password`
87917
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 16:12:23 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$Urr2Kbwhs.XHkRS5tdeDhuB.SNQQoliHwi3iGnADfzs5aQ9q7r68i"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 24 Sep 2013 16:12:23 UTC +00:00]]
87918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87919
+ Redirected to http://test.host/users/login
87920
+ Completed 302 Found in 54ms (ActiveRecord: 0.8ms)
87921
+  (0.1ms) SELECT COUNT(*) FROM "users"
87922
+  (1.1ms) rollback transaction
87923
+  (0.1ms) begin transaction
87924
+ --------------------------------------------------------------------------------------------
87925
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
87926
+ --------------------------------------------------------------------------------------------
87927
+  (0.1ms) SELECT COUNT(*) FROM "users"
87928
+ Processing by Contour::RegistrationsController#create as HTML
87929
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
87930
+ Unpermitted parameters: status
87931
+  (0.1ms) SAVEPOINT active_record_1
87932
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
87933
+ Binary data inserted for `string` type on column `encrypted_password`
87934
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 16:12:23 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$Z3gLQacth0XoMzCTcBhfRek.43Ws9aYS5kaYw8ejNTjcDAtgx54Oa"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 24 Sep 2013 16:12:23 UTC +00:00]]
87935
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87936
+ Redirected to http://test.host/users/login
87937
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
87938
+  (0.1ms) SELECT COUNT(*) FROM "users"
87939
+  (1.1ms) rollback transaction
87940
+  (0.1ms) begin transaction
87941
+ ---------------------------------------------------------------------------------------------
87942
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
87943
+ ---------------------------------------------------------------------------------------------
87944
+  (0.2ms) SELECT COUNT(*) FROM "users"
87945
+ Processing by Contour::RegistrationsController#create as HTML
87946
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
87947
+ 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"}
87948
+ Unpermitted parameters: spam
87949
+ Redirected to http://test.host/users/login
87950
+ Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
87951
+  (0.1ms) SELECT COUNT(*) FROM "users"
87952
+  (0.1ms) rollback transaction
87953
+  (0.1ms) begin transaction
87954
+ ----------------------------------------------------------------------
87955
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
87956
+ ----------------------------------------------------------------------
87957
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87958
+ Processing by Contour::SessionsController#create as JSON
87959
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
87960
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
87961
+  (0.1ms) SAVEPOINT active_record_1
87962
+ 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, 24 Sep 2013 16:12:23 UTC +00:00], ["current_sign_in_at", Tue, 24 Sep 2013 16:12:23 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 24 Sep 2013 16:12:23 UTC +00:00]]
87963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87964
+ Completed 200 OK in 86ms (Views: 0.4ms | ActiveRecord: 0.7ms)
87965
+  (1.1ms) rollback transaction
87966
+  (0.1ms) begin transaction
87967
+ ----------------------------------------------------------------------------------------------------------
87968
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
87969
+ ----------------------------------------------------------------------------------------------------------
87970
+ Processing by Contour::SessionsController#create as HTML
87971
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
87972
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
87973
+  (0.2ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
87974
+ Redirected to http://test.host/auth/google_apps
87975
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
87976
+  (0.1ms) rollback transaction
87977
+  (0.1ms) begin transaction
87978
+ ----------------------------------------------------------------------------------------------
87979
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
87980
+ ----------------------------------------------------------------------------------------------
87981
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87982
+ Processing by Contour::SessionsController#create as HTML
87983
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
87984
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
87985
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
87986
+ Redirected to http://test.host/auth/ldap
87987
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
87988
+  (0.1ms) rollback transaction
87989
+  (0.0ms) begin transaction
87990
+ --------------------------------------------------------------------------
87991
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
87992
+ --------------------------------------------------------------------------
87993
+ Processing by Contour::SessionsController#create as HTML
87994
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
87995
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
87996
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
87997
+ Completed 401 Unauthorized in 4ms
87998
+ Processing by Contour::SessionsController#new as HTML
87999
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
88000
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.8ms)
88001
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.6ms)
88002
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.9ms)
88003
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.4ms)
88004
+ Completed 200 OK in 22ms (Views: 20.9ms | ActiveRecord: 0.0ms)
88005
+  (0.1ms) rollback transaction
88006
+  (0.1ms) begin transaction
88007
+ -----------------------------------------------------
88008
+ ContourHelperTest: test_should_show_sort_field_helper
88009
+ -----------------------------------------------------
88010
+  (0.1ms) rollback transaction
88011
+  (0.0ms) begin transaction
88012
+ ---------------------------------------------------------------------
88013
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
88014
+ ---------------------------------------------------------------------
88015
+  (0.1ms) rollback transaction
88016
+  (0.1ms) begin transaction
88017
+ -----------------------
88018
+ ContourTest: test_truth
88019
+ -----------------------
88020
+  (0.1ms) rollback transaction
88021
+  (0.1ms) begin transaction
88022
+ --------------------------------------------------------------------
88023
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
88024
+ --------------------------------------------------------------------
88025
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
88026
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
88027
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
88028
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-24 12:12:24 -0400
88029
+ Processing by WelcomeController#logged_in_page as HTML
88030
+ Completed 401 Unauthorized in 20ms
88031
+  (0.1ms) SAVEPOINT active_record_1
88032
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
88033
+ Binary data inserted for `string` type on column `encrypted_password`
88034
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 16:12:24 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$zP3d9t7omEZxDsehz0NbUeGceW5eAG9aZI.IxDjdl2PGADF.brMC6"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 24 Sep 2013 16:12:24 UTC +00:00]]
88035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88036
+  (0.0ms) SAVEPOINT active_record_1
88037
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
88038
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
88039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88040
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
88041
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
88042
+ Started POST "/users/login" for 127.0.0.1 at 2013-09-24 12:12:24 -0400
88043
+ Processing by Contour::SessionsController#create as HTML
88044
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
88045
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
88046
+  (0.1ms) SAVEPOINT active_record_1
88047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88048
+ Completed 401 Unauthorized in 8ms
88049
+ Started GET "/users/login" for 127.0.0.1 at 2013-09-24 12:12:24 -0400
88050
+ Processing by Contour::SessionsController#new as HTML
88051
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
88052
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
88053
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.2ms)
88054
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.7ms)
88055
+ Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 0.0ms)
88056
+  (1.0ms) rollback transaction
88057
+  (0.1ms) begin transaction
88058
+ --------------------------------------------------------
88059
+ NavigationTest: test_friendly_url_forwarding_after_login
88060
+ --------------------------------------------------------
88061
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
88062
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
88063
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
88064
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-24 12:12:24 -0400
88065
+ Processing by WelcomeController#logged_in_page as HTML
88066
+ Completed 401 Unauthorized in 1ms
88067
+  (0.1ms) SAVEPOINT active_record_1
88068
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
88069
+ Binary data inserted for `string` type on column `encrypted_password`
88070
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 16:12:24 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$gBBfeb/my0xPxxImEJVwBu3ld1ddVXihcq.9zJIou6pBPE6LpNa/W"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 24 Sep 2013 16:12:24 UTC +00:00]]
88071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88072
+  (0.0ms) SAVEPOINT active_record_1
88073
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
88074
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
88075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88076
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
88077
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
88078
+ Started POST "/users/login" for 127.0.0.1 at 2013-09-24 12:12:24 -0400
88079
+ Processing by Contour::SessionsController#create as HTML
88080
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
88081
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
88082
+  (0.1ms) SAVEPOINT active_record_1
88083
+ 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, 24 Sep 2013 16:12:24 UTC +00:00], ["current_sign_in_at", Tue, 24 Sep 2013 16:12:24 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 24 Sep 2013 16:12:24 UTC +00:00]]
88084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88085
+ Redirected to http://www.example.com/logged_in_page
88086
+ Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
88087
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-24 12:12:24 -0400
88088
+ Processing by WelcomeController#logged_in_page as HTML
88089
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
88090
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)
88091
+  (0.7ms) rollback transaction
88092
+  (0.1ms) begin transaction
88093
+ --------------------------------------------------------------------
88094
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
88095
+ --------------------------------------------------------------------
88096
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
88097
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
88098
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
88099
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-09-24 12:12:24 -0400
88100
+ Processing by WelcomeController#logged_in_page as HTML
88101
+ Completed 401 Unauthorized in 1ms
88102
+  (0.1ms) SAVEPOINT active_record_1
88103
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
88104
+ Binary data inserted for `string` type on column `encrypted_password`
88105
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 24 Sep 2013 16:12:24 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$rPw.ekLmaJentkP95bsIH.atxb81UUFof1d/x8TMQeGQaFvW743uK"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 24 Sep 2013 16:12:24 UTC +00:00]]
88106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88107
+  (0.0ms) SAVEPOINT active_record_1
88108
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
88109
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
88110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88111
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
88112
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
88113
+ Started POST "/users/login" for 127.0.0.1 at 2013-09-24 12:12:24 -0400
88114
+ Processing by Contour::SessionsController#create as HTML
88115
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
88116
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
88117
+  (0.1ms) SAVEPOINT active_record_1
88118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88119
+ Completed 401 Unauthorized in 6ms
88120
+ Started GET "/users/login" for 127.0.0.1 at 2013-09-24 12:12:24 -0400
88121
+ Processing by Contour::SessionsController#new as HTML
88122
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
88123
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
88124
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
88125
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.9ms)
88126
+ Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.0ms)
88127
+  (1.2ms) rollback transaction
88128
+  (0.1ms) begin transaction
88129
+ -------------------------------------------------------------
88130
+ NavigationTest: test_root_navigation_redirected_to_login_page
88131
+ -------------------------------------------------------------
88132
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
88133
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
88134
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
88135
+ Started GET "/" for 127.0.0.1 at 2013-09-24 12:12:24 -0400
88136
+ Processing by WelcomeController#index as HTML
88137
+ Completed 401 Unauthorized in 1ms
88138
+  (0.2ms) rollback transaction
88139
+  (0.1ms) begin transaction
88140
+ -------------------------------------------------------------------------
88141
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
88142
+ -------------------------------------------------------------------------
88143
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
88144
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
88145
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
88146
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-24 12:12:24 -0400
88147
+ Processing by WelcomeController#logged_in_page as JSON
88148
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
88149
+  (0.1ms) SAVEPOINT active_record_1
88150
+ 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, 24 Sep 2013 16:12:24 UTC +00:00], ["current_sign_in_at", Tue, 24 Sep 2013 16:12:24 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 24 Sep 2013 16:12:24 UTC +00:00]]
88151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88152
+ Completed 200 OK in 78ms (Views: 0.2ms | ActiveRecord: 0.7ms)
88153
+  (0.9ms) rollback transaction
88154
+  (0.1ms) begin transaction
88155
+ ------------------------------------------------------------------------------------------------
88156
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
88157
+ ------------------------------------------------------------------------------------------------
88158
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
88159
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
88160
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
88161
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-09-24 12:12:24 -0400
88162
+ Processing by WelcomeController#logged_in_page as JSON
88163
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
88164
+ Completed 401 Unauthorized in 78ms
88165
+  (0.1ms) rollback transaction
88166
+  (0.1ms) begin transaction
88167
+ ------------------------------------
88168
+ UserTest: test_should_apply_omniauth
88169
+ ------------------------------------
88170
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
88171
+  (0.1ms) rollback transaction
88172
+  (0.1ms) begin transaction
88173
+ --------------------------------------
88174
+ UserTest: test_should_get_reverse_name
87365
88175
  --------------------------------------
87366
88176
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
87367
88177
   (0.1ms) rollback transaction