contour 2.0.0.beta.5 → 2.0.0.beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 251198f642033d123e1cdf375b36bf0859503d44
4
- data.tar.gz: c1946cb9ea9a92349d812b3a37a4b8690b09c2b2
3
+ metadata.gz: e014cfef85503bb2ac0448c84a327ffe158b6c37
4
+ data.tar.gz: 380c11c62e97645dd43a1239d2c9007a2b33f4a1
5
5
  SHA512:
6
- metadata.gz: 55c1ba90dc406b773a18772972e9d0f7e26d853bade5fcaf1a1774424ef9b7078e6561946ceeecde4fdb938245331bd4fbbc96683603bb323fae5b5b0067df60
7
- data.tar.gz: 491543e6c049b9085e0786774ffd6120a659145a9fdfefe1551b28dac96ec233df7739cfc0a90ac117d6a7a2b931d7bba87e897f79e8fb406dae61efa8eae24e
6
+ metadata.gz: b37c71ae33d49258c9657ce5de8bdaec189d7c20067c97d163a03bad176ebacc9feed38ca20201d864857394a740ab0a624658ac1d411a973d28e471a54f5549
7
+ data.tar.gz: 9e37df68acc4ea11485907f101a38cbc0c8a75cbc91f4e932e105aa04c8c8772d98d3927ba8be43edbb1a9512efd21d76007679e4f2cdb6833d2b911eafe129f
data/CHANGELOG.md CHANGED
@@ -4,12 +4,18 @@
4
4
  - Use of Ruby 2.0.0-p0 is now recommended
5
5
  - **Gem Changes**
6
6
  - Updated to Rails 4.0.0.rc1
7
+ - Added `config.spam_fields` to the configuration allowing application registration pages to be configured with honeypot traps for submitter spam bots
8
+ - Configuring the invisible `spam_fields` may reduce the number of fake registrations without being a burden to the existing registration process
9
+ - Ex: `config.spam_fields = [ :address ]`
7
10
 
8
11
  ### Refactoring
9
12
  - Added a fix for Rack that respecifies the Content-Type as "text/html"
10
13
  - This fixes the OmniAuth-LDAP form from returning as "text/plain"
11
14
  - Removed an temporary fix that allowed OmniAuth to interact properly with Rack
12
15
 
16
+ ### Bug Fixes
17
+ - Better styling for errors, fixes error fields appearing lower than they should be on the page
18
+
13
19
  ## 1.3.0 (February 26, 2013)
14
20
 
15
21
  ### Breaking Changes
@@ -13,4 +13,5 @@
13
13
  *= require timepicker
14
14
  *= require contour/about
15
15
  *= require contour/authentication
16
+ *= require contour/errors
16
17
  */
@@ -52,3 +52,8 @@ p.about-footer {
52
52
  text-align:center;
53
53
  font-weight:300;
54
54
  }
55
+
56
+ .control-special {
57
+ background-color: black;
58
+ display: none;
59
+ }
@@ -0,0 +1,38 @@
1
+ .control-group-error .control-label,
2
+ .control-group-error .help-block,
3
+ .control-group-error .help-inline {
4
+ color: #b94a48;
5
+ }
6
+
7
+ .control-group-error .checkbox,
8
+ .control-group-error .radio,
9
+ .control-group-error input,
10
+ .control-group-error select,
11
+ .control-group-error textarea {
12
+ color: #b94a48;
13
+ }
14
+
15
+ .control-group-error input,
16
+ .control-group-error select,
17
+ .control-group-error textarea {
18
+ border-color: #b94a48;
19
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
20
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
21
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
22
+ }
23
+
24
+ .control-group-error input:focus,
25
+ .control-group-error select:focus,
26
+ .control-group-error textarea:focus {
27
+ border-color: #953b39;
28
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
29
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
30
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
31
+ }
32
+
33
+ .control-group-error .input-prepend .add-on,
34
+ .control-group-error .input-append .add-on {
35
+ color: #b94a48;
36
+ background-color: #f2dede;
37
+ border-color: #b94a48;
38
+ }
@@ -20,6 +20,10 @@ class Contour::RegistrationsController < Devise::RegistrationsController
20
20
  format.json { render json: @user.errors, status: :unprocessable_entity}
21
21
  end
22
22
  end
23
+ elsif spam_field_used?
24
+ Rails.logger.info "SPAM BOT SIGNUP: #{params.inspect}"
25
+ self.resource = build_resource(sign_up_params)
26
+ redirect_to new_session_path(resource), notice: 'Thank you for your interest! Due to limited capacity you have been put on a waiting list. We will email you when we open up additional space.'
23
27
  else
24
28
  super
25
29
  session[:omniauth] = nil if @user and not @user.new_record?
@@ -47,4 +51,8 @@ class Contour::RegistrationsController < Devise::RegistrationsController
47
51
  new_session_path(resource) # root_path
48
52
  end
49
53
 
54
+ def spam_field_used?
55
+ Contour::spam_fields.select{|spam_field| (params[:user] and not params[:user][spam_field].blank?) }.size > 0
56
+ end
57
+
50
58
  end
@@ -36,6 +36,15 @@
36
36
  </div>
37
37
  </div>
38
38
 
39
+ <% Contour.spam_fields.each do |name| %>
40
+ <div class="control-group control-special">
41
+ <%= label_tag "#{resource_name}[#{name}]", name, class: 'control-label' %>
42
+ <div class="controls">
43
+ <%= text_field_tag "#{resource_name}[#{name}]", '' %>
44
+ </div>
45
+ </div>
46
+ <% end %>
47
+
39
48
  <div class="form-actions">
40
49
  <%= f.submit "Sign up", class: 'btn btn-primary' %>
41
50
  <%= render partial: 'contour/links' %>
data/lib/contour.rb CHANGED
@@ -89,6 +89,11 @@ module Contour
89
89
  mattr_accessor :sign_up_fields
90
90
  @@sign_up_fields = []
91
91
 
92
+ # An array of text fields used to trick spam bots using the honeypot approach. These text fields will not be displayed to the user.
93
+ # An example might be [ :url, :address, :contact, :comment ]
94
+ mattr_accessor :spam_fields
95
+ @@spam_fields = []
96
+
92
97
  def self.setup
93
98
  yield self
94
99
  end
@@ -5,9 +5,8 @@ module Contour
5
5
  class Engine < Rails::Engine
6
6
  engine_name :contour
7
7
 
8
- # Overwrite Rails errors to use Twitter CSS classes
9
- # config.action_view.field_error_proc = Proc.new{ |html_tag, instance| "<div class=\"field_with_errors\">#{html_tag}</div>".html_safe }
10
- config.action_view.field_error_proc = Proc.new { |html_tag, instance| "<span class=\"control-group error\">#{html_tag}</span>".html_safe }
8
+ # Overwrite Rails errors to use Twitter/Contour CSS classes
9
+ config.action_view.field_error_proc = Proc.new { |html_tag, instance| "<span class=\"control-group-error\">#{html_tag}</span>".html_safe }
11
10
 
12
11
  end
13
12
  end
@@ -3,7 +3,7 @@ module Contour
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
5
  TINY = 0
6
- BUILD = "beta.5" # nil, "pre", "rc", "rc2"
6
+ BUILD = "beta.6" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
@@ -72,4 +72,8 @@ Contour.setup do |config|
72
72
  # An array of hashes that specify additional fields to add to the sign up form
73
73
  # An example might be [ { attribute: 'first_name', type: 'text_field' }, { attribute: 'last_name', type: 'text_field' } ]
74
74
  # config.sign_up_fields = []
75
+
76
+ # An array of text fields used to trick spam bots using the honeypot approach. These text fields will not be displayed to the user.
77
+ # An example might be [ :url, :address, :contact, :comment ]
78
+ # config.spam_fields = []
75
79
  end
@@ -7,7 +7,7 @@ class Contour::RegistrationsControllerTest < ActionController::TestCase
7
7
 
8
8
  test "a new user should be able to sign up" do
9
9
  assert_difference('User.count') do
10
- post :create, user: { first_name: 'First Name', last_name: 'Last Name', email: 'new_user@example.com', password: 'password', password_confirmation: 'password' }
10
+ post :create, user: { first_name: 'First Name', last_name: 'Last Name', email: 'new_user@example.com', password: 'password', password_confirmation: 'password', spam: '' }
11
11
  end
12
12
 
13
13
  assert_not_nil assigns(:user)
@@ -33,6 +33,16 @@ class Contour::RegistrationsControllerTest < ActionController::TestCase
33
33
  assert_redirected_to new_user_session_path
34
34
  end
35
35
 
36
+ test "a submitter spam bot should not be able to sign up" do
37
+ assert_difference('User.count', 0) do
38
+ post :create, user: { first_name: 'First Name', last_name: 'Last Name', email: 'new_user@example.com', password: 'password', password_confirmation: 'password', spam: 'http://buystuffhere.com' }
39
+ end
40
+
41
+ assert_equal 'Thank you for your interest! Due to limited capacity you have been put on a waiting list. We will email you when we open up additional space.', flash[:notice]
42
+
43
+ assert_redirected_to new_user_session_path
44
+ end
45
+
36
46
  # test "a new user should be able to sign up via JSON" do
37
47
  # assert_difference('User.count') do
38
48
  # post :create, user: { first_name: 'First Name', last_name: 'Last Name', email: 'new_user_json@example.com', password: 'password', password_confirmation: 'password' }, format: 'json'
@@ -72,4 +72,8 @@ Contour.setup do |config|
72
72
  # An array of hashes that specify additional fields to add to the sign up form
73
73
  # An example might be [ { attribute: 'first_name', type: 'text_field' }, { attribute: 'last_name', type: 'text_field' } ]
74
74
  config.sign_up_fields = [ { attribute: 'first_name', type: 'text_field' }, { attribute: 'last_name', type: 'text_field' } ]
75
+
76
+ # An array of text fields used to trick spam bots using the honeypot approach. These text fields will not be displayed to the user.
77
+ # An example might be [ :url, :address, :contact, :comment ]
78
+ config.spam_fields = [ :spam ]
75
79
  end
Binary file
@@ -75442,6 +75442,1956 @@ UserTest: test_should_apply_omniauth
75442
75442
   (0.1ms) begin transaction
75443
75443
  --------------------------------------
75444
75444
  UserTest: test_should_get_reverse_name
75445
+ --------------------------------------
75446
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75447
+  (0.1ms) rollback transaction
75448
+  (13.0ms) begin transaction
75449
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
75450
+ 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-05-07 14:53:14', '2013-05-07 14:53:14', 949717663, 201799169)
75451
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-05-07 14:53:14', '2013-05-07 14:53:14', 876923740, 201799169)
75452
+ 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-05-07 14:53:14', '2013-05-07 14:53:14', 864673665, 201799169)
75453
+ Fixture Delete (0.1ms) DELETE FROM "users"
75454
+ 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-05-07 14:53:14', '2013-05-07 14:53:14', 201799169)
75455
+ 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-05-07 14:53:14', '2013-05-07 14:53:14', 999914115)
75456
+ 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-05-07 14:53:14', '2013-05-07 14:53:14', 725306934)
75457
+ 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-05-07 14:53:14', '2013-05-07 14:53:14', 349534908)
75458
+  (21.9ms) commit transaction
75459
+  (0.1ms) begin transaction
75460
+ -------------------------------------------------
75461
+ AuthenticationTest: test_should_get_provider_name
75462
+ -------------------------------------------------
75463
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
75464
+  (0.1ms) rollback transaction
75465
+  (0.1ms) begin transaction
75466
+ --------------------------------------------------------------------------------
75467
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
75468
+ --------------------------------------------------------------------------------
75469
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
75470
+  (0.1ms) rollback transaction
75471
+  (0.1ms) begin transaction
75472
+ -------------------------------------------------------------------------
75473
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
75474
+ -------------------------------------------------------------------------
75475
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75476
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
75477
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
75478
+ Processing by Contour::AuthenticationsController#create as HTML
75479
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-05-07 14:53:14 UTC", "updated_at"=>"2013-05-07 14:53:14 UTC"}}
75480
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
75481
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
75482
+ Logged in user found, creating associated authentication.
75483
+  (0.1ms) SAVEPOINT active_record_1
75484
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 14:53:15 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 07 May 2013 14:53:15 UTC +00:00], ["user_id", 201799169]]
75485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75486
+ Redirected to http://test.host/authentications
75487
+ Completed 302 Found in 112ms (ActiveRecord: 1.2ms)
75488
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
75489
+  (6.0ms) rollback transaction
75490
+  (0.1ms) begin transaction
75491
+ --------------------------------------------------------------------------
75492
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
75493
+ --------------------------------------------------------------------------
75494
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75495
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
75496
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
75497
+ Processing by Contour::AuthenticationsController#destroy as HTML
75498
+ Parameters: {"id"=>"949717663"}
75499
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
75500
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
75501
+  (0.1ms) SAVEPOINT active_record_1
75502
+ SQL (17.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
75503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75504
+ Redirected to http://test.host/authentications
75505
+ Completed 302 Found in 24ms (ActiveRecord: 18.0ms)
75506
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
75507
+  (18.2ms) rollback transaction
75508
+  (0.1ms) begin transaction
75509
+ -------------------------------------------------------------
75510
+ Contour::AuthenticationsControllerTest: test_should_get_index
75511
+ -------------------------------------------------------------
75512
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75513
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
75514
+ Processing by Contour::AuthenticationsController#index as HTML
75515
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
75516
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
75517
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
75518
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (61.8ms)
75519
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.3ms)
75520
+ Completed 200 OK in 805ms (Views: 802.4ms | ActiveRecord: 0.5ms)
75521
+  (0.1ms) rollback transaction
75522
+  (0.1ms) begin transaction
75523
+ -----------------------------------------------------------------------------
75524
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
75525
+ -----------------------------------------------------------------------------
75526
+ Processing by Contour::PasswordsController#create as HTML
75527
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
75528
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
75529
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'yr2kzUtxPfkozhQXnAE8' LIMIT 1
75530
+  (0.1ms) SAVEPOINT active_record_1
75531
+ SQL (0.5ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "yr2kzUtxPfkozhQXnAE8"], ["reset_password_sent_at", Tue, 07 May 2013 14:53:15 UTC +00:00], ["updated_at", Tue, 07 May 2013 14:53:15 UTC +00:00]]
75532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75533
+
75534
+ Sent mail to valid@example.com (41.9ms)
75535
+ Date: Tue, 07 May 2013 10:53:16 -0400
75536
+ From: please-change-me-at-config-initializers-devise@example.com
75537
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
75538
+ To: valid@example.com
75539
+ Message-ID: <5189155c2b33e_ca973feffe06067024624@edge.partners.org.mail>
75540
+ Subject: Reset password instructions
75541
+ Mime-Version: 1.0
75542
+ Content-Type: text/html;
75543
+ charset=UTF-8
75544
+ Content-Transfer-Encoding: 7bit
75545
+
75546
+ <p>Hello valid@example.com!</p>
75547
+
75548
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
75549
+
75550
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=yr2kzUtxPfkozhQXnAE8">Change my password</a></p>
75551
+
75552
+ <p>If you didn't request this, please ignore this email.</p>
75553
+ <p>Your password won't change until you access the link above and create a new one.</p>
75554
+
75555
+ Redirected to http://test.host/users/login
75556
+ Completed 302 Found in 312ms (ActiveRecord: 1.0ms)
75557
+  (0.8ms) rollback transaction
75558
+  (0.1ms) begin transaction
75559
+ -----------------------------------------------------------------------------
75560
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
75561
+ -----------------------------------------------------------------------------
75562
+ Processing by Contour::PasswordsController#new as HTML
75563
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.4ms)
75564
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (12.6ms)
75565
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (17.1ms)
75566
+ Completed 200 OK in 148ms (Views: 146.7ms | ActiveRecord: 0.0ms)
75567
+  (0.1ms) rollback transaction
75568
+  (0.1ms) begin transaction
75569
+ -------------------------------------------------------------------------------
75570
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
75571
+ -------------------------------------------------------------------------------
75572
+  (0.2ms) SELECT COUNT(*) FROM "users"
75573
+ Processing by Contour::RegistrationsController#create as HTML
75574
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
75575
+  (0.1ms) SAVEPOINT active_record_1
75576
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
75577
+ Binary data inserted for `string` type on column `encrypted_password`
75578
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 14:53:16 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$kDe1fW938GCqAtaGiG1zwubAkFVmQLXMA.F1rQRz05Sc6/GzYfDIa"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 07 May 2013 14:53:16 UTC +00:00]]
75579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75580
+ Redirected to http://test.host/users/login
75581
+ Completed 302 Found in 77ms (ActiveRecord: 0.9ms)
75582
+  (0.1ms) SELECT COUNT(*) FROM "users"
75583
+  (7.1ms) rollback transaction
75584
+  (0.1ms) begin transaction
75585
+ --------------------------------------------------------------------------------------------
75586
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
75587
+ --------------------------------------------------------------------------------------------
75588
+  (0.1ms) SELECT COUNT(*) FROM "users"
75589
+ Processing by Contour::RegistrationsController#create as HTML
75590
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
75591
+ Unpermitted parameters: status
75592
+  (0.1ms) SAVEPOINT active_record_1
75593
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
75594
+ Binary data inserted for `string` type on column `encrypted_password`
75595
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 14:53:16 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$8pCBfIq9zBM2i4kEiig8Luf2yqirIZF3PO4YcFICCvvyk2IoX.8wy"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 07 May 2013 14:53:16 UTC +00:00]]
75596
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75597
+ Redirected to http://test.host/users/login
75598
+ Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
75599
+  (0.1ms) SELECT COUNT(*) FROM "users"
75600
+  (1.1ms) rollback transaction
75601
+  (0.1ms) begin transaction
75602
+ ----------------------------------------------------------------------
75603
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
75604
+ ----------------------------------------------------------------------
75605
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75606
+ Processing by Contour::SessionsController#create as JSON
75607
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
75608
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
75609
+  (0.1ms) SAVEPOINT active_record_1
75610
+ SQL (0.6ms) 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, 07 May 2013 14:53:16 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 14:53:16 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 14:53:16 UTC +00:00]]
75611
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75612
+ Completed 200 OK in 90ms (Views: 0.5ms | ActiveRecord: 1.1ms)
75613
+  (8.6ms) rollback transaction
75614
+  (0.2ms) begin transaction
75615
+ ----------------------------------------------------------------------------------------------------------
75616
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
75617
+ ----------------------------------------------------------------------------------------------------------
75618
+ Processing by Contour::SessionsController#create as HTML
75619
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
75620
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
75621
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
75622
+ Redirected to http://test.host/auth/google_apps
75623
+ Completed 302 Found in 57ms (ActiveRecord: 0.5ms)
75624
+  (0.1ms) rollback transaction
75625
+  (0.1ms) begin transaction
75626
+ ----------------------------------------------------------------------------------------------
75627
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
75628
+ ----------------------------------------------------------------------------------------------
75629
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75630
+ Processing by Contour::SessionsController#create as HTML
75631
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
75632
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
75633
+  (0.2ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
75634
+ Redirected to http://test.host/auth/ldap
75635
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
75636
+  (0.1ms) rollback transaction
75637
+  (0.1ms) begin transaction
75638
+ --------------------------------------------------------------------------
75639
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
75640
+ --------------------------------------------------------------------------
75641
+ Processing by Contour::SessionsController#create as HTML
75642
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
75643
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
75644
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
75645
+ Completed 401 Unauthorized in 4ms
75646
+ Processing by Contour::SessionsController#new as HTML
75647
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
75648
+ Unpermitted parameters: password
75649
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.9ms)
75650
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.0ms)
75651
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.8ms)
75652
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.6ms)
75653
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.5ms)
75654
+ Completed 200 OK in 64ms (Views: 61.9ms | ActiveRecord: 0.0ms)
75655
+  (0.2ms) rollback transaction
75656
+  (0.1ms) begin transaction
75657
+ -----------------------------------------------------
75658
+ ContourHelperTest: test_should_show_sort_field_helper
75659
+ -----------------------------------------------------
75660
+  (0.1ms) rollback transaction
75661
+  (0.1ms) begin transaction
75662
+ ---------------------------------------------------------------------
75663
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
75664
+ ---------------------------------------------------------------------
75665
+  (0.2ms) rollback transaction
75666
+  (0.1ms) begin transaction
75667
+ -----------------------
75668
+ ContourTest: test_truth
75669
+ -----------------------
75670
+  (0.1ms) rollback transaction
75671
+  (0.1ms) begin transaction
75672
+ --------------------------------------------------------------------
75673
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
75674
+ --------------------------------------------------------------------
75675
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75676
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
75677
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
75678
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 10:53:17 -0400
75679
+ Processing by WelcomeController#logged_in_page as HTML
75680
+ Completed 401 Unauthorized in 38ms
75681
+  (0.1ms) SAVEPOINT active_record_1
75682
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
75683
+ Binary data inserted for `string` type on column `encrypted_password`
75684
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 14:53:17 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$n.ITSIJ4xl6Std28.jyeAuI/NEegLBO1.FMJB4LDjjPeOg.hapswW"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 07 May 2013 14:53:17 UTC +00:00]]
75685
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75686
+  (0.1ms) SAVEPOINT active_record_1
75687
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
75688
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
75689
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75690
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
75691
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
75692
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 10:53:17 -0400
75693
+ Processing by Contour::SessionsController#create as HTML
75694
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
75695
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
75696
+  (0.1ms) SAVEPOINT active_record_1
75697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75698
+ Completed 401 Unauthorized in 7ms
75699
+ Started GET "/users/login" for 127.0.0.1 at 2013-05-07 10:53:17 -0400
75700
+ Processing by Contour::SessionsController#new as HTML
75701
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.8ms)
75702
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (2.4ms)
75703
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
75704
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.8ms)
75705
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.0ms)
75706
+ Completed 200 OK in 21ms (Views: 18.5ms | ActiveRecord: 0.0ms)
75707
+  (0.7ms) rollback transaction
75708
+  (0.1ms) begin transaction
75709
+ --------------------------------------------------------
75710
+ NavigationTest: test_friendly_url_forwarding_after_login
75711
+ --------------------------------------------------------
75712
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75713
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
75714
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
75715
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 10:53:17 -0400
75716
+ Processing by WelcomeController#logged_in_page as HTML
75717
+ Completed 401 Unauthorized in 2ms
75718
+  (0.1ms) SAVEPOINT active_record_1
75719
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
75720
+ Binary data inserted for `string` type on column `encrypted_password`
75721
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 14:53:17 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$/K/yi3cstSflAQ0S34y4FOlQMZk5/TSaChUTAAvqhk96gTVBFPa8q"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 07 May 2013 14:53:17 UTC +00:00]]
75722
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75723
+  (0.0ms) SAVEPOINT active_record_1
75724
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
75725
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
75726
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75727
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
75728
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
75729
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 10:53:17 -0400
75730
+ Processing by Contour::SessionsController#create as HTML
75731
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
75732
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
75733
+  (0.1ms) SAVEPOINT active_record_1
75734
+ 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, 07 May 2013 14:53:17 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 14:53:17 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, 07 May 2013 14:53:17 UTC +00:00]]
75735
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75736
+ Redirected to http://www.example.com/logged_in_page
75737
+ Completed 302 Found in 14ms (ActiveRecord: 0.8ms)
75738
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 10:53:17 -0400
75739
+ Processing by WelcomeController#logged_in_page as HTML
75740
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
75741
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.3ms)
75742
+  (0.7ms) rollback transaction
75743
+  (0.1ms) begin transaction
75744
+ --------------------------------------------------------------------
75745
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
75746
+ --------------------------------------------------------------------
75747
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75748
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
75749
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
75750
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 10:53:17 -0400
75751
+ Processing by WelcomeController#logged_in_page as HTML
75752
+ Completed 401 Unauthorized in 2ms
75753
+  (0.1ms) SAVEPOINT active_record_1
75754
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
75755
+ Binary data inserted for `string` type on column `encrypted_password`
75756
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 14:53:17 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$ZSjO.DNxpnWI2UTje1eOzOZIvfRIx4R/hRR8uQbMsA/cqtThj3PVa"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 07 May 2013 14:53:17 UTC +00:00]]
75757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75758
+  (0.1ms) SAVEPOINT active_record_1
75759
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
75760
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
75761
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75762
+ SQL (0.4ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
75763
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
75764
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 10:53:17 -0400
75765
+ Processing by Contour::SessionsController#create as HTML
75766
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
75767
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
75768
+  (0.1ms) SAVEPOINT active_record_1
75769
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75770
+ Completed 401 Unauthorized in 9ms
75771
+ Started GET "/users/login" for 127.0.0.1 at 2013-05-07 10:53:17 -0400
75772
+ Processing by Contour::SessionsController#new as HTML
75773
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.9ms)
75774
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (2.1ms)
75775
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
75776
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.4ms)
75777
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.0ms)
75778
+ Completed 200 OK in 21ms (Views: 19.2ms | ActiveRecord: 0.0ms)
75779
+  (0.6ms) rollback transaction
75780
+  (0.1ms) begin transaction
75781
+ -------------------------------------------------------------
75782
+ NavigationTest: test_root_navigation_redirected_to_login_page
75783
+ -------------------------------------------------------------
75784
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75785
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
75786
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
75787
+ Started GET "/" for 127.0.0.1 at 2013-05-07 10:53:17 -0400
75788
+ Processing by WelcomeController#index as HTML
75789
+ Completed 401 Unauthorized in 2ms
75790
+  (0.2ms) rollback transaction
75791
+  (0.1ms) begin transaction
75792
+ -------------------------------------------------------------------------
75793
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
75794
+ -------------------------------------------------------------------------
75795
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75796
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
75797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
75798
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-05-07 10:53:17 -0400
75799
+ Processing by WelcomeController#logged_in_page as JSON
75800
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
75801
+  (0.1ms) SAVEPOINT active_record_1
75802
+ 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, 07 May 2013 14:53:17 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 14:53:17 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 14:53:17 UTC +00:00]]
75803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75804
+ Completed 200 OK in 89ms (Views: 0.2ms | ActiveRecord: 1.0ms)
75805
+  (0.5ms) rollback transaction
75806
+  (0.1ms) begin transaction
75807
+ ------------------------------------------------------------------------------------------------
75808
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
75809
+ ------------------------------------------------------------------------------------------------
75810
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75811
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
75812
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
75813
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-05-07 10:53:17 -0400
75814
+ Processing by WelcomeController#logged_in_page as JSON
75815
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
75816
+ Completed 401 Unauthorized in 81ms
75817
+  (0.1ms) rollback transaction
75818
+  (0.1ms) begin transaction
75819
+ ------------------------------------
75820
+ UserTest: test_should_apply_omniauth
75821
+ ------------------------------------
75822
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75823
+  (0.1ms) rollback transaction
75824
+  (0.1ms) begin transaction
75825
+ --------------------------------------
75826
+ UserTest: test_should_get_reverse_name
75827
+ --------------------------------------
75828
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75829
+  (0.1ms) rollback transaction
75830
+  (0.7ms) begin transaction
75831
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
75832
+ 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-05-07 14:56:07', '2013-05-07 14:56:07', 949717663, 201799169)
75833
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-05-07 14:56:07', '2013-05-07 14:56:07', 876923740, 201799169)
75834
+ 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-05-07 14:56:07', '2013-05-07 14:56:07', 864673665, 201799169)
75835
+ Fixture Delete (13.0ms) DELETE FROM "users"
75836
+ Fixture Insert (0.2ms) 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-05-07 14:56:07', '2013-05-07 14:56:07', 201799169)
75837
+ Fixture Insert (0.2ms) 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-05-07 14:56:07', '2013-05-07 14:56:07', 999914115)
75838
+ 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-05-07 14:56:07', '2013-05-07 14:56:07', 725306934)
75839
+ 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-05-07 14:56:07', '2013-05-07 14:56:07', 349534908)
75840
+  (1.3ms) commit transaction
75841
+  (0.1ms) begin transaction
75842
+ -------------------------------------------------
75843
+ AuthenticationTest: test_should_get_provider_name
75844
+ -------------------------------------------------
75845
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
75846
+  (0.1ms) rollback transaction
75847
+  (0.1ms) begin transaction
75848
+ --------------------------------------------------------------------------------
75849
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
75850
+ --------------------------------------------------------------------------------
75851
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
75852
+  (0.1ms) rollback transaction
75853
+  (0.1ms) begin transaction
75854
+ -------------------------------------------------------------------------
75855
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
75856
+ -------------------------------------------------------------------------
75857
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75858
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
75859
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
75860
+ Processing by Contour::AuthenticationsController#create as HTML
75861
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-05-07 14:56:07 UTC", "updated_at"=>"2013-05-07 14:56:07 UTC"}}
75862
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
75863
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
75864
+ Logged in user found, creating associated authentication.
75865
+  (0.1ms) SAVEPOINT active_record_1
75866
+ SQL (0.7ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 14:56:07 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 07 May 2013 14:56:07 UTC +00:00], ["user_id", 201799169]]
75867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75868
+ Redirected to http://test.host/authentications
75869
+ Completed 302 Found in 57ms (ActiveRecord: 1.1ms)
75870
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
75871
+  (0.5ms) rollback transaction
75872
+  (0.1ms) begin transaction
75873
+ --------------------------------------------------------------------------
75874
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
75875
+ --------------------------------------------------------------------------
75876
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75877
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
75878
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
75879
+ Processing by Contour::AuthenticationsController#destroy as HTML
75880
+ Parameters: {"id"=>"949717663"}
75881
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
75882
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
75883
+  (0.1ms) SAVEPOINT active_record_1
75884
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
75885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75886
+ Redirected to http://test.host/authentications
75887
+ Completed 302 Found in 7ms (ActiveRecord: 1.0ms)
75888
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
75889
+  (0.4ms) rollback transaction
75890
+  (0.1ms) begin transaction
75891
+ -------------------------------------------------------------
75892
+ Contour::AuthenticationsControllerTest: test_should_get_index
75893
+ -------------------------------------------------------------
75894
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75895
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
75896
+ Processing by Contour::AuthenticationsController#index as HTML
75897
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
75898
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
75899
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
75900
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (112.0ms)
75901
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
75902
+ Completed 200 OK in 655ms (Views: 651.9ms | ActiveRecord: 0.6ms)
75903
+  (0.1ms) rollback transaction
75904
+  (0.1ms) begin transaction
75905
+ -----------------------------------------------------------------------------
75906
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
75907
+ -----------------------------------------------------------------------------
75908
+ Processing by Contour::PasswordsController#create as HTML
75909
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
75910
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
75911
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'Dj9N58A6q56Taus6TMog' LIMIT 1
75912
+  (0.1ms) SAVEPOINT active_record_1
75913
+ SQL (0.5ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "Dj9N58A6q56Taus6TMog"], ["reset_password_sent_at", Tue, 07 May 2013 14:56:08 UTC +00:00], ["updated_at", Tue, 07 May 2013 14:56:08 UTC +00:00]]
75914
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75915
+
75916
+ Sent mail to valid@example.com (62.5ms)
75917
+ Date: Tue, 07 May 2013 10:56:08 -0400
75918
+ From: please-change-me-at-config-initializers-devise@example.com
75919
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
75920
+ To: valid@example.com
75921
+ Message-ID: <51891608d30ef_cbaa3fed58860670826ca@edge.partners.org.mail>
75922
+ Subject: Reset password instructions
75923
+ Mime-Version: 1.0
75924
+ Content-Type: text/html;
75925
+ charset=UTF-8
75926
+ Content-Transfer-Encoding: 7bit
75927
+
75928
+ <p>Hello valid@example.com!</p>
75929
+
75930
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
75931
+
75932
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=Dj9N58A6q56Taus6TMog">Change my password</a></p>
75933
+
75934
+ <p>If you didn't request this, please ignore this email.</p>
75935
+ <p>Your password won't change until you access the link above and create a new one.</p>
75936
+
75937
+ Redirected to http://test.host/users/login
75938
+ Completed 302 Found in 435ms (ActiveRecord: 1.0ms)
75939
+  (0.6ms) rollback transaction
75940
+  (0.1ms) begin transaction
75941
+ -----------------------------------------------------------------------------
75942
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
75943
+ -----------------------------------------------------------------------------
75944
+ Processing by Contour::PasswordsController#new as HTML
75945
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.9ms)
75946
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (43.1ms)
75947
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (46.2ms)
75948
+ Completed 200 OK in 290ms (Views: 289.3ms | ActiveRecord: 0.0ms)
75949
+  (0.1ms) rollback transaction
75950
+  (0.1ms) begin transaction
75951
+ -------------------------------------------------------------------------------
75952
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
75953
+ -------------------------------------------------------------------------------
75954
+  (0.2ms) SELECT COUNT(*) FROM "users"
75955
+ Processing by Contour::RegistrationsController#create as HTML
75956
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
75957
+  (0.1ms) SAVEPOINT active_record_1
75958
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
75959
+ Binary data inserted for `string` type on column `encrypted_password`
75960
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 14:56:09 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$GZOWAueEtEVDDloJ/PQqFO/prFLuZil1sj3o1NMkQC3QDYqFta2Ba"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 07 May 2013 14:56:09 UTC +00:00]]
75961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75962
+ Redirected to http://test.host/users/login
75963
+ Completed 302 Found in 81ms (ActiveRecord: 1.6ms)
75964
+  (0.1ms) SELECT COUNT(*) FROM "users"
75965
+  (0.6ms) rollback transaction
75966
+  (0.1ms) begin transaction
75967
+ --------------------------------------------------------------------------------------------
75968
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
75969
+ --------------------------------------------------------------------------------------------
75970
+  (0.1ms) SELECT COUNT(*) FROM "users"
75971
+ Processing by Contour::RegistrationsController#create as HTML
75972
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
75973
+ Unpermitted parameters: status
75974
+  (0.1ms) SAVEPOINT active_record_1
75975
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
75976
+ Binary data inserted for `string` type on column `encrypted_password`
75977
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 14:56:09 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$AULOXDv/1ud0/5y2vEKpH.OVNsmHEefaM6c8nxrc87Rctfw7PsVv2"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 07 May 2013 14:56:09 UTC +00:00]]
75978
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75979
+ Redirected to http://test.host/users/login
75980
+ Completed 302 Found in 10ms (ActiveRecord: 0.8ms)
75981
+  (0.1ms) SELECT COUNT(*) FROM "users"
75982
+  (0.6ms) rollback transaction
75983
+  (0.1ms) begin transaction
75984
+ ----------------------------------------------------------------------
75985
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
75986
+ ----------------------------------------------------------------------
75987
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75988
+ Processing by Contour::SessionsController#create as JSON
75989
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
75990
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
75991
+  (0.1ms) SAVEPOINT active_record_1
75992
+ 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, 07 May 2013 14:56:09 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 14:56:09 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 14:56:09 UTC +00:00]]
75993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
75994
+ Completed 200 OK in 85ms (Views: 0.5ms | ActiveRecord: 0.9ms)
75995
+  (0.9ms) rollback transaction
75996
+  (0.1ms) begin transaction
75997
+ ----------------------------------------------------------------------------------------------------------
75998
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
75999
+ ----------------------------------------------------------------------------------------------------------
76000
+ Processing by Contour::SessionsController#create as HTML
76001
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
76002
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
76003
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
76004
+ Redirected to http://test.host/auth/google_apps
76005
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
76006
+  (0.1ms) rollback transaction
76007
+  (0.1ms) begin transaction
76008
+ ----------------------------------------------------------------------------------------------
76009
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
76010
+ ----------------------------------------------------------------------------------------------
76011
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76012
+ Processing by Contour::SessionsController#create as HTML
76013
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
76014
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76015
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
76016
+ Redirected to http://test.host/auth/ldap
76017
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
76018
+  (0.1ms) rollback transaction
76019
+  (0.1ms) begin transaction
76020
+ --------------------------------------------------------------------------
76021
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
76022
+ --------------------------------------------------------------------------
76023
+ Processing by Contour::SessionsController#create as HTML
76024
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
76025
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
76026
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
76027
+ Completed 401 Unauthorized in 4ms
76028
+ Processing by Contour::SessionsController#new as HTML
76029
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
76030
+ Unpermitted parameters: password
76031
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
76032
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (2.3ms)
76033
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.0ms)
76034
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.0ms)
76035
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.6ms)
76036
+ Completed 200 OK in 184ms (Views: 182.7ms | ActiveRecord: 0.0ms)
76037
+  (0.1ms) rollback transaction
76038
+  (0.1ms) begin transaction
76039
+ -----------------------------------------------------
76040
+ ContourHelperTest: test_should_show_sort_field_helper
76041
+ -----------------------------------------------------
76042
+  (0.1ms) rollback transaction
76043
+  (0.1ms) begin transaction
76044
+ ---------------------------------------------------------------------
76045
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
76046
+ ---------------------------------------------------------------------
76047
+  (0.1ms) rollback transaction
76048
+  (0.1ms) begin transaction
76049
+ -----------------------
76050
+ ContourTest: test_truth
76051
+ -----------------------
76052
+  (0.1ms) rollback transaction
76053
+  (0.1ms) begin transaction
76054
+ --------------------------------------------------------------------
76055
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
76056
+ --------------------------------------------------------------------
76057
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76058
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76059
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76060
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 10:56:10 -0400
76061
+ Processing by WelcomeController#logged_in_page as HTML
76062
+ Completed 401 Unauthorized in 22ms
76063
+  (0.1ms) SAVEPOINT active_record_1
76064
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
76065
+ Binary data inserted for `string` type on column `encrypted_password`
76066
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 14:56:10 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$3hz0NTSgctxhGp34XcdobOgiY31xwtD4q4cJ730NFpOZQEc/rUUdu"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 07 May 2013 14:56:10 UTC +00:00]]
76067
+  (0.2ms) RELEASE SAVEPOINT active_record_1
76068
+  (0.1ms) SAVEPOINT active_record_1
76069
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76070
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76072
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
76073
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
76074
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 10:56:10 -0400
76075
+ Processing by Contour::SessionsController#create as HTML
76076
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
76077
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
76078
+  (0.1ms) SAVEPOINT active_record_1
76079
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76080
+ Completed 401 Unauthorized in 20ms
76081
+ Started GET "/users/login" for 127.0.0.1 at 2013-05-07 10:56:10 -0400
76082
+ Processing by Contour::SessionsController#new as HTML
76083
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
76084
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.5ms)
76085
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
76086
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
76087
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.2ms)
76088
+ Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.0ms)
76089
+  (12.7ms) rollback transaction
76090
+  (0.1ms) begin transaction
76091
+ --------------------------------------------------------
76092
+ NavigationTest: test_friendly_url_forwarding_after_login
76093
+ --------------------------------------------------------
76094
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76095
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76096
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76097
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 10:56:10 -0400
76098
+ Processing by WelcomeController#logged_in_page as HTML
76099
+ Completed 401 Unauthorized in 1ms
76100
+  (0.1ms) SAVEPOINT active_record_1
76101
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
76102
+ Binary data inserted for `string` type on column `encrypted_password`
76103
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 14:56:10 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$zkfGQ.3INuQGFGrkCoH88OPyh8tV7cfIrjwldz4r7bnc8H115R0ai"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 07 May 2013 14:56:10 UTC +00:00]]
76104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76105
+  (0.0ms) SAVEPOINT active_record_1
76106
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76107
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76109
+ SQL (0.6ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
76110
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
76111
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 10:56:10 -0400
76112
+ Processing by Contour::SessionsController#create as HTML
76113
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
76114
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
76115
+  (0.1ms) SAVEPOINT active_record_1
76116
+ 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, 07 May 2013 14:56:10 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 14:56:10 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, 07 May 2013 14:56:10 UTC +00:00]]
76117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76118
+ Redirected to http://www.example.com/logged_in_page
76119
+ Completed 302 Found in 12ms (ActiveRecord: 0.6ms)
76120
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 10:56:10 -0400
76121
+ Processing by WelcomeController#logged_in_page as HTML
76122
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
76123
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms)
76124
+  (0.7ms) rollback transaction
76125
+  (0.1ms) begin transaction
76126
+ --------------------------------------------------------------------
76127
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
76128
+ --------------------------------------------------------------------
76129
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76130
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76131
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76132
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 10:56:10 -0400
76133
+ Processing by WelcomeController#logged_in_page as HTML
76134
+ Completed 401 Unauthorized in 1ms
76135
+  (0.1ms) SAVEPOINT active_record_1
76136
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
76137
+ Binary data inserted for `string` type on column `encrypted_password`
76138
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 14:56:10 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$kC.L./uqN4Xu2B1He2sbcezqI66kSJJx3O8zL39K.VM.BMzufTqMm"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 07 May 2013 14:56:10 UTC +00:00]]
76139
+  (0.2ms) RELEASE SAVEPOINT active_record_1
76140
+  (0.0ms) SAVEPOINT active_record_1
76141
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76142
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76144
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
76145
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
76146
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 10:56:10 -0400
76147
+ Processing by Contour::SessionsController#create as HTML
76148
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
76149
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
76150
+  (0.1ms) SAVEPOINT active_record_1
76151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76152
+ Completed 401 Unauthorized in 6ms
76153
+ Started GET "/users/login" for 127.0.0.1 at 2013-05-07 10:56:10 -0400
76154
+ Processing by Contour::SessionsController#new as HTML
76155
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
76156
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.4ms)
76157
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
76158
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.5ms)
76159
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.4ms)
76160
+ Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.0ms)
76161
+  (3.1ms) rollback transaction
76162
+  (0.2ms) begin transaction
76163
+ -------------------------------------------------------------
76164
+ NavigationTest: test_root_navigation_redirected_to_login_page
76165
+ -------------------------------------------------------------
76166
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76167
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76168
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76169
+ Started GET "/" for 127.0.0.1 at 2013-05-07 10:56:10 -0400
76170
+ Processing by WelcomeController#index as HTML
76171
+ Completed 401 Unauthorized in 1ms
76172
+  (0.1ms) rollback transaction
76173
+  (0.1ms) begin transaction
76174
+ -------------------------------------------------------------------------
76175
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
76176
+ -------------------------------------------------------------------------
76177
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76178
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76179
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76180
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-05-07 10:56:10 -0400
76181
+ Processing by WelcomeController#logged_in_page as JSON
76182
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76183
+  (0.2ms) SAVEPOINT active_record_1
76184
+ 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, 07 May 2013 14:56:10 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 14:56:10 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 14:56:10 UTC +00:00]]
76185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76186
+ Completed 200 OK in 84ms (Views: 0.2ms | ActiveRecord: 0.8ms)
76187
+  (11.4ms) rollback transaction
76188
+  (0.1ms) begin transaction
76189
+ ------------------------------------------------------------------------------------------------
76190
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
76191
+ ------------------------------------------------------------------------------------------------
76192
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76193
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76194
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76195
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-05-07 10:56:10 -0400
76196
+ Processing by WelcomeController#logged_in_page as JSON
76197
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76198
+ Completed 401 Unauthorized in 83ms
76199
+  (0.1ms) rollback transaction
76200
+  (0.1ms) begin transaction
76201
+ ------------------------------------
76202
+ UserTest: test_should_apply_omniauth
76203
+ ------------------------------------
76204
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76205
+  (0.1ms) rollback transaction
76206
+  (0.1ms) begin transaction
76207
+ --------------------------------------
76208
+ UserTest: test_should_get_reverse_name
76209
+ --------------------------------------
76210
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76211
+  (0.1ms) rollback transaction
76212
+  (0.4ms) begin transaction
76213
+ Fixture Delete (0.5ms) DELETE FROM "authentications"
76214
+ 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-05-07 15:15:04', '2013-05-07 15:15:04', 949717663, 201799169)
76215
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-05-07 15:15:04', '2013-05-07 15:15:04', 876923740, 201799169)
76216
+ 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-05-07 15:15:04', '2013-05-07 15:15:04', 864673665, 201799169)
76217
+ Fixture Delete (0.2ms) DELETE FROM "users"
76218
+ 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-05-07 15:15:04', '2013-05-07 15:15:04', 201799169)
76219
+ 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-05-07 15:15:04', '2013-05-07 15:15:04', 999914115)
76220
+ 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-05-07 15:15:04', '2013-05-07 15:15:04', 725306934)
76221
+ 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-05-07 15:15:04', '2013-05-07 15:15:04', 349534908)
76222
+  (9.5ms) commit transaction
76223
+  (0.1ms) begin transaction
76224
+ -------------------------------------------------
76225
+ AuthenticationTest: test_should_get_provider_name
76226
+ -------------------------------------------------
76227
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
76228
+  (0.1ms) rollback transaction
76229
+  (0.1ms) begin transaction
76230
+ --------------------------------------------------------------------------------
76231
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
76232
+ --------------------------------------------------------------------------------
76233
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
76234
+  (0.1ms) rollback transaction
76235
+  (0.1ms) begin transaction
76236
+ -------------------------------------------------------------------------
76237
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
76238
+ -------------------------------------------------------------------------
76239
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76240
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
76241
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
76242
+ Processing by Contour::AuthenticationsController#create as HTML
76243
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-05-07 15:15:04 UTC", "updated_at"=>"2013-05-07 15:15:04 UTC"}}
76244
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
76245
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
76246
+ Logged in user found, creating associated authentication.
76247
+  (0.1ms) SAVEPOINT active_record_1
76248
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:15:04 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 07 May 2013 15:15:04 UTC +00:00], ["user_id", 201799169]]
76249
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76250
+ Redirected to http://test.host/authentications
76251
+ Completed 302 Found in 100ms (ActiveRecord: 1.1ms)
76252
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
76253
+  (3.1ms) rollback transaction
76254
+  (0.1ms) begin transaction
76255
+ --------------------------------------------------------------------------
76256
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
76257
+ --------------------------------------------------------------------------
76258
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76259
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
76260
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
76261
+ Processing by Contour::AuthenticationsController#destroy as HTML
76262
+ Parameters: {"id"=>"949717663"}
76263
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
76264
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
76265
+  (0.0ms) SAVEPOINT active_record_1
76266
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
76267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76268
+ Redirected to http://test.host/authentications
76269
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
76270
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
76271
+  (9.9ms) rollback transaction
76272
+  (0.1ms) begin transaction
76273
+ -------------------------------------------------------------
76274
+ Contour::AuthenticationsControllerTest: test_should_get_index
76275
+ -------------------------------------------------------------
76276
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76277
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
76278
+ Processing by Contour::AuthenticationsController#index as HTML
76279
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
76280
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
76281
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
76282
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (67.2ms)
76283
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.4ms)
76284
+ Completed 200 OK in 249ms (Views: 246.9ms | ActiveRecord: 0.4ms)
76285
+  (0.1ms) rollback transaction
76286
+  (0.1ms) begin transaction
76287
+ -----------------------------------------------------------------------------
76288
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
76289
+ -----------------------------------------------------------------------------
76290
+ Processing by Contour::PasswordsController#create as HTML
76291
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
76292
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76293
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'r5HFyu1xhDdpxWxWqwRq' LIMIT 1
76294
+  (0.1ms) SAVEPOINT active_record_1
76295
+ SQL (0.4ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "r5HFyu1xhDdpxWxWqwRq"], ["reset_password_sent_at", Tue, 07 May 2013 15:15:04 UTC +00:00], ["updated_at", Tue, 07 May 2013 15:15:04 UTC +00:00]]
76296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76297
+
76298
+ Sent mail to valid@example.com (39.7ms)
76299
+ Date: Tue, 07 May 2013 11:15:04 -0400
76300
+ From: please-change-me-at-config-initializers-devise@example.com
76301
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
76302
+ To: valid@example.com
76303
+ Message-ID: <51891a78e7ffb_d2443fe0b1c60670985c4@edge.partners.org.mail>
76304
+ Subject: Reset password instructions
76305
+ Mime-Version: 1.0
76306
+ Content-Type: text/html;
76307
+ charset=UTF-8
76308
+ Content-Transfer-Encoding: 7bit
76309
+
76310
+ <p>Hello valid@example.com!</p>
76311
+
76312
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
76313
+
76314
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=r5HFyu1xhDdpxWxWqwRq">Change my password</a></p>
76315
+
76316
+ <p>If you didn't request this, please ignore this email.</p>
76317
+ <p>Your password won't change until you access the link above and create a new one.</p>
76318
+
76319
+ Redirected to http://test.host/users/login
76320
+ Completed 302 Found in 238ms (ActiveRecord: 0.9ms)
76321
+  (18.1ms) rollback transaction
76322
+  (0.2ms) begin transaction
76323
+ -----------------------------------------------------------------------------
76324
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
76325
+ -----------------------------------------------------------------------------
76326
+ Processing by Contour::PasswordsController#new as HTML
76327
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
76328
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (8.5ms)
76329
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (11.2ms)
76330
+ Completed 200 OK in 161ms (Views: 159.9ms | ActiveRecord: 0.0ms)
76331
+  (0.1ms) rollback transaction
76332
+  (0.1ms) begin transaction
76333
+ -------------------------------------------------------------------------------
76334
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
76335
+ -------------------------------------------------------------------------------
76336
+  (0.2ms) SELECT COUNT(*) FROM "users"
76337
+ Processing by Contour::RegistrationsController#create as HTML
76338
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
76339
+ Unpermitted parameters: spam
76340
+  (0.1ms) SAVEPOINT active_record_1
76341
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
76342
+ Binary data inserted for `string` type on column `encrypted_password`
76343
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:15:05 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$avhwHjPS0Jpml8dYz6bVqOxrHEMfVBc82DHzc7SLvppcsuoSc7hM2"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 07 May 2013 15:15:05 UTC +00:00]]
76344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76345
+ Redirected to http://test.host/users/login
76346
+ Completed 302 Found in 71ms (ActiveRecord: 0.9ms)
76347
+  (0.2ms) SELECT COUNT(*) FROM "users"
76348
+  (27.2ms) rollback transaction
76349
+  (0.2ms) begin transaction
76350
+ --------------------------------------------------------------------------------------------
76351
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
76352
+ --------------------------------------------------------------------------------------------
76353
+  (0.2ms) SELECT COUNT(*) FROM "users"
76354
+ Processing by Contour::RegistrationsController#create as HTML
76355
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
76356
+ Unpermitted parameters: status
76357
+  (0.1ms) SAVEPOINT active_record_1
76358
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
76359
+ Binary data inserted for `string` type on column `encrypted_password`
76360
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:15:05 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$/vlMmf/Vy8PVTDpU3abFmOYyfl2iujqO4y9W5Xd.wRaGs21DUbst6"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 07 May 2013 15:15:05 UTC +00:00]]
76361
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76362
+ Redirected to http://test.host/users/login
76363
+ Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
76364
+  (0.1ms) SELECT COUNT(*) FROM "users"
76365
+  (3.8ms) rollback transaction
76366
+  (0.1ms) begin transaction
76367
+ ---------------------------------------------------------------------------------------------
76368
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
76369
+ ---------------------------------------------------------------------------------------------
76370
+  (0.2ms) SELECT COUNT(*) FROM "users"
76371
+ Processing by Contour::RegistrationsController#create as HTML
76372
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
76373
+ Unpermitted parameters: spam
76374
+ Redirected to http://test.host/users/login
76375
+ Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
76376
+  (0.1ms) SELECT COUNT(*) FROM "users"
76377
+  (0.1ms) rollback transaction
76378
+  (0.1ms) begin transaction
76379
+ ----------------------------------------------------------------------
76380
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
76381
+ ----------------------------------------------------------------------
76382
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76383
+ Processing by Contour::SessionsController#create as JSON
76384
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
76385
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76386
+  (0.1ms) SAVEPOINT active_record_1
76387
+ 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, 07 May 2013 15:15:05 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 15:15:05 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 15:15:05 UTC +00:00]]
76388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76389
+ Completed 200 OK in 85ms (Views: 0.3ms | ActiveRecord: 0.8ms)
76390
+  (0.5ms) rollback transaction
76391
+  (0.1ms) begin transaction
76392
+ ----------------------------------------------------------------------------------------------------------
76393
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
76394
+ ----------------------------------------------------------------------------------------------------------
76395
+ Processing by Contour::SessionsController#create as HTML
76396
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
76397
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
76398
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
76399
+ Redirected to http://test.host/auth/google_apps
76400
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
76401
+  (0.1ms) rollback transaction
76402
+  (0.1ms) begin transaction
76403
+ ----------------------------------------------------------------------------------------------
76404
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
76405
+ ----------------------------------------------------------------------------------------------
76406
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76407
+ Processing by Contour::SessionsController#create as HTML
76408
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
76409
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76410
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
76411
+ Redirected to http://test.host/auth/ldap
76412
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
76413
+  (0.1ms) rollback transaction
76414
+  (0.1ms) begin transaction
76415
+ --------------------------------------------------------------------------
76416
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
76417
+ --------------------------------------------------------------------------
76418
+ Processing by Contour::SessionsController#create as HTML
76419
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
76420
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
76421
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
76422
+ Completed 401 Unauthorized in 5ms
76423
+ Processing by Contour::SessionsController#new as HTML
76424
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
76425
+ Unpermitted parameters: password
76426
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.2ms)
76427
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (2.9ms)
76428
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.6ms)
76429
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
76430
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.9ms)
76431
+ Completed 200 OK in 48ms (Views: 46.1ms | ActiveRecord: 0.0ms)
76432
+  (0.1ms) rollback transaction
76433
+  (0.1ms) begin transaction
76434
+ -----------------------------------------------------
76435
+ ContourHelperTest: test_should_show_sort_field_helper
76436
+ -----------------------------------------------------
76437
+  (0.1ms) rollback transaction
76438
+  (0.1ms) begin transaction
76439
+ ---------------------------------------------------------------------
76440
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
76441
+ ---------------------------------------------------------------------
76442
+  (0.1ms) rollback transaction
76443
+  (0.0ms) begin transaction
76444
+ -----------------------
76445
+ ContourTest: test_truth
76446
+ -----------------------
76447
+  (0.1ms) rollback transaction
76448
+  (0.1ms) begin transaction
76449
+ --------------------------------------------------------------------
76450
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
76451
+ --------------------------------------------------------------------
76452
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76453
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76454
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76455
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 11:15:05 -0400
76456
+ Processing by WelcomeController#logged_in_page as HTML
76457
+ Completed 401 Unauthorized in 22ms
76458
+  (0.1ms) SAVEPOINT active_record_1
76459
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
76460
+ Binary data inserted for `string` type on column `encrypted_password`
76461
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:15:05 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$vT1VO8K472.O7kyG0HBYieXy7aHFqr5V007JKW4gtR7swHVMZ2SwK"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 07 May 2013 15:15:05 UTC +00:00]]
76462
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76463
+  (0.0ms) SAVEPOINT active_record_1
76464
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76465
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76467
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
76468
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
76469
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 11:15:05 -0400
76470
+ Processing by Contour::SessionsController#create as HTML
76471
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
76472
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
76473
+  (0.1ms) SAVEPOINT active_record_1
76474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76475
+ Completed 401 Unauthorized in 8ms
76476
+ Started GET "/users/login" for 127.0.0.1 at 2013-05-07 11:15:05 -0400
76477
+ Processing by Contour::SessionsController#new as HTML
76478
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
76479
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.7ms)
76480
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
76481
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.5ms)
76482
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.6ms)
76483
+ Completed 200 OK in 17ms (Views: 15.0ms | ActiveRecord: 0.0ms)
76484
+  (0.6ms) rollback transaction
76485
+  (0.1ms) begin transaction
76486
+ --------------------------------------------------------
76487
+ NavigationTest: test_friendly_url_forwarding_after_login
76488
+ --------------------------------------------------------
76489
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76490
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76491
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76492
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 11:15:05 -0400
76493
+ Processing by WelcomeController#logged_in_page as HTML
76494
+ Completed 401 Unauthorized in 1ms
76495
+  (0.1ms) SAVEPOINT active_record_1
76496
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
76497
+ Binary data inserted for `string` type on column `encrypted_password`
76498
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:15:05 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$LX.MFgUxiO63SifIg/FOd.ou7RMrF0vIvFXBiPpxvb7AhR3J9EbGi"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 07 May 2013 15:15:05 UTC +00:00]]
76499
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76500
+  (0.1ms) SAVEPOINT active_record_1
76501
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76502
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76504
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
76505
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
76506
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 11:15:05 -0400
76507
+ Processing by Contour::SessionsController#create as HTML
76508
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
76509
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
76510
+  (0.1ms) SAVEPOINT active_record_1
76511
+ SQL (0.4ms) 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, 07 May 2013 15:15:05 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 15:15:05 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, 07 May 2013 15:15:05 UTC +00:00]]
76512
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76513
+ Redirected to http://www.example.com/logged_in_page
76514
+ Completed 302 Found in 13ms (ActiveRecord: 0.8ms)
76515
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 11:15:05 -0400
76516
+ Processing by WelcomeController#logged_in_page as HTML
76517
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
76518
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms)
76519
+  (0.6ms) rollback transaction
76520
+  (0.1ms) begin transaction
76521
+ --------------------------------------------------------------------
76522
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
76523
+ --------------------------------------------------------------------
76524
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76525
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76526
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76527
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 11:15:05 -0400
76528
+ Processing by WelcomeController#logged_in_page as HTML
76529
+ Completed 401 Unauthorized in 1ms
76530
+  (0.1ms) SAVEPOINT active_record_1
76531
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
76532
+ Binary data inserted for `string` type on column `encrypted_password`
76533
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:15:05 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$iB6CoKz/yPy6m15auvOJhuzfZcQBeVHbfBbKuNTKDgOHm9KcahReq"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 07 May 2013 15:15:05 UTC +00:00]]
76534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76535
+  (0.0ms) SAVEPOINT active_record_1
76536
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76537
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76538
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76539
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
76540
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
76541
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 11:15:05 -0400
76542
+ Processing by Contour::SessionsController#create as HTML
76543
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
76544
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
76545
+  (0.1ms) SAVEPOINT active_record_1
76546
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76547
+ Completed 401 Unauthorized in 6ms
76548
+ Started GET "/users/login" for 127.0.0.1 at 2013-05-07 11:15:05 -0400
76549
+ Processing by Contour::SessionsController#new as HTML
76550
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
76551
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.2ms)
76552
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
76553
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
76554
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.9ms)
76555
+ Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.0ms)
76556
+  (0.6ms) rollback transaction
76557
+  (0.1ms) begin transaction
76558
+ -------------------------------------------------------------
76559
+ NavigationTest: test_root_navigation_redirected_to_login_page
76560
+ -------------------------------------------------------------
76561
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76562
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76563
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76564
+ Started GET "/" for 127.0.0.1 at 2013-05-07 11:15:05 -0400
76565
+ Processing by WelcomeController#index as HTML
76566
+ Completed 401 Unauthorized in 1ms
76567
+  (0.1ms) rollback transaction
76568
+  (0.1ms) begin transaction
76569
+ -------------------------------------------------------------------------
76570
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
76571
+ -------------------------------------------------------------------------
76572
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76573
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76574
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76575
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-05-07 11:15:05 -0400
76576
+ Processing by WelcomeController#logged_in_page as JSON
76577
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76578
+  (0.1ms) SAVEPOINT active_record_1
76579
+ 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, 07 May 2013 15:15:06 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 15:15:06 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 15:15:06 UTC +00:00]]
76580
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76581
+ Completed 200 OK in 84ms (Views: 0.2ms | ActiveRecord: 0.8ms)
76582
+  (0.7ms) rollback transaction
76583
+  (0.1ms) begin transaction
76584
+ ------------------------------------------------------------------------------------------------
76585
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
76586
+ ------------------------------------------------------------------------------------------------
76587
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76588
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76589
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76590
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-05-07 11:15:06 -0400
76591
+ Processing by WelcomeController#logged_in_page as JSON
76592
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76593
+ Completed 401 Unauthorized in 78ms
76594
+  (0.1ms) rollback transaction
76595
+  (0.1ms) begin transaction
76596
+ ------------------------------------
76597
+ UserTest: test_should_apply_omniauth
76598
+ ------------------------------------
76599
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76600
+  (0.1ms) rollback transaction
76601
+  (0.1ms) begin transaction
76602
+ --------------------------------------
76603
+ UserTest: test_should_get_reverse_name
76604
+ --------------------------------------
76605
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76606
+  (0.1ms) rollback transaction
76607
+  (0.5ms) begin transaction
76608
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
76609
+ 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-05-07 15:16:19', '2013-05-07 15:16:19', 949717663, 201799169)
76610
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-05-07 15:16:19', '2013-05-07 15:16:19', 876923740, 201799169)
76611
+ 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-05-07 15:16:19', '2013-05-07 15:16:19', 864673665, 201799169)
76612
+ Fixture Delete (0.1ms) DELETE FROM "users"
76613
+ 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-05-07 15:16:19', '2013-05-07 15:16:19', 201799169)
76614
+ 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-05-07 15:16:19', '2013-05-07 15:16:19', 999914115)
76615
+ 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-05-07 15:16:19', '2013-05-07 15:16:19', 725306934)
76616
+ 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-05-07 15:16:19', '2013-05-07 15:16:19', 349534908)
76617
+  (2.2ms) commit transaction
76618
+  (0.1ms) begin transaction
76619
+ -------------------------------------------------
76620
+ AuthenticationTest: test_should_get_provider_name
76621
+ -------------------------------------------------
76622
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
76623
+  (0.2ms) rollback transaction
76624
+  (0.1ms) begin transaction
76625
+ --------------------------------------------------------------------------------
76626
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
76627
+ --------------------------------------------------------------------------------
76628
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
76629
+  (0.1ms) rollback transaction
76630
+  (0.1ms) begin transaction
76631
+ -------------------------------------------------------------------------
76632
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
76633
+ -------------------------------------------------------------------------
76634
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76635
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
76636
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
76637
+ Processing by Contour::AuthenticationsController#create as HTML
76638
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-05-07 15:16:19 UTC", "updated_at"=>"2013-05-07 15:16:19 UTC"}}
76639
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
76640
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
76641
+ Logged in user found, creating associated authentication.
76642
+  (0.1ms) SAVEPOINT active_record_1
76643
+ SQL (0.4ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:16:19 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 07 May 2013 15:16:19 UTC +00:00], ["user_id", 201799169]]
76644
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76645
+ Redirected to http://test.host/authentications
76646
+ Completed 302 Found in 17ms (ActiveRecord: 0.8ms)
76647
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
76648
+  (0.7ms) rollback transaction
76649
+  (0.1ms) begin transaction
76650
+ --------------------------------------------------------------------------
76651
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
76652
+ --------------------------------------------------------------------------
76653
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76654
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
76655
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
76656
+ Processing by Contour::AuthenticationsController#destroy as HTML
76657
+ Parameters: {"id"=>"949717663"}
76658
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
76659
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
76660
+  (0.0ms) SAVEPOINT active_record_1
76661
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
76662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76663
+ Redirected to http://test.host/authentications
76664
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
76665
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
76666
+  (0.7ms) rollback transaction
76667
+  (0.1ms) begin transaction
76668
+ -------------------------------------------------------------
76669
+ Contour::AuthenticationsControllerTest: test_should_get_index
76670
+ -------------------------------------------------------------
76671
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76672
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
76673
+ Processing by Contour::AuthenticationsController#index as HTML
76674
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
76675
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
76676
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
76677
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (48.8ms)
76678
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.4ms)
76679
+ Completed 200 OK in 142ms (Views: 139.8ms | ActiveRecord: 0.4ms)
76680
+  (0.1ms) rollback transaction
76681
+  (0.1ms) begin transaction
76682
+ -----------------------------------------------------------------------------
76683
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
76684
+ -----------------------------------------------------------------------------
76685
+ Processing by Contour::PasswordsController#create as HTML
76686
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
76687
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76688
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'SzzWzvCJfqZxpv33ZYpm' LIMIT 1
76689
+  (0.1ms) SAVEPOINT active_record_1
76690
+ SQL (0.4ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "SzzWzvCJfqZxpv33ZYpm"], ["reset_password_sent_at", Tue, 07 May 2013 15:16:19 UTC +00:00], ["updated_at", Tue, 07 May 2013 15:16:19 UTC +00:00]]
76691
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76692
+
76693
+ Sent mail to valid@example.com (10.3ms)
76694
+ Date: Tue, 07 May 2013 11:16:19 -0400
76695
+ From: please-change-me-at-config-initializers-devise@example.com
76696
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
76697
+ To: valid@example.com
76698
+ Message-ID: <51891ac3a7fb0_d2953ffed946067890617@edge.partners.org.mail>
76699
+ Subject: Reset password instructions
76700
+ Mime-Version: 1.0
76701
+ Content-Type: text/html;
76702
+ charset=UTF-8
76703
+ Content-Transfer-Encoding: 7bit
76704
+
76705
+ <p>Hello valid@example.com!</p>
76706
+
76707
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
76708
+
76709
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=SzzWzvCJfqZxpv33ZYpm">Change my password</a></p>
76710
+
76711
+ <p>If you didn't request this, please ignore this email.</p>
76712
+ <p>Your password won't change until you access the link above and create a new one.</p>
76713
+
76714
+ Redirected to http://test.host/users/login
76715
+ Completed 302 Found in 60ms (ActiveRecord: 0.9ms)
76716
+  (48.7ms) rollback transaction
76717
+  (0.1ms) begin transaction
76718
+ -----------------------------------------------------------------------------
76719
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
76720
+ -----------------------------------------------------------------------------
76721
+ Processing by Contour::PasswordsController#new as HTML
76722
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
76723
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (6.8ms)
76724
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.4ms)
76725
+ Completed 200 OK in 24ms (Views: 23.4ms | ActiveRecord: 0.0ms)
76726
+  (0.1ms) rollback transaction
76727
+  (0.1ms) begin transaction
76728
+ -------------------------------------------------------------------------------
76729
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
76730
+ -------------------------------------------------------------------------------
76731
+  (0.2ms) SELECT COUNT(*) FROM "users"
76732
+ Processing by Contour::RegistrationsController#create as HTML
76733
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
76734
+ Unpermitted parameters: spam
76735
+  (0.1ms) SAVEPOINT active_record_1
76736
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
76737
+ Binary data inserted for `string` type on column `encrypted_password`
76738
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:16:19 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$FfUUU4gZj4Bw50ddUw2JzO/Y9n7XUIoXyhSOzIcA/LZ0XG5bFXPjq"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 07 May 2013 15:16:19 UTC +00:00]]
76739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76740
+ Redirected to http://test.host/users/login
76741
+ Completed 302 Found in 14ms (ActiveRecord: 1.0ms)
76742
+  (0.1ms) SELECT COUNT(*) FROM "users"
76743
+  (1.0ms) rollback transaction
76744
+  (0.1ms) begin transaction
76745
+ --------------------------------------------------------------------------------------------
76746
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
76747
+ --------------------------------------------------------------------------------------------
76748
+  (0.2ms) SELECT COUNT(*) FROM "users"
76749
+ Processing by Contour::RegistrationsController#create as HTML
76750
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
76751
+ Unpermitted parameters: status
76752
+  (0.1ms) SAVEPOINT active_record_1
76753
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
76754
+ Binary data inserted for `string` type on column `encrypted_password`
76755
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:16:19 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$WCd4rOktIBHr2hNqioOFm.f4.yZC3//erfmv7iXqdO8VQd3DzqEEq"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 07 May 2013 15:16:19 UTC +00:00]]
76756
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76757
+ Redirected to http://test.host/users/login
76758
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
76759
+  (0.1ms) SELECT COUNT(*) FROM "users"
76760
+  (0.8ms) rollback transaction
76761
+  (0.1ms) begin transaction
76762
+ ---------------------------------------------------------------------------------------------
76763
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
76764
+ ---------------------------------------------------------------------------------------------
76765
+  (0.1ms) SELECT COUNT(*) FROM "users"
76766
+ Processing by Contour::RegistrationsController#create as HTML
76767
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
76768
+ Unpermitted parameters: spam
76769
+ Redirected to http://test.host/users/login
76770
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
76771
+  (0.1ms) SELECT COUNT(*) FROM "users"
76772
+  (0.1ms) rollback transaction
76773
+  (0.1ms) begin transaction
76774
+ ----------------------------------------------------------------------
76775
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
76776
+ ----------------------------------------------------------------------
76777
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76778
+ Processing by Contour::SessionsController#create as JSON
76779
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
76780
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76781
+  (0.1ms) SAVEPOINT active_record_1
76782
+ 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, 07 May 2013 15:16:20 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 15:16:20 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 15:16:20 UTC +00:00]]
76783
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76784
+ Completed 200 OK in 78ms (Views: 0.3ms | ActiveRecord: 0.8ms)
76785
+  (0.8ms) rollback transaction
76786
+  (0.1ms) begin transaction
76787
+ ----------------------------------------------------------------------------------------------------------
76788
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
76789
+ ----------------------------------------------------------------------------------------------------------
76790
+ Processing by Contour::SessionsController#create as HTML
76791
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
76792
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
76793
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
76794
+ Redirected to http://test.host/auth/google_apps
76795
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
76796
+  (0.1ms) rollback transaction
76797
+  (0.1ms) begin transaction
76798
+ ----------------------------------------------------------------------------------------------
76799
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
76800
+ ----------------------------------------------------------------------------------------------
76801
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76802
+ Processing by Contour::SessionsController#create as HTML
76803
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
76804
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76805
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
76806
+ Redirected to http://test.host/auth/ldap
76807
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
76808
+  (0.1ms) rollback transaction
76809
+  (0.1ms) begin transaction
76810
+ --------------------------------------------------------------------------
76811
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
76812
+ --------------------------------------------------------------------------
76813
+ Processing by Contour::SessionsController#create as HTML
76814
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
76815
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
76816
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
76817
+ Completed 401 Unauthorized in 3ms
76818
+ Processing by Contour::SessionsController#new as HTML
76819
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
76820
+ Unpermitted parameters: password
76821
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.8ms)
76822
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.7ms)
76823
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (41.1ms)
76824
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
76825
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
76826
+ Completed 200 OK in 60ms (Views: 58.9ms | ActiveRecord: 0.0ms)
76827
+  (0.1ms) rollback transaction
76828
+  (0.1ms) begin transaction
76829
+ -----------------------------------------------------
76830
+ ContourHelperTest: test_should_show_sort_field_helper
76831
+ -----------------------------------------------------
76832
+  (0.1ms) rollback transaction
76833
+  (0.1ms) begin transaction
76834
+ ---------------------------------------------------------------------
76835
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
76836
+ ---------------------------------------------------------------------
76837
+  (0.1ms) rollback transaction
76838
+  (0.1ms) begin transaction
76839
+ -----------------------
76840
+ ContourTest: test_truth
76841
+ -----------------------
76842
+  (0.1ms) rollback transaction
76843
+  (0.0ms) begin transaction
76844
+ --------------------------------------------------------------------
76845
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
76846
+ --------------------------------------------------------------------
76847
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76848
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76849
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76850
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 11:16:20 -0400
76851
+ Processing by WelcomeController#logged_in_page as HTML
76852
+ Completed 401 Unauthorized in 21ms
76853
+  (0.1ms) SAVEPOINT active_record_1
76854
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
76855
+ Binary data inserted for `string` type on column `encrypted_password`
76856
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:16:20 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$sNeP6fHJ1mv/Hi2ydr.lB.drg1aXq4A/tXwR77DtWOE0OPWQjUr0y"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 07 May 2013 15:16:20 UTC +00:00]]
76857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76858
+  (0.0ms) SAVEPOINT active_record_1
76859
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76860
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76862
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
76863
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
76864
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 11:16:20 -0400
76865
+ Processing by Contour::SessionsController#create as HTML
76866
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
76867
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
76868
+  (0.1ms) SAVEPOINT active_record_1
76869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76870
+ Completed 401 Unauthorized in 6ms
76871
+ Started GET "/users/login" for 127.0.0.1 at 2013-05-07 11:16:20 -0400
76872
+ Processing by Contour::SessionsController#new as HTML
76873
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
76874
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.1ms)
76875
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
76876
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.2ms)
76877
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.6ms)
76878
+ Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.0ms)
76879
+  (0.9ms) rollback transaction
76880
+  (0.1ms) begin transaction
76881
+ --------------------------------------------------------
76882
+ NavigationTest: test_friendly_url_forwarding_after_login
76883
+ --------------------------------------------------------
76884
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76885
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76886
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76887
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 11:16:20 -0400
76888
+ Processing by WelcomeController#logged_in_page as HTML
76889
+ Completed 401 Unauthorized in 1ms
76890
+  (0.1ms) SAVEPOINT active_record_1
76891
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
76892
+ Binary data inserted for `string` type on column `encrypted_password`
76893
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:16:20 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$0P3i1EybOq8AnFO32Tgty.6lp//Qek7mAB2yPhW/HYOxuNU0o9DJO"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 07 May 2013 15:16:20 UTC +00:00]]
76894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76895
+  (0.0ms) SAVEPOINT active_record_1
76896
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76897
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76899
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
76900
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
76901
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 11:16:20 -0400
76902
+ Processing by Contour::SessionsController#create as HTML
76903
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
76904
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
76905
+  (0.1ms) SAVEPOINT active_record_1
76906
+ 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, 07 May 2013 15:16:20 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 15:16:20 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, 07 May 2013 15:16:20 UTC +00:00]]
76907
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76908
+ Redirected to http://www.example.com/logged_in_page
76909
+ Completed 302 Found in 10ms (ActiveRecord: 0.6ms)
76910
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 11:16:20 -0400
76911
+ Processing by WelcomeController#logged_in_page as HTML
76912
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
76913
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.1ms)
76914
+  (0.7ms) rollback transaction
76915
+  (0.1ms) begin transaction
76916
+ --------------------------------------------------------------------
76917
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
76918
+ --------------------------------------------------------------------
76919
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76920
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76921
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76922
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 11:16:20 -0400
76923
+ Processing by WelcomeController#logged_in_page as HTML
76924
+ Completed 401 Unauthorized in 1ms
76925
+  (0.1ms) SAVEPOINT active_record_1
76926
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
76927
+ Binary data inserted for `string` type on column `encrypted_password`
76928
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:16:20 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$V3e1h7GpGxpzbDHfmZvZWuayz7INF65eJJxQg6vpAex.WN0TOr0Zq"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 07 May 2013 15:16:20 UTC +00:00]]
76929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76930
+  (0.1ms) SAVEPOINT active_record_1
76931
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76932
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
76933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76934
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
76935
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
76936
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 11:16:20 -0400
76937
+ Processing by Contour::SessionsController#create as HTML
76938
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
76939
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
76940
+  (0.1ms) SAVEPOINT active_record_1
76941
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76942
+ Completed 401 Unauthorized in 5ms
76943
+ Started GET "/users/login" for 127.0.0.1 at 2013-05-07 11:16:20 -0400
76944
+ Processing by Contour::SessionsController#new as HTML
76945
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
76946
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.2ms)
76947
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
76948
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
76949
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
76950
+ Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.0ms)
76951
+  (0.8ms) rollback transaction
76952
+  (0.1ms) begin transaction
76953
+ -------------------------------------------------------------
76954
+ NavigationTest: test_root_navigation_redirected_to_login_page
76955
+ -------------------------------------------------------------
76956
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76957
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76958
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76959
+ Started GET "/" for 127.0.0.1 at 2013-05-07 11:16:20 -0400
76960
+ Processing by WelcomeController#index as HTML
76961
+ Completed 401 Unauthorized in 1ms
76962
+  (0.1ms) rollback transaction
76963
+  (0.1ms) begin transaction
76964
+ -------------------------------------------------------------------------
76965
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
76966
+ -------------------------------------------------------------------------
76967
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76968
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76969
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76970
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-05-07 11:16:20 -0400
76971
+ Processing by WelcomeController#logged_in_page as JSON
76972
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76973
+  (0.1ms) SAVEPOINT active_record_1
76974
+ 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, 07 May 2013 15:16:20 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 15:16:20 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 15:16:20 UTC +00:00]]
76975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76976
+ Completed 200 OK in 78ms (Views: 0.2ms | ActiveRecord: 0.7ms)
76977
+  (0.6ms) rollback transaction
76978
+  (0.1ms) begin transaction
76979
+ ------------------------------------------------------------------------------------------------
76980
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
76981
+ ------------------------------------------------------------------------------------------------
76982
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76983
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
76984
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
76985
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-05-07 11:16:20 -0400
76986
+ Processing by WelcomeController#logged_in_page as JSON
76987
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
76988
+ Completed 401 Unauthorized in 74ms
76989
+  (0.1ms) rollback transaction
76990
+  (0.1ms) begin transaction
76991
+ ------------------------------------
76992
+ UserTest: test_should_apply_omniauth
76993
+ ------------------------------------
76994
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
76995
+  (0.1ms) rollback transaction
76996
+  (0.1ms) begin transaction
76997
+ --------------------------------------
76998
+ UserTest: test_should_get_reverse_name
76999
+ --------------------------------------
77000
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77001
+  (0.1ms) rollback transaction
77002
+  (0.4ms) begin transaction
77003
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
77004
+ 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-05-07 15:18:24', '2013-05-07 15:18:24', 949717663, 201799169)
77005
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-05-07 15:18:24', '2013-05-07 15:18:24', 876923740, 201799169)
77006
+ 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-05-07 15:18:24', '2013-05-07 15:18:24', 864673665, 201799169)
77007
+ Fixture Delete (0.1ms) DELETE FROM "users"
77008
+ 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-05-07 15:18:24', '2013-05-07 15:18:24', 201799169)
77009
+ 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-05-07 15:18:24', '2013-05-07 15:18:24', 999914115)
77010
+ 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-05-07 15:18:24', '2013-05-07 15:18:24', 725306934)
77011
+ 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-05-07 15:18:24', '2013-05-07 15:18:24', 349534908)
77012
+  (2.6ms) commit transaction
77013
+  (0.0ms) begin transaction
77014
+ -------------------------------------------------
77015
+ AuthenticationTest: test_should_get_provider_name
77016
+ -------------------------------------------------
77017
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
77018
+  (0.2ms) rollback transaction
77019
+  (0.1ms) begin transaction
77020
+ --------------------------------------------------------------------------------
77021
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
77022
+ --------------------------------------------------------------------------------
77023
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
77024
+  (0.1ms) rollback transaction
77025
+  (0.1ms) begin transaction
77026
+ -------------------------------------------------------------------------
77027
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
77028
+ -------------------------------------------------------------------------
77029
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77030
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
77031
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
77032
+ Processing by Contour::AuthenticationsController#create as HTML
77033
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-05-07 15:18:24 UTC", "updated_at"=>"2013-05-07 15:18:24 UTC"}}
77034
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
77035
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
77036
+ Logged in user found, creating associated authentication.
77037
+  (0.1ms) SAVEPOINT active_record_1
77038
+ SQL (0.4ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:18:24 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 07 May 2013 15:18:24 UTC +00:00], ["user_id", 201799169]]
77039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77040
+ Redirected to http://test.host/authentications
77041
+ Completed 302 Found in 17ms (ActiveRecord: 0.8ms)
77042
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
77043
+  (2.9ms) rollback transaction
77044
+  (0.1ms) begin transaction
77045
+ --------------------------------------------------------------------------
77046
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
77047
+ --------------------------------------------------------------------------
77048
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77049
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
77050
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
77051
+ Processing by Contour::AuthenticationsController#destroy as HTML
77052
+ Parameters: {"id"=>"949717663"}
77053
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
77054
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
77055
+  (0.0ms) SAVEPOINT active_record_1
77056
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
77057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77058
+ Redirected to http://test.host/authentications
77059
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
77060
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
77061
+  (0.6ms) rollback transaction
77062
+  (0.1ms) begin transaction
77063
+ -------------------------------------------------------------
77064
+ Contour::AuthenticationsControllerTest: test_should_get_index
77065
+ -------------------------------------------------------------
77066
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77067
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
77068
+ Processing by Contour::AuthenticationsController#index as HTML
77069
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
77070
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
77071
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
77072
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (49.1ms)
77073
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.2ms)
77074
+ Completed 200 OK in 145ms (Views: 142.5ms | ActiveRecord: 0.4ms)
77075
+  (0.1ms) rollback transaction
77076
+  (0.1ms) begin transaction
77077
+ -----------------------------------------------------------------------------
77078
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
77079
+ -----------------------------------------------------------------------------
77080
+ Processing by Contour::PasswordsController#create as HTML
77081
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
77082
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
77083
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'fQKiAzvYV4eHpf1c4Eop' LIMIT 1
77084
+  (0.0ms) SAVEPOINT active_record_1
77085
+ SQL (0.4ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "fQKiAzvYV4eHpf1c4Eop"], ["reset_password_sent_at", Tue, 07 May 2013 15:18:24 UTC +00:00], ["updated_at", Tue, 07 May 2013 15:18:24 UTC +00:00]]
77086
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77087
+
77088
+ Sent mail to valid@example.com (12.3ms)
77089
+ Date: Tue, 07 May 2013 11:18:24 -0400
77090
+ From: please-change-me-at-config-initializers-devise@example.com
77091
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
77092
+ To: valid@example.com
77093
+ Message-ID: <51891b40b6905_d34c3ff895c60674882b8@edge.partners.org.mail>
77094
+ Subject: Reset password instructions
77095
+ Mime-Version: 1.0
77096
+ Content-Type: text/html;
77097
+ charset=UTF-8
77098
+ Content-Transfer-Encoding: 7bit
77099
+
77100
+ <p>Hello valid@example.com!</p>
77101
+
77102
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
77103
+
77104
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=fQKiAzvYV4eHpf1c4Eop">Change my password</a></p>
77105
+
77106
+ <p>If you didn't request this, please ignore this email.</p>
77107
+ <p>Your password won't change until you access the link above and create a new one.</p>
77108
+
77109
+ Redirected to http://test.host/users/login
77110
+ Completed 302 Found in 60ms (ActiveRecord: 0.9ms)
77111
+  (0.3ms) rollback transaction
77112
+  (0.1ms) begin transaction
77113
+ -----------------------------------------------------------------------------
77114
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
77115
+ -----------------------------------------------------------------------------
77116
+ Processing by Contour::PasswordsController#new as HTML
77117
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.3ms)
77118
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (9.1ms)
77119
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (11.8ms)
77120
+ Completed 200 OK in 25ms (Views: 24.2ms | ActiveRecord: 0.0ms)
77121
+  (0.1ms) rollback transaction
77122
+  (0.1ms) begin transaction
77123
+ -------------------------------------------------------------------------------
77124
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
77125
+ -------------------------------------------------------------------------------
77126
+  (0.2ms) SELECT COUNT(*) FROM "users"
77127
+ Processing by Contour::RegistrationsController#create as HTML
77128
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
77129
+ Unpermitted parameters: spam
77130
+  (0.1ms) SAVEPOINT active_record_1
77131
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
77132
+ Binary data inserted for `string` type on column `encrypted_password`
77133
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:18:24 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$viUOBGv0R0Y6/.XW1x7vIOYF.NV9OlJCbCfe7wDPfXjDWED7NI9Eu"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 07 May 2013 15:18:24 UTC +00:00]]
77134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77135
+ Redirected to http://test.host/users/login
77136
+ Completed 302 Found in 14ms (ActiveRecord: 0.8ms)
77137
+  (0.1ms) SELECT COUNT(*) FROM "users"
77138
+  (1.2ms) rollback transaction
77139
+  (0.1ms) begin transaction
77140
+ --------------------------------------------------------------------------------------------
77141
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
77142
+ --------------------------------------------------------------------------------------------
77143
+  (0.1ms) SELECT COUNT(*) FROM "users"
77144
+ Processing by Contour::RegistrationsController#create as HTML
77145
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
77146
+ Unpermitted parameters: status
77147
+  (0.1ms) SAVEPOINT active_record_1
77148
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
77149
+ Binary data inserted for `string` type on column `encrypted_password`
77150
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:18:24 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$KBkYajUqpSdOj.1pzYb2FuDSHTrHzUoKUiFeq8Hjvu8g5lecdF1RG"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 07 May 2013 15:18:24 UTC +00:00]]
77151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77152
+ Redirected to http://test.host/users/login
77153
+ Completed 302 Found in 10ms (ActiveRecord: 1.1ms)
77154
+  (0.1ms) SELECT COUNT(*) FROM "users"
77155
+  (0.8ms) rollback transaction
77156
+  (0.1ms) begin transaction
77157
+ ---------------------------------------------------------------------------------------------
77158
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
77159
+ ---------------------------------------------------------------------------------------------
77160
+  (0.2ms) SELECT COUNT(*) FROM "users"
77161
+ Processing by Contour::RegistrationsController#create as HTML
77162
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
77163
+ 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"}
77164
+ Unpermitted parameters: spam
77165
+ Redirected to http://test.host/users/login
77166
+ Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
77167
+  (0.1ms) SELECT COUNT(*) FROM "users"
77168
+  (0.1ms) rollback transaction
77169
+  (0.1ms) begin transaction
77170
+ ----------------------------------------------------------------------
77171
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
77172
+ ----------------------------------------------------------------------
77173
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77174
+ Processing by Contour::SessionsController#create as JSON
77175
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
77176
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
77177
+  (0.1ms) SAVEPOINT active_record_1
77178
+ 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, 07 May 2013 15:18:25 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 15:18:25 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 15:18:25 UTC +00:00]]
77179
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77180
+ Completed 200 OK in 77ms (Views: 0.3ms | ActiveRecord: 0.7ms)
77181
+  (0.7ms) rollback transaction
77182
+  (0.1ms) begin transaction
77183
+ ----------------------------------------------------------------------------------------------------------
77184
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
77185
+ ----------------------------------------------------------------------------------------------------------
77186
+ Processing by Contour::SessionsController#create as HTML
77187
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
77188
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
77189
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
77190
+ Redirected to http://test.host/auth/google_apps
77191
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
77192
+  (0.1ms) rollback transaction
77193
+  (0.0ms) begin transaction
77194
+ ----------------------------------------------------------------------------------------------
77195
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
77196
+ ----------------------------------------------------------------------------------------------
77197
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77198
+ Processing by Contour::SessionsController#create as HTML
77199
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
77200
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
77201
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
77202
+ Redirected to http://test.host/auth/ldap
77203
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
77204
+  (0.1ms) rollback transaction
77205
+  (0.1ms) begin transaction
77206
+ --------------------------------------------------------------------------
77207
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
77208
+ --------------------------------------------------------------------------
77209
+ Processing by Contour::SessionsController#create as HTML
77210
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
77211
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
77212
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
77213
+ Completed 401 Unauthorized in 3ms
77214
+ Processing by Contour::SessionsController#new as HTML
77215
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
77216
+ Unpermitted parameters: password
77217
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
77218
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.7ms)
77219
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
77220
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
77221
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (41.2ms)
77222
+ Completed 200 OK in 59ms (Views: 57.5ms | ActiveRecord: 0.0ms)
77223
+  (0.1ms) rollback transaction
77224
+  (0.1ms) begin transaction
77225
+ -----------------------------------------------------
77226
+ ContourHelperTest: test_should_show_sort_field_helper
77227
+ -----------------------------------------------------
77228
+  (0.1ms) rollback transaction
77229
+  (0.0ms) begin transaction
77230
+ ---------------------------------------------------------------------
77231
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
77232
+ ---------------------------------------------------------------------
77233
+  (0.1ms) rollback transaction
77234
+  (0.1ms) begin transaction
77235
+ -----------------------
77236
+ ContourTest: test_truth
77237
+ -----------------------
77238
+  (0.1ms) rollback transaction
77239
+  (0.1ms) begin transaction
77240
+ --------------------------------------------------------------------
77241
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
77242
+ --------------------------------------------------------------------
77243
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77244
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
77245
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
77246
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 11:18:25 -0400
77247
+ Processing by WelcomeController#logged_in_page as HTML
77248
+ Completed 401 Unauthorized in 18ms
77249
+  (0.1ms) SAVEPOINT active_record_1
77250
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
77251
+ Binary data inserted for `string` type on column `encrypted_password`
77252
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:18:25 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$lmdU0MQ/HQcoWiDucPX9/uIkpzzg/tfOuHQIUs3sgb24MEjea3jCC"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 07 May 2013 15:18:25 UTC +00:00]]
77253
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77254
+  (0.0ms) SAVEPOINT active_record_1
77255
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
77256
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
77257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77258
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
77259
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
77260
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 11:18:25 -0400
77261
+ Processing by Contour::SessionsController#create as HTML
77262
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
77263
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
77264
+  (0.1ms) SAVEPOINT active_record_1
77265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77266
+ Completed 401 Unauthorized in 6ms
77267
+ Started GET "/users/login" for 127.0.0.1 at 2013-05-07 11:18:25 -0400
77268
+ Processing by Contour::SessionsController#new as HTML
77269
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
77270
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.1ms)
77271
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
77272
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.2ms)
77273
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.7ms)
77274
+ Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.0ms)
77275
+  (0.9ms) rollback transaction
77276
+  (0.1ms) begin transaction
77277
+ --------------------------------------------------------
77278
+ NavigationTest: test_friendly_url_forwarding_after_login
77279
+ --------------------------------------------------------
77280
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77281
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
77282
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
77283
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 11:18:25 -0400
77284
+ Processing by WelcomeController#logged_in_page as HTML
77285
+ Completed 401 Unauthorized in 1ms
77286
+  (0.1ms) SAVEPOINT active_record_1
77287
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
77288
+ Binary data inserted for `string` type on column `encrypted_password`
77289
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:18:25 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$6SEfsMq9yzPa6cQJ9BWYFOS4V/MmgZFclvq4lgr.JFiRKEVGXlh9e"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 07 May 2013 15:18:25 UTC +00:00]]
77290
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77291
+  (0.0ms) SAVEPOINT active_record_1
77292
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
77293
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
77294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77295
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
77296
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
77297
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 11:18:25 -0400
77298
+ Processing by Contour::SessionsController#create as HTML
77299
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
77300
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
77301
+  (0.1ms) SAVEPOINT active_record_1
77302
+ 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, 07 May 2013 15:18:25 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 15:18:25 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, 07 May 2013 15:18:25 UTC +00:00]]
77303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77304
+ Redirected to http://www.example.com/logged_in_page
77305
+ Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
77306
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 11:18:25 -0400
77307
+ Processing by WelcomeController#logged_in_page as HTML
77308
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
77309
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
77310
+  (0.7ms) rollback transaction
77311
+  (0.1ms) begin transaction
77312
+ --------------------------------------------------------------------
77313
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
77314
+ --------------------------------------------------------------------
77315
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77316
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
77317
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
77318
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 11:18:25 -0400
77319
+ Processing by WelcomeController#logged_in_page as HTML
77320
+ Completed 401 Unauthorized in 1ms
77321
+  (0.1ms) SAVEPOINT active_record_1
77322
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
77323
+ Binary data inserted for `string` type on column `encrypted_password`
77324
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 15:18:25 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$qMrwV5k3bF7JcsQc5d/qveWbpMgcXpwEnxYGIH08tToXbs44xSOSC"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 07 May 2013 15:18:25 UTC +00:00]]
77325
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77326
+  (0.0ms) SAVEPOINT active_record_1
77327
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
77328
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
77329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77330
+ SQL (0.2ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
77331
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
77332
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 11:18:25 -0400
77333
+ Processing by Contour::SessionsController#create as HTML
77334
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
77335
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
77336
+  (0.1ms) SAVEPOINT active_record_1
77337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77338
+ Completed 401 Unauthorized in 5ms
77339
+ Started GET "/users/login" for 127.0.0.1 at 2013-05-07 11:18:25 -0400
77340
+ Processing by Contour::SessionsController#new as HTML
77341
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
77342
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.1ms)
77343
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
77344
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.3ms)
77345
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.8ms)
77346
+ Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.0ms)
77347
+  (0.7ms) rollback transaction
77348
+  (0.1ms) begin transaction
77349
+ -------------------------------------------------------------
77350
+ NavigationTest: test_root_navigation_redirected_to_login_page
77351
+ -------------------------------------------------------------
77352
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77353
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
77354
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
77355
+ Started GET "/" for 127.0.0.1 at 2013-05-07 11:18:25 -0400
77356
+ Processing by WelcomeController#index as HTML
77357
+ Completed 401 Unauthorized in 1ms
77358
+  (0.1ms) rollback transaction
77359
+  (0.1ms) begin transaction
77360
+ -------------------------------------------------------------------------
77361
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
77362
+ -------------------------------------------------------------------------
77363
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77364
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
77365
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
77366
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-05-07 11:18:25 -0400
77367
+ Processing by WelcomeController#logged_in_page as JSON
77368
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
77369
+  (0.1ms) SAVEPOINT active_record_1
77370
+ SQL (0.6ms) 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, 07 May 2013 15:18:25 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 15:18:25 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 15:18:25 UTC +00:00]]
77371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77372
+ Completed 200 OK in 80ms (Views: 0.3ms | ActiveRecord: 0.9ms)
77373
+  (17.8ms) rollback transaction
77374
+  (0.1ms) begin transaction
77375
+ ------------------------------------------------------------------------------------------------
77376
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
77377
+ ------------------------------------------------------------------------------------------------
77378
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77379
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
77380
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
77381
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-05-07 11:18:25 -0400
77382
+ Processing by WelcomeController#logged_in_page as JSON
77383
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
77384
+ Completed 401 Unauthorized in 76ms
77385
+  (0.1ms) rollback transaction
77386
+  (0.1ms) begin transaction
77387
+ ------------------------------------
77388
+ UserTest: test_should_apply_omniauth
77389
+ ------------------------------------
77390
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77391
+  (0.1ms) rollback transaction
77392
+  (0.1ms) begin transaction
77393
+ --------------------------------------
77394
+ UserTest: test_should_get_reverse_name
75445
77395
  --------------------------------------
75446
77396
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
75447
77397
   (0.1ms) rollback transaction