contour 2.0.0.beta.3 → 2.0.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YjRjZmRmNzFkYzU5ZTNkZDNmNzI3ZWVmOGNmYjRlNjY0ZDk5ZmZmMA==
5
- data.tar.gz: !binary |-
6
- MWNmZmFiOWY3YjhmYTFlNWRjYzZmOGI3YWVhMDgzMjNlMzBkNTVkZQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- Yzg0ZjM3ZTZkYTJmZTI5MjBmNWE2YTkyOTJlMWM4OWYwYWI0NDUyOTA1MDFm
10
- ZTg4ODc4ZjZmZDg0ODlmNmIxYzFhYTRjN2VkZTI0YzUzOWExNjgyZjM3MDc2
11
- Yjk5MGQwZTEyMjRjZDM4YThkY2U5ZjNiZTk4MzJhYmM4MWIyNjY=
12
- data.tar.gz: !binary |-
13
- ODg5OGY1MzlhNWI3Y2QzMzU4MjhhODRmZTA0NGQzZjQyMjM1NDg4ZmFiZTdj
14
- NmZjMDFiZDhkYjczMWY3NzlhNzdmM2VlZmQ4MmNiMDY2NjYzODMzZDZlYWE5
15
- OTkwZmI5MGM3MGY4OTQ4NzA3OTg2NzhhOTIwYWFiN2QxMDdjNmI=
2
+ SHA1:
3
+ metadata.gz: c190640e5a4f397293ece9ea69640501dc22fd6c
4
+ data.tar.gz: 350ffd6724ab8ee262b480dc4631da3d9da476e7
5
+ SHA512:
6
+ metadata.gz: 5758da6e7c2637df99e6f5da126821df4998c48a3f11ad3e919b8f93aa46543a23a267f95d3ba4509896838792ca20fb42ce54c885466d8c9d759524a363a6e6
7
+ data.tar.gz: f491acebcf5d6ff87b13afc43ad26c317af4cc14f453ce9166bf6e0839c447f43aceffa9b48ac4dd081c7f9eb7c434b8c4ac8559680eff2d67b0cfaad8a281c7
@@ -1,6 +1,7 @@
1
1
  ## 2.0.0
2
2
 
3
3
  ### Enhancements
4
+ - Use of Ruby 2.0.0-p0 is now recommended
4
5
  - **Gem Changes**
5
6
  - Updated to Rails 4.0.0.beta1
6
7
 
@@ -5,11 +5,11 @@ class Contour::RegistrationsController < Devise::RegistrationsController
5
5
  if signed_in?
6
6
  # TODO: Should use "Resource" and not "User"
7
7
  params[:user][:password] = params[:user][:password_confirmation] = Digest::SHA1.hexdigest(Time.now.usec.to_s)[0..19] if params[:user][:password].blank? and params[:user][:password_confirmation].blank?
8
- @user = User.new(params[:user])
8
+ @user = User.new(user_params)
9
9
  if @user.save
10
10
  respond_to do |format|
11
11
  format.html { redirect_to @user, notice: 'User was successfully created.' }
12
- format.json { render json: @user.as_json( only: [:id, :email, :first_name, :last_name, :authentication_token ] ), status: :created, location: @user }
12
+ format.json { render json: @user.as_json( only: ([ :id, :email, :authentication_token ] | Contour::sign_up_fields.collect{|a| a[:attribute].to_sym}) ), status: :created, location: @user }
13
13
  end
14
14
  else
15
15
  respond_to do |format|
@@ -25,16 +25,24 @@ class Contour::RegistrationsController < Devise::RegistrationsController
25
25
 
26
26
  private
27
27
 
28
- def build_resource(*args)
29
- super
30
- if session[:omniauth]
31
- @user.apply_omniauth(session[:omniauth])
32
- @user.valid?
28
+ def build_resource(*args)
29
+ hash ||= user_params
30
+ self.resource = resource_class.new_with_session(hash, session)
31
+
32
+ if session[:omniauth]
33
+ @user.apply_omniauth(session[:omniauth])
34
+ @user.valid?
35
+ end
33
36
  end
34
- end
35
37
 
36
- def after_inactive_sign_up_path_for(resource)
37
- new_session_path(resource) # root_path
38
- end
38
+ def after_inactive_sign_up_path_for(resource)
39
+ new_session_path(resource) # root_path
40
+ end
41
+
42
+ def user_params
43
+ params[:user] ||= { blank: '1' }
44
+ permitted_fields = Contour::sign_up_fields.collect{|a| a[:attribute].to_sym} | [ :email, :password, :password_confirmation ]
45
+ params.require(:user).permit( *permitted_fields )
46
+ end
39
47
 
40
48
  end
@@ -3,7 +3,7 @@ module Contour
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
5
  TINY = 0
6
- BUILD = "beta.3" # nil, "pre", "rc", "rc2"
6
+ BUILD = "beta.4" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
@@ -2,16 +2,70 @@ require 'test_helper'
2
2
 
3
3
  class Contour::RegistrationsControllerTest < ActionController::TestCase
4
4
  setup do
5
- login(users(:admin))
6
5
  request.env["devise.mapping"] = Devise.mappings[:user]
7
6
  end
8
7
 
8
+ test "a new user should be able to sign up" do
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' }
11
+ end
12
+
13
+ assert_not_nil assigns(:user)
14
+ assert_equal 'First Name', assigns(:user).first_name
15
+ assert_equal 'Last Name', assigns(:user).last_name
16
+ assert_equal 'pending', assigns(:user).status
17
+ assert_equal 'new_user@example.com', assigns(:user).email
18
+
19
+ assert_redirected_to new_user_session_path
20
+ end
21
+
22
+ test "a new user should not be able to set their status" do
23
+ assert_difference('User.count') do
24
+ post :create, user: { first_name: 'First Name', last_name: 'Last Name', status: 'active', email: 'new_registration@example.com', password: 'password', password_confirmation: 'password' }
25
+ end
26
+
27
+ assert_not_nil assigns(:user)
28
+ assert_equal 'First Name', assigns(:user).first_name
29
+ assert_equal 'Last Name', assigns(:user).last_name
30
+ assert_equal 'pending', assigns(:user).status
31
+ assert_equal 'new_registration@example.com', assigns(:user).email
32
+
33
+ assert_redirected_to new_user_session_path
34
+ end
35
+
36
+ # test "a new user should be able to sign up via JSON" do
37
+ # assert_difference('User.count') do
38
+ # post :create, user: { first_name: 'First Name', last_name: 'Last Name', email: 'new_user_json@example.com', password: 'password', password_confirmation: 'password' }, format: 'json'
39
+ # end
40
+
41
+ # assert_not_nil assigns(:user)
42
+ # assert_equal 'First Name', assigns(:user).first_name
43
+ # assert_equal 'Last Name', assigns(:user).last_name
44
+ # assert_equal 'pending', assigns(:user).status
45
+ # assert_equal 'new_user_json@example.com', assigns(:user).email
46
+
47
+ # user = JSON.parse(@response.body)
48
+ # assert_equal assigns(:user).id, user['id']
49
+ # assert_equal assigns(:user).email, user['email']
50
+ # assert_equal assigns(:user).first_name, user['first_name']
51
+ # assert_equal assigns(:user).last_name, user['last_name']
52
+ # assert_equal assigns(:user).authentication_token, user['authentication_token']
53
+
54
+ # assert_response :success
55
+ # end
56
+
9
57
  # test "an admin should be able to create new user" do
58
+ # login(users(:admin))
10
59
  # assert_difference('User.count') do
11
- # post :create, user: { first_name: 'First Name', last_name: 'Last Name', status: 'active', email: 'new_registration@example.com',
12
- # steering_committee: true, steering_committee_secretary: false, pp_committee: false, pp_committee_secretary: false, system_admin: false }
60
+ # post :create, user: { first_name: 'First Name', last_name: 'Last Name', status: 'active', email: 'new_registration@example.com', system_admin: false }
13
61
  # end
14
- #
62
+
63
+ # assert_not_nil assigns(:user)
64
+ # assert_equal 'First Name', assigns(:user).first_name
65
+ # assert_equal 'Last Name', assigns(:user).last_name
66
+ # assert_equal 'active', assigns(:user).status
67
+ # assert_equal 'new_registration@example.com', assigns(:user).email
68
+
15
69
  # assert_redirected_to user_path(assigns(:user))
16
70
  # end
17
71
  end
@@ -0,0 +1,75 @@
1
+ # Use to configure basic appearance of template
2
+ Contour.setup do |config|
3
+
4
+ # Enter your application name here. The name will be displayed in the title of all pages, ex: AppName - PageTitle
5
+ # config.application_name = 'Application Name'
6
+
7
+ # If you want to style your name using html you can do so here, ex: <b>App</b>Name
8
+ # config.application_name_html = ''
9
+
10
+ # Enter your application version here. Do not include a trailing backslash. Recommend using a predefined constant
11
+ # config.application_version = ''
12
+
13
+ # Enter your application header background image here.
14
+ # config.header_background_image = 'rails.png'
15
+
16
+ # Enter your application header title image here.
17
+ # config.header_title_image = ''
18
+
19
+ # Enter the items you wish to see in the menu
20
+ # config.menu_items =
21
+ # [
22
+ # {
23
+ # name: 'Login', display: 'not_signed_in', path: 'new_user_session_path', position: 'right', condition: 'true',
24
+ # links: [{ name: 'Sign Up', path: 'new_user_registration_path' },
25
+ # { divider: true },
26
+ # { authentications: true }]
27
+ # },
28
+ # {
29
+ # name: 'current_user.email', eval: true, display: 'signed_in', position: 'right', condition: 'true',
30
+ # links: [{ name: 'Authentications', path: 'authentications_path', condition: 'not PROVIDERS.blank?' },
31
+ # { divider: true },
32
+ # { name: 'Logout', path: 'destroy_user_session_path' }]
33
+ # },
34
+ # {
35
+ # name: 'Home', display: 'always', path: 'root_path', position: 'left', condition: 'true', image: '', image_options: {},
36
+ # links: []
37
+ # }
38
+ # ]
39
+
40
+ # Enter search bar information if you would like one [default none]:
41
+ # config.search_bar = {
42
+ # display: 'always',
43
+ # id: 'global-search',
44
+ # path: 'search_path',
45
+ # placeholder: 'Search',
46
+ # position: 'left'
47
+ # }
48
+
49
+ # Enter an address of a valid RSS Feed if you would like to see news on the sign in page.
50
+ # config.news_feed = ''
51
+
52
+ # Enter the max number of items you want to see in the news feed.
53
+ # config.news_feed_items = 5
54
+
55
+ # The following three parameters can be set as strings, which will rotate through the colors on a daily basis, selecting an index using (YearDay % ArraySize)
56
+
57
+ # A string or array of strings that represent a CSS color code for generic link color
58
+ # config.link_color = nil
59
+
60
+ # A string or array of strings that represent a CSS color code for the body background color
61
+ # config.body_background_color = nil
62
+
63
+ # A string or array of strings that represent an image url for the body background image
64
+ # config.body_background_image = nil
65
+
66
+ # A hash where the key is a string in "month-day" format where values are a hash of the link_color, body_background_color and/or body_background_image
67
+ # An example might be (April 1st), { "4-1" => { body_background_image: 'aprilfools.jpg' } }
68
+ # Note the lack of leading zeros!
69
+ # Special days take precendence over the rotating options given above
70
+ # config.month_day = {}
71
+
72
+ # An array of hashes that specify additional fields to add to the sign up form
73
+ # An example might be [ { attribute: 'first_name', type: 'text_field' }, { attribute: 'last_name', type: 'text_field' } ]
74
+ config.sign_up_fields = [ { attribute: 'first_name', type: 'text_field' }, { attribute: 'last_name', type: 'text_field' } ]
75
+ end
Binary file
@@ -57893,3 +57893,2051 @@ UserTest: test_should_get_reverse_name
57893
57893
   (0.1ms) begin transaction
57894
57894
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57895
57895
   (0.1ms) rollback transaction
57896
+ -------------------------------------------------
57897
+ AuthenticationTest: test_should_get_provider_name
57898
+ -------------------------------------------------
57899
+  (4.7ms) begin transaction
57900
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
57901
+ 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-03-20 14:53:22', '2013-03-20 14:53:22', 949717663, 201799169)
57902
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 14:53:22', '2013-03-20 14:53:22', 876923740, 201799169)
57903
+ 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-03-20 14:53:22', '2013-03-20 14:53:22', 864673665, 201799169)
57904
+ Fixture Delete (0.1ms) DELETE FROM "users"
57905
+ 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-03-20 14:53:22', '2013-03-20 14:53:22', 201799169)
57906
+ 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-03-20 14:53:22', '2013-03-20 14:53:22', 999914115)
57907
+ 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-03-20 14:53:22', '2013-03-20 14:53:22', 725306934)
57908
+ 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-03-20 14:53:22', '2013-03-20 14:53:22', 349534908)
57909
+  (2.0ms) commit transaction
57910
+  (0.0ms) begin transaction
57911
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
57912
+  (0.1ms) rollback transaction
57913
+ --------------------------------------------------------------------------------
57914
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
57915
+ --------------------------------------------------------------------------------
57916
+  (0.1ms) begin transaction
57917
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
57918
+  (0.0ms) rollback transaction
57919
+ -------------------------------------------------------------------------
57920
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
57921
+ -------------------------------------------------------------------------
57922
+  (0.1ms) begin transaction
57923
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57924
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
57925
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
57926
+ Processing by Contour::AuthenticationsController#create as HTML
57927
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-20 14:53:22 UTC", "updated_at"=>"2013-03-20 14:53:22 UTC"}}
57928
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
57929
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
57930
+ Logged in user found, creating associated authentication.
57931
+  (0.1ms) SAVEPOINT active_record_1
57932
+ SQL (0.6ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 14:53:23 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Wed, 20 Mar 2013 14:53:23 UTC +00:00], ["user_id", 201799169]]
57933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57934
+ Redirected to http://test.host/authentications
57935
+ Completed 302 Found in 90ms (ActiveRecord: 1.1ms)
57936
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
57937
+  (1.0ms) rollback transaction
57938
+ --------------------------------------------------------------------------
57939
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
57940
+ --------------------------------------------------------------------------
57941
+  (0.1ms) begin transaction
57942
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57943
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
57944
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
57945
+ Processing by Contour::AuthenticationsController#destroy as HTML
57946
+ Parameters: {"id"=>"949717663"}
57947
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
57948
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
57949
+  (0.1ms) SAVEPOINT active_record_1
57950
+ SQL (11.8ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
57951
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57952
+ Redirected to http://test.host/authentications
57953
+ Completed 302 Found in 16ms (ActiveRecord: 12.3ms)
57954
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
57955
+  (0.9ms) rollback transaction
57956
+ -------------------------------------------------------------
57957
+ Contour::AuthenticationsControllerTest: test_should_get_index
57958
+ -------------------------------------------------------------
57959
+  (0.1ms) begin transaction
57960
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57961
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
57962
+ Processing by Contour::AuthenticationsController#index as HTML
57963
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
57964
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
57965
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
57966
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (10.1ms)
57967
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.3ms)
57968
+ Completed 200 OK in 215ms (Views: 213.1ms | ActiveRecord: 0.4ms)
57969
+  (0.1ms) rollback transaction
57970
+ -----------------------------------------------------------------------------
57971
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
57972
+ -----------------------------------------------------------------------------
57973
+  (0.1ms) begin transaction
57974
+ Processing by Contour::PasswordsController#create as HTML
57975
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
57976
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57977
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'TYWqJDmb3pyTtoyS7B6D' LIMIT 1
57978
+  (0.0ms) SAVEPOINT active_record_1
57979
+ SQL (0.5ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "TYWqJDmb3pyTtoyS7B6D"], ["reset_password_sent_at", Wed, 20 Mar 2013 14:53:23 UTC +00:00], ["updated_at", Wed, 20 Mar 2013 14:53:23 UTC +00:00]]
57980
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57981
+
57982
+ Sent mail to valid@example.com (11.7ms)
57983
+ Date: Wed, 20 Mar 2013 10:53:23 -0400
57984
+ From: please-change-me-at-config-initializers-devise@example.com
57985
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
57986
+ To: valid@example.com
57987
+ Message-ID: <5149cd635de93_64383fc0e446067448a4@edge.partners.org.mail>
57988
+ Subject: Reset password instructions
57989
+ Mime-Version: 1.0
57990
+ Content-Type: text/html;
57991
+ charset=UTF-8
57992
+ Content-Transfer-Encoding: 7bit
57993
+
57994
+ <p>Hello valid@example.com!</p>
57995
+
57996
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
57997
+
57998
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=TYWqJDmb3pyTtoyS7B6D">Change my password</a></p>
57999
+
58000
+ <p>If you didn't request this, please ignore this email.</p>
58001
+ <p>Your password won't change until you access the link above and create a new one.</p>
58002
+
58003
+ Redirected to http://test.host/users/login
58004
+ Completed 302 Found in 110ms (ActiveRecord: 0.0ms)
58005
+  (0.6ms) rollback transaction
58006
+ -----------------------------------------------------------------------------
58007
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
58008
+ -----------------------------------------------------------------------------
58009
+  (0.1ms) begin transaction
58010
+ Processing by Contour::PasswordsController#new as HTML
58011
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.4ms)
58012
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (7.3ms)
58013
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.8ms)
58014
+ Completed 200 OK in 48ms (Views: 47.7ms | ActiveRecord: 0.0ms)
58015
+  (0.1ms) rollback transaction
58016
+ --------------------------------------------------------------------------------------------
58017
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58018
+ --------------------------------------------------------------------------------------------
58019
+  (0.1ms) begin transaction
58020
+  (0.1ms) rollback transaction
58021
+ ----------------------------------------------------------------------
58022
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
58023
+ ----------------------------------------------------------------------
58024
+  (0.1ms) begin transaction
58025
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58026
+ Processing by Contour::SessionsController#create as JSON
58027
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
58028
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
58029
+  (0.1ms) SAVEPOINT active_record_1
58030
+ 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", Wed, 20 Mar 2013 14:53:23 UTC +00:00], ["current_sign_in_at", Wed, 20 Mar 2013 14:53:23 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Wed, 20 Mar 2013 14:53:23 UTC +00:00]]
58031
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58032
+ Completed 200 OK in 77ms (Views: 0.3ms | ActiveRecord: 0.7ms)
58033
+  (1.0ms) rollback transaction
58034
+ ----------------------------------------------------------------------------------------------------------
58035
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
58036
+ ----------------------------------------------------------------------------------------------------------
58037
+  (0.1ms) begin transaction
58038
+ Processing by Contour::SessionsController#create as HTML
58039
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
58040
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
58041
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
58042
+ Redirected to http://test.host/auth/google_apps
58043
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
58044
+  (0.1ms) rollback transaction
58045
+ ----------------------------------------------------------------------------------------------
58046
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
58047
+ ----------------------------------------------------------------------------------------------
58048
+  (0.0ms) begin transaction
58049
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58050
+ Processing by Contour::SessionsController#create as HTML
58051
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
58052
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
58053
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
58054
+ Redirected to http://test.host/auth/ldap
58055
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
58056
+  (0.1ms) rollback transaction
58057
+ --------------------------------------------------------------------------
58058
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
58059
+ --------------------------------------------------------------------------
58060
+  (0.0ms) begin transaction
58061
+ Processing by Contour::SessionsController#create as HTML
58062
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
58063
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
58064
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
58065
+ Completed 401 Unauthorized in 3ms
58066
+ Processing by Contour::SessionsController#new as HTML
58067
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
58068
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.6ms)
58069
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.9ms)
58070
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
58071
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.5ms)
58072
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.2ms)
58073
+ Completed 200 OK in 21ms (Views: 20.4ms | ActiveRecord: 0.0ms)
58074
+  (0.1ms) rollback transaction
58075
+ -----------------------------------------------------
58076
+ ContourHelperTest: test_should_show_sort_field_helper
58077
+ -----------------------------------------------------
58078
+  (0.1ms) begin transaction
58079
+  (0.1ms) rollback transaction
58080
+ ---------------------------------------------------------------------
58081
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
58082
+ ---------------------------------------------------------------------
58083
+  (0.1ms) begin transaction
58084
+  (0.1ms) rollback transaction
58085
+ -----------------------
58086
+ ContourTest: test_truth
58087
+ -----------------------
58088
+  (0.1ms) begin transaction
58089
+  (0.1ms) rollback transaction
58090
+ --------------------------------------------------------------------
58091
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
58092
+ --------------------------------------------------------------------
58093
+  (0.1ms) begin transaction
58094
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58095
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
58096
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
58097
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 10:53:23 -0400
58098
+ Processing by WelcomeController#logged_in_page as HTML
58099
+ Completed 401 Unauthorized in 31ms
58100
+  (0.1ms) SAVEPOINT active_record_1
58101
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
58102
+ Binary data inserted for `string` type on column `encrypted_password`
58103
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 14:53:23 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$EZKviVNecJvlVAhfL1GWJ.cn8gRCh1vXAY8aBibCmbNKsSFZeDdFa"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Wed, 20 Mar 2013 14:53:23 UTC +00:00]]
58104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58105
+  (0.1ms) SAVEPOINT active_record_1
58106
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
58107
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
58108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58109
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
58110
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
58111
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-20 10:53:23 -0400
58112
+ Processing by Contour::SessionsController#create as HTML
58113
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
58114
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
58115
+  (0.1ms) SAVEPOINT active_record_1
58116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
58117
+ Completed 401 Unauthorized in 6ms
58118
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-20 10:53:23 -0400
58119
+ Processing by Contour::SessionsController#new as HTML
58120
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
58121
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.3ms)
58122
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
58123
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
58124
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.7ms)
58125
+ Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.0ms)
58126
+  (0.8ms) rollback transaction
58127
+ --------------------------------------------------------
58128
+ NavigationTest: test_friendly_url_forwarding_after_login
58129
+ --------------------------------------------------------
58130
+  (0.1ms) begin transaction
58131
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58132
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
58133
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
58134
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 10:53:23 -0400
58135
+ Processing by WelcomeController#logged_in_page as HTML
58136
+ Completed 401 Unauthorized in 1ms
58137
+  (0.1ms) SAVEPOINT active_record_1
58138
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
58139
+ Binary data inserted for `string` type on column `encrypted_password`
58140
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 14:53:23 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$MZufaafclKZ25GGR5NdDzerPE4QN6Z/f6REUY4.8mG5gZjSX8UQmS"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Wed, 20 Mar 2013 14:53:23 UTC +00:00]]
58141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58142
+  (0.0ms) SAVEPOINT active_record_1
58143
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
58144
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
58145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
58146
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
58147
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
58148
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-20 10:53:23 -0400
58149
+ Processing by Contour::SessionsController#create as HTML
58150
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
58151
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
58152
+  (0.1ms) SAVEPOINT active_record_1
58153
+ 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", Wed, 20 Mar 2013 14:53:23 UTC +00:00], ["current_sign_in_at", Wed, 20 Mar 2013 14:53:23 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 20 Mar 2013 14:53:23 UTC +00:00]]
58154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
58155
+ Redirected to http://www.example.com/logged_in_page
58156
+ Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
58157
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 10:53:23 -0400
58158
+ Processing by WelcomeController#logged_in_page as HTML
58159
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
58160
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
58161
+  (0.6ms) rollback transaction
58162
+ --------------------------------------------------------------------
58163
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
58164
+ --------------------------------------------------------------------
58165
+  (0.1ms) begin transaction
58166
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58167
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
58168
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
58169
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 10:53:24 -0400
58170
+ Processing by WelcomeController#logged_in_page as HTML
58171
+ Completed 401 Unauthorized in 1ms
58172
+  (0.1ms) SAVEPOINT active_record_1
58173
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
58174
+ Binary data inserted for `string` type on column `encrypted_password`
58175
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 14:53:24 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$jM3Z6lYkkzAynl7psdW9JuPwdXcJ7H9HihREufe6lZIG7smGIUx4m"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Wed, 20 Mar 2013 14:53:24 UTC +00:00]]
58176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58177
+  (0.0ms) SAVEPOINT active_record_1
58178
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
58179
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
58180
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58181
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
58182
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
58183
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-20 10:53:24 -0400
58184
+ Processing by Contour::SessionsController#create as HTML
58185
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
58186
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
58187
+  (0.1ms) SAVEPOINT active_record_1
58188
+  (0.0ms) RELEASE SAVEPOINT active_record_1
58189
+ Completed 401 Unauthorized in 5ms
58190
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-20 10:53:24 -0400
58191
+ Processing by Contour::SessionsController#new as HTML
58192
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
58193
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.3ms)
58194
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
58195
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.5ms)
58196
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.0ms)
58197
+ Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.0ms)
58198
+  (0.9ms) rollback transaction
58199
+ -------------------------------------------------------------
58200
+ NavigationTest: test_root_navigation_redirected_to_login_page
58201
+ -------------------------------------------------------------
58202
+  (0.1ms) begin transaction
58203
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58204
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
58205
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
58206
+ Started GET "/" for 127.0.0.1 at 2013-03-20 10:53:24 -0400
58207
+ Processing by WelcomeController#index as HTML
58208
+ Completed 401 Unauthorized in 1ms
58209
+  (0.1ms) rollback transaction
58210
+ -------------------------------------------------------------------------
58211
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
58212
+ -------------------------------------------------------------------------
58213
+  (0.1ms) begin transaction
58214
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58215
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
58216
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
58217
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-20 10:53:24 -0400
58218
+ Processing by WelcomeController#logged_in_page as JSON
58219
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
58220
+  (0.1ms) SAVEPOINT active_record_1
58221
+ 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", Wed, 20 Mar 2013 14:53:24 UTC +00:00], ["current_sign_in_at", Wed, 20 Mar 2013 14:53:24 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 20 Mar 2013 14:53:24 UTC +00:00]]
58222
+  (0.0ms) RELEASE SAVEPOINT active_record_1
58223
+ Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 0.7ms)
58224
+  (0.9ms) rollback transaction
58225
+ ------------------------------------------------------------------------------------------------
58226
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
58227
+ ------------------------------------------------------------------------------------------------
58228
+  (0.1ms) begin transaction
58229
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58230
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
58231
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
58232
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-20 10:53:24 -0400
58233
+ Processing by WelcomeController#logged_in_page as JSON
58234
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
58235
+ Completed 401 Unauthorized in 75ms
58236
+  (0.1ms) rollback transaction
58237
+ ------------------------------------
58238
+ UserTest: test_should_apply_omniauth
58239
+ ------------------------------------
58240
+  (0.1ms) begin transaction
58241
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58242
+  (0.1ms) rollback transaction
58243
+ --------------------------------------
58244
+ UserTest: test_should_get_reverse_name
58245
+ --------------------------------------
58246
+  (0.1ms) begin transaction
58247
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58248
+  (0.0ms) rollback transaction
58249
+ --------------------------------------------------------------------------------------------
58250
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58251
+ --------------------------------------------------------------------------------------------
58252
+  (0.4ms) begin transaction
58253
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
58254
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 14:54:14', '2013-03-20 14:54:14', 949717663, 201799169)
58255
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 14:54:14', '2013-03-20 14:54:14', 876923740, 201799169)
58256
+ 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-03-20 14:54:14', '2013-03-20 14:54:14', 864673665, 201799169)
58257
+ Fixture Delete (0.1ms) DELETE FROM "users"
58258
+ 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-03-20 14:54:14', '2013-03-20 14:54:14', 201799169)
58259
+ 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-03-20 14:54:14', '2013-03-20 14:54:14', 999914115)
58260
+ 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-03-20 14:54:14', '2013-03-20 14:54:14', 725306934)
58261
+ 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-03-20 14:54:14', '2013-03-20 14:54:14', 349534908)
58262
+  (2.8ms) commit transaction
58263
+  (0.0ms) begin transaction
58264
+  (0.1ms) SELECT COUNT(*) FROM "users"
58265
+ Processing by Contour::RegistrationsController#create as HTML
58266
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com"}}
58267
+ [Devise] Could not find devise mapping for path "/users?user%5Bemail%5D=new_registration%40example.com&user%5Bfirst_name%5D=First+Name&user%5Blast_name%5D=Last+Name&user%5Bstatus%5D=active".
58268
+ This may happen for two reasons:
58269
+
58270
+ 1) You forgot to wrap your route inside the scope block. For example:
58271
+
58272
+ devise_scope :user do
58273
+ get "/some/route" => "some_devise_controller"
58274
+ end
58275
+
58276
+ 2) You are testing a Devise controller bypassing the router.
58277
+ If so, you can explicitly tell Devise which mapping to use:
58278
+
58279
+ @request.env["devise.mapping"] = Devise.mappings[:user]
58280
+
58281
+
58282
+ Completed 404 Not Found in 0ms
58283
+  (0.1ms) rollback transaction
58284
+ --------------------------------------------------------------------------------------------
58285
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58286
+ --------------------------------------------------------------------------------------------
58287
+  (0.4ms) begin transaction
58288
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58289
+ 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-03-20 14:54:26', '2013-03-20 14:54:26', 949717663, 201799169)
58290
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 14:54:26', '2013-03-20 14:54:26', 876923740, 201799169)
58291
+ 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-03-20 14:54:26', '2013-03-20 14:54:26', 864673665, 201799169)
58292
+ Fixture Delete (0.1ms) DELETE FROM "users"
58293
+ 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-03-20 14:54:26', '2013-03-20 14:54:26', 201799169)
58294
+ 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-03-20 14:54:26', '2013-03-20 14:54:26', 999914115)
58295
+ 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-03-20 14:54:26', '2013-03-20 14:54:26', 725306934)
58296
+ 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-03-20 14:54:26', '2013-03-20 14:54:26', 349534908)
58297
+  (3.3ms) commit transaction
58298
+  (0.1ms) begin transaction
58299
+  (0.1ms) SELECT COUNT(*) FROM "users"
58300
+ Processing by Contour::RegistrationsController#create as HTML
58301
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com"}}
58302
+ Completed 500 Internal Server Error in 9ms
58303
+  (0.1ms) rollback transaction
58304
+ -------------------------------------------------------------------------------
58305
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
58306
+ -------------------------------------------------------------------------------
58307
+  (0.4ms) begin transaction
58308
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58309
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:02:33', '2013-03-20 15:02:33', 949717663, 201799169)
58310
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:02:33', '2013-03-20 15:02:33', 876923740, 201799169)
58311
+ 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-03-20 15:02:33', '2013-03-20 15:02:33', 864673665, 201799169)
58312
+ Fixture Delete (0.1ms) DELETE FROM "users"
58313
+ 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-03-20 15:02:33', '2013-03-20 15:02:33', 201799169)
58314
+ 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-03-20 15:02:33', '2013-03-20 15:02:33', 999914115)
58315
+ 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-03-20 15:02:33', '2013-03-20 15:02:33', 725306934)
58316
+ 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-03-20 15:02:33', '2013-03-20 15:02:33', 349534908)
58317
+  (1.9ms) commit transaction
58318
+  (0.1ms) begin transaction
58319
+  (0.1ms) SELECT COUNT(*) FROM "users"
58320
+ Processing by Contour::RegistrationsController#create as HTML
58321
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58322
+ Completed 500 Internal Server Error in 12ms
58323
+  (0.1ms) rollback transaction
58324
+ ----------------------------------------------------------------------------------------
58325
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up_via_JSON
58326
+ ----------------------------------------------------------------------------------------
58327
+  (0.1ms) begin transaction
58328
+  (0.1ms) SELECT COUNT(*) FROM "users"
58329
+ Processing by Contour::RegistrationsController#create as JSON
58330
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user_json@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58331
+ Completed 500 Internal Server Error in 1ms
58332
+  (0.1ms) rollback transaction
58333
+ --------------------------------------------------------------------------------------------
58334
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58335
+ --------------------------------------------------------------------------------------------
58336
+  (0.0ms) begin transaction
58337
+  (0.1ms) SELECT COUNT(*) FROM "users"
58338
+ Processing by Contour::RegistrationsController#create as HTML
58339
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58340
+ Completed 500 Internal Server Error in 1ms
58341
+  (0.1ms) rollback transaction
58342
+ -------------------------------------------------------------------------------
58343
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
58344
+ -------------------------------------------------------------------------------
58345
+  (0.4ms) begin transaction
58346
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58347
+ 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-03-20 15:09:52', '2013-03-20 15:09:52', 949717663, 201799169)
58348
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:09:52', '2013-03-20 15:09:52', 876923740, 201799169)
58349
+ 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-03-20 15:09:52', '2013-03-20 15:09:52', 864673665, 201799169)
58350
+ Fixture Delete (0.1ms) DELETE FROM "users"
58351
+ 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-03-20 15:09:52', '2013-03-20 15:09:52', 201799169)
58352
+ 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-03-20 15:09:52', '2013-03-20 15:09:52', 999914115)
58353
+ 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-03-20 15:09:52', '2013-03-20 15:09:52', 725306934)
58354
+ 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-03-20 15:09:52', '2013-03-20 15:09:52', 349534908)
58355
+  (2.5ms) commit transaction
58356
+  (0.0ms) begin transaction
58357
+  (0.1ms) SELECT COUNT(*) FROM "users"
58358
+ Processing by Contour::RegistrationsController#create as HTML
58359
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58360
+ Completed 500 Internal Server Error in 9ms
58361
+  (0.1ms) rollback transaction
58362
+ ----------------------------------------------------------------------------------------
58363
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up_via_JSON
58364
+ ----------------------------------------------------------------------------------------
58365
+  (0.1ms) begin transaction
58366
+  (0.1ms) SELECT COUNT(*) FROM "users"
58367
+ Processing by Contour::RegistrationsController#create as JSON
58368
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user_json@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58369
+ Completed 500 Internal Server Error in 1ms
58370
+  (0.1ms) rollback transaction
58371
+ --------------------------------------------------------------------------------------------
58372
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58373
+ --------------------------------------------------------------------------------------------
58374
+  (0.0ms) begin transaction
58375
+  (0.1ms) SELECT COUNT(*) FROM "users"
58376
+ Processing by Contour::RegistrationsController#create as HTML
58377
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58378
+ Completed 500 Internal Server Error in 1ms
58379
+  (0.1ms) rollback transaction
58380
+ -------------------------------------------------------------------------------
58381
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
58382
+ -------------------------------------------------------------------------------
58383
+  (0.5ms) begin transaction
58384
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58385
+ 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-03-20 15:21:47', '2013-03-20 15:21:47', 949717663, 201799169)
58386
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:21:47', '2013-03-20 15:21:47', 876923740, 201799169)
58387
+ 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-03-20 15:21:47', '2013-03-20 15:21:47', 864673665, 201799169)
58388
+ Fixture Delete (0.1ms) DELETE FROM "users"
58389
+ 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-03-20 15:21:47', '2013-03-20 15:21:47', 201799169)
58390
+ 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-03-20 15:21:47', '2013-03-20 15:21:47', 999914115)
58391
+ 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-03-20 15:21:47', '2013-03-20 15:21:47', 725306934)
58392
+ 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-03-20 15:21:47', '2013-03-20 15:21:47', 349534908)
58393
+  (2.1ms) commit transaction
58394
+  (0.1ms) begin transaction
58395
+  (0.1ms) SELECT COUNT(*) FROM "users"
58396
+ Processing by Contour::RegistrationsController#create as HTML
58397
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58398
+ Unpermitted parameters: first_name, last_name
58399
+  (0.1ms) SAVEPOINT active_record_1
58400
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
58401
+ Binary data inserted for `string` type on column `encrypted_password`
58402
+ SQL (18.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:21:48 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$/PHemVgXBfdJePO3WA4aCuYRAAtH6MAa4quGq7Jrb2BpgnOfKQgr."], ["updated_at", Wed, 20 Mar 2013 15:21:48 UTC +00:00]]
58403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58404
+ Redirected to http://test.host/users/login
58405
+ Completed 302 Found in 346ms (ActiveRecord: 0.0ms)
58406
+  (0.1ms) SELECT COUNT(*) FROM "users"
58407
+  (0.9ms) rollback transaction
58408
+ ----------------------------------------------------------------------------------------
58409
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up_via_JSON
58410
+ ----------------------------------------------------------------------------------------
58411
+  (0.1ms) begin transaction
58412
+  (0.2ms) SELECT COUNT(*) FROM "users"
58413
+ Processing by Contour::RegistrationsController#create as JSON
58414
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user_json@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58415
+ Unpermitted parameters: first_name, last_name
58416
+  (0.1ms) SAVEPOINT active_record_1
58417
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user_json@example.com' LIMIT 1
58418
+ Binary data inserted for `string` type on column `encrypted_password`
58419
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:21:48 UTC +00:00], ["email", "new_user_json@example.com"], ["encrypted_password", "$2a$04$QHXA764VGb0VAwBiD/dqiOcC5EHbBB9c1cCYQBQNoZo3UtaATQjOa"], ["updated_at", Wed, 20 Mar 2013 15:21:48 UTC +00:00]]
58420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58421
+ Completed 406 Not Acceptable in 10ms
58422
+  (0.8ms) rollback transaction
58423
+ --------------------------------------------------------------------------------------------
58424
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58425
+ --------------------------------------------------------------------------------------------
58426
+  (0.1ms) begin transaction
58427
+  (0.1ms) SELECT COUNT(*) FROM "users"
58428
+ Processing by Contour::RegistrationsController#create as HTML
58429
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58430
+ Unpermitted parameters: first_name, last_name, status
58431
+  (0.1ms) SAVEPOINT active_record_1
58432
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
58433
+ Binary data inserted for `string` type on column `encrypted_password`
58434
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:21:48 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$omrk1IIJH5QRKAKssx8zqe6vBpE38i1kcoE.XAeVavuJUtOvgI/Mu"], ["updated_at", Wed, 20 Mar 2013 15:21:48 UTC +00:00]]
58435
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58436
+ Redirected to http://test.host/users/login
58437
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
58438
+  (0.2ms) SELECT COUNT(*) FROM "users"
58439
+  (0.5ms) rollback transaction
58440
+ -------------------------------------------------------------------------------
58441
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
58442
+ -------------------------------------------------------------------------------
58443
+  (0.4ms) begin transaction
58444
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58445
+ 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-03-20 15:22:24', '2013-03-20 15:22:24', 949717663, 201799169)
58446
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:22:24', '2013-03-20 15:22:24', 876923740, 201799169)
58447
+ 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-03-20 15:22:24', '2013-03-20 15:22:24', 864673665, 201799169)
58448
+ Fixture Delete (0.1ms) DELETE FROM "users"
58449
+ 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-03-20 15:22:24', '2013-03-20 15:22:24', 201799169)
58450
+ 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-03-20 15:22:24', '2013-03-20 15:22:24', 999914115)
58451
+ 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-03-20 15:22:24', '2013-03-20 15:22:24', 725306934)
58452
+ 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-03-20 15:22:24', '2013-03-20 15:22:24', 349534908)
58453
+  (2.8ms) commit transaction
58454
+  (0.1ms) begin transaction
58455
+  (0.1ms) SELECT COUNT(*) FROM "users"
58456
+ Processing by Contour::RegistrationsController#create as HTML
58457
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58458
+ Unpermitted parameters: first_name, last_name
58459
+  (0.1ms) SAVEPOINT active_record_1
58460
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
58461
+ Binary data inserted for `string` type on column `encrypted_password`
58462
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:22:25 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$K14rmDjaEQdyjtNtawNsQOZE1MA.lPCo9MytKJmGDeUafrQ71hjai"], ["updated_at", Wed, 20 Mar 2013 15:22:25 UTC +00:00]]
58463
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58464
+ Redirected to http://test.host/users/login
58465
+ Completed 302 Found in 119ms (ActiveRecord: 0.0ms)
58466
+  (0.1ms) SELECT COUNT(*) FROM "users"
58467
+  (1.0ms) rollback transaction
58468
+ --------------------------------------------------------------------------------------------
58469
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58470
+ --------------------------------------------------------------------------------------------
58471
+  (0.1ms) begin transaction
58472
+  (0.2ms) SELECT COUNT(*) FROM "users"
58473
+ Processing by Contour::RegistrationsController#create as HTML
58474
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58475
+ Unpermitted parameters: first_name, last_name, status
58476
+  (0.1ms) SAVEPOINT active_record_1
58477
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
58478
+ Binary data inserted for `string` type on column `encrypted_password`
58479
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:22:25 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$VHs5jGDhwn2bFJoN9dYfser2UtoQUhqLb9kBoyQjpN0zIaaHRw66K"], ["updated_at", Wed, 20 Mar 2013 15:22:25 UTC +00:00]]
58480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58481
+ Redirected to http://test.host/users/login
58482
+ Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
58483
+  (0.1ms) SELECT COUNT(*) FROM "users"
58484
+  (0.7ms) rollback transaction
58485
+ -------------------------------------------------------------------------------
58486
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
58487
+ -------------------------------------------------------------------------------
58488
+  (0.4ms) begin transaction
58489
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58490
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:22:46', '2013-03-20 15:22:46', 949717663, 201799169)
58491
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:22:46', '2013-03-20 15:22:46', 876923740, 201799169)
58492
+ 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-03-20 15:22:46', '2013-03-20 15:22:46', 864673665, 201799169)
58493
+ Fixture Delete (0.1ms) DELETE FROM "users"
58494
+ 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-03-20 15:22:46', '2013-03-20 15:22:46', 201799169)
58495
+ 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-03-20 15:22:46', '2013-03-20 15:22:46', 999914115)
58496
+ 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-03-20 15:22:46', '2013-03-20 15:22:46', 725306934)
58497
+ 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-03-20 15:22:46', '2013-03-20 15:22:46', 349534908)
58498
+  (2.8ms) commit transaction
58499
+  (0.0ms) begin transaction
58500
+  (0.1ms) SELECT COUNT(*) FROM "users"
58501
+ Processing by Contour::RegistrationsController#create as HTML
58502
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58503
+ Unpermitted parameters: first_name, last_name
58504
+ Unpermitted parameters: first_name, last_name
58505
+  (0.1ms) SAVEPOINT active_record_1
58506
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
58507
+ Binary data inserted for `string` type on column `encrypted_password`
58508
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:22:46 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$U1gsxFFQ1z7CuqmOmCC5he0p88SQA7vbDJ9GGlgziINsjRz9NFCkm"], ["updated_at", Wed, 20 Mar 2013 15:22:46 UTC +00:00]]
58509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58510
+ Redirected to http://test.host/users/login
58511
+ Completed 302 Found in 126ms (ActiveRecord: 0.0ms)
58512
+  (0.1ms) SELECT COUNT(*) FROM "users"
58513
+  (10.2ms) rollback transaction
58514
+ --------------------------------------------------------------------------------------------
58515
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58516
+ --------------------------------------------------------------------------------------------
58517
+  (0.1ms) begin transaction
58518
+  (0.2ms) SELECT COUNT(*) FROM "users"
58519
+ Processing by Contour::RegistrationsController#create as HTML
58520
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58521
+ Unpermitted parameters: first_name, last_name, status
58522
+ Unpermitted parameters: first_name, last_name, status
58523
+  (0.1ms) SAVEPOINT active_record_1
58524
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
58525
+ Binary data inserted for `string` type on column `encrypted_password`
58526
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:22:47 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$IzoPl38ml5c7fTmO3MQ/VeOYQsWk019Vc2HBBhdcJKpZHLFWvbVwW"], ["updated_at", Wed, 20 Mar 2013 15:22:47 UTC +00:00]]
58527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58528
+ Redirected to http://test.host/users/login
58529
+ Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
58530
+  (0.1ms) SELECT COUNT(*) FROM "users"
58531
+  (0.5ms) rollback transaction
58532
+ -------------------------------------------------------------------------------
58533
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
58534
+ -------------------------------------------------------------------------------
58535
+  (0.4ms) begin transaction
58536
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58537
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:23:59', '2013-03-20 15:23:59', 949717663, 201799169)
58538
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:23:59', '2013-03-20 15:23:59', 876923740, 201799169)
58539
+ 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-03-20 15:23:59', '2013-03-20 15:23:59', 864673665, 201799169)
58540
+ Fixture Delete (0.1ms) DELETE FROM "users"
58541
+ 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-03-20 15:23:59', '2013-03-20 15:23:59', 201799169)
58542
+ 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-03-20 15:23:59', '2013-03-20 15:23:59', 999914115)
58543
+ 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-03-20 15:23:59', '2013-03-20 15:23:59', 725306934)
58544
+ 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-03-20 15:23:59', '2013-03-20 15:23:59', 349534908)
58545
+  (3.1ms) commit transaction
58546
+  (0.0ms) begin transaction
58547
+  (0.1ms) SELECT COUNT(*) FROM "users"
58548
+ Processing by Contour::RegistrationsController#create as HTML
58549
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58550
+  (0.1ms) SAVEPOINT active_record_1
58551
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
58552
+ Binary data inserted for `string` type on column `encrypted_password`
58553
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:23:59 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$/u5dJaLAdaAOL.zjeebkU.UEXeoIKakdsVqLmGLo97mKi8LrJI3Qm"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:23:59 UTC +00:00]]
58554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58555
+ Redirected to http://test.host/users/login
58556
+ Completed 302 Found in 120ms (ActiveRecord: 0.0ms)
58557
+  (0.1ms) SELECT COUNT(*) FROM "users"
58558
+  (14.8ms) rollback transaction
58559
+ --------------------------------------------------------------------------------------------
58560
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58561
+ --------------------------------------------------------------------------------------------
58562
+  (0.1ms) begin transaction
58563
+  (0.1ms) SELECT COUNT(*) FROM "users"
58564
+ Processing by Contour::RegistrationsController#create as HTML
58565
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58566
+ Unpermitted parameters: status
58567
+ Unpermitted parameters: status
58568
+  (0.1ms) SAVEPOINT active_record_1
58569
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
58570
+ Binary data inserted for `string` type on column `encrypted_password`
58571
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:23:59 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$wNG9LXCBftCKVFkkfoMwHOdANh357SuGwvNtVGT39r44BB2lvCZLC"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:23:59 UTC +00:00]]
58572
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58573
+ Redirected to http://test.host/users/login
58574
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
58575
+  (0.1ms) SELECT COUNT(*) FROM "users"
58576
+  (0.7ms) rollback transaction
58577
+ -------------------------------------------------------------------------------
58578
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
58579
+ -------------------------------------------------------------------------------
58580
+  (0.4ms) begin transaction
58581
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58582
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:25:18', '2013-03-20 15:25:18', 949717663, 201799169)
58583
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:25:18', '2013-03-20 15:25:18', 876923740, 201799169)
58584
+ 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-03-20 15:25:18', '2013-03-20 15:25:18', 864673665, 201799169)
58585
+ Fixture Delete (0.1ms) DELETE FROM "users"
58586
+ 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-03-20 15:25:18', '2013-03-20 15:25:18', 201799169)
58587
+ 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-03-20 15:25:18', '2013-03-20 15:25:18', 999914115)
58588
+ 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-03-20 15:25:18', '2013-03-20 15:25:18', 725306934)
58589
+ 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-03-20 15:25:18', '2013-03-20 15:25:18', 349534908)
58590
+  (3.2ms) commit transaction
58591
+  (0.1ms) begin transaction
58592
+  (0.1ms) SELECT COUNT(*) FROM "users"
58593
+ Processing by Contour::RegistrationsController#create as HTML
58594
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58595
+  (0.1ms) SAVEPOINT active_record_1
58596
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
58597
+ Binary data inserted for `string` type on column `encrypted_password`
58598
+ SQL (1.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:25:18 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$UoJthl.Z9Jku.EH6/mQ8Se66njGjFVn8CwaIQUVepqiXVVxNMSjJO"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:25:18 UTC +00:00]]
58599
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58600
+ Redirected to http://test.host/users/login
58601
+ Completed 302 Found in 122ms (ActiveRecord: 0.0ms)
58602
+  (0.1ms) SELECT COUNT(*) FROM "users"
58603
+  (0.9ms) rollback transaction
58604
+ --------------------------------------------------------------------------------------------
58605
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58606
+ --------------------------------------------------------------------------------------------
58607
+  (0.1ms) begin transaction
58608
+  (0.1ms) SELECT COUNT(*) FROM "users"
58609
+ Processing by Contour::RegistrationsController#create as HTML
58610
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58611
+ Unpermitted parameters: status
58612
+ Unpermitted parameters: status
58613
+  (0.1ms) SAVEPOINT active_record_1
58614
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
58615
+ Binary data inserted for `string` type on column `encrypted_password`
58616
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:25:18 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$9NJasWZ8yEkKTE1YDuLSjuog7vrvopCo1i6NAWWUfMA7BfkODaAiS"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:25:18 UTC +00:00]]
58617
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58618
+ Redirected to http://test.host/users/login
58619
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
58620
+  (0.1ms) SELECT COUNT(*) FROM "users"
58621
+  (0.6ms) rollback transaction
58622
+ -------------------------------------------------------------------------------
58623
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
58624
+ -------------------------------------------------------------------------------
58625
+  (0.4ms) begin transaction
58626
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58627
+ 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-03-20 15:25:38', '2013-03-20 15:25:38', 949717663, 201799169)
58628
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:25:38', '2013-03-20 15:25:38', 876923740, 201799169)
58629
+ 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-03-20 15:25:38', '2013-03-20 15:25:38', 864673665, 201799169)
58630
+ Fixture Delete (0.1ms) DELETE FROM "users"
58631
+ 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-03-20 15:25:38', '2013-03-20 15:25:38', 201799169)
58632
+ 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-03-20 15:25:38', '2013-03-20 15:25:38', 999914115)
58633
+ 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-03-20 15:25:38', '2013-03-20 15:25:38', 725306934)
58634
+ 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-03-20 15:25:38', '2013-03-20 15:25:38', 349534908)
58635
+  (3.2ms) commit transaction
58636
+  (0.1ms) begin transaction
58637
+  (0.1ms) SELECT COUNT(*) FROM "users"
58638
+ Processing by Contour::RegistrationsController#create as HTML
58639
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58640
+  (0.1ms) SAVEPOINT active_record_1
58641
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
58642
+ Binary data inserted for `string` type on column `encrypted_password`
58643
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:25:38 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$zAqyHNhm6l6TfyfheDJ.UeeXfKXc/qdwfsIxA3.8VMGRIi8qO.xA."], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:25:38 UTC +00:00]]
58644
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58645
+ Redirected to http://test.host/users/login
58646
+ Completed 302 Found in 120ms (ActiveRecord: 0.0ms)
58647
+  (0.1ms) SELECT COUNT(*) FROM "users"
58648
+  (15.3ms) rollback transaction
58649
+ --------------------------------------------------------------------------------------------
58650
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58651
+ --------------------------------------------------------------------------------------------
58652
+  (0.1ms) begin transaction
58653
+  (0.2ms) SELECT COUNT(*) FROM "users"
58654
+ Processing by Contour::RegistrationsController#create as HTML
58655
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58656
+ Unpermitted parameters: status
58657
+ Unpermitted parameters: status
58658
+  (0.1ms) SAVEPOINT active_record_1
58659
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
58660
+ Binary data inserted for `string` type on column `encrypted_password`
58661
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:25:38 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$B.6fZIaZp4fz5XwdDhPcqeRFJ3eg1cPItcP.q.B5unxbGTHAqfYSS"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:25:38 UTC +00:00]]
58662
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58663
+ Redirected to http://test.host/users/login
58664
+ Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
58665
+  (0.1ms) SELECT COUNT(*) FROM "users"
58666
+  (0.6ms) rollback transaction
58667
+ -------------------------------------------------------------------------------
58668
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
58669
+ -------------------------------------------------------------------------------
58670
+  (0.4ms) begin transaction
58671
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58672
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:26:27', '2013-03-20 15:26:27', 949717663, 201799169)
58673
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:26:27', '2013-03-20 15:26:27', 876923740, 201799169)
58674
+ 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-03-20 15:26:27', '2013-03-20 15:26:27', 864673665, 201799169)
58675
+ Fixture Delete (0.1ms) DELETE FROM "users"
58676
+ 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-03-20 15:26:27', '2013-03-20 15:26:27', 201799169)
58677
+ 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-03-20 15:26:27', '2013-03-20 15:26:27', 999914115)
58678
+ 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-03-20 15:26:27', '2013-03-20 15:26:27', 725306934)
58679
+ 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-03-20 15:26:27', '2013-03-20 15:26:27', 349534908)
58680
+  (3.2ms) commit transaction
58681
+  (0.1ms) begin transaction
58682
+  (0.1ms) SELECT COUNT(*) FROM "users"
58683
+ Processing by Contour::RegistrationsController#create as HTML
58684
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58685
+  (0.1ms) SAVEPOINT active_record_1
58686
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
58687
+ Binary data inserted for `string` type on column `encrypted_password`
58688
+ SQL (1.3ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:26:27 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$XTDQrRTGp13U5kac3EGdc.xtJUYZcgUPIkmy2FVf1ZtFPmYQJaBOu"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:26:27 UTC +00:00]]
58689
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58690
+ Redirected to http://test.host/users/login
58691
+ Completed 302 Found in 128ms (ActiveRecord: 0.0ms)
58692
+  (0.1ms) SELECT COUNT(*) FROM "users"
58693
+  (9.9ms) rollback transaction
58694
+ --------------------------------------------------------------------------------------------
58695
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58696
+ --------------------------------------------------------------------------------------------
58697
+  (0.1ms) begin transaction
58698
+  (0.2ms) SELECT COUNT(*) FROM "users"
58699
+ Processing by Contour::RegistrationsController#create as HTML
58700
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58701
+ Unpermitted parameters: status
58702
+ Unpermitted parameters: status
58703
+  (0.1ms) SAVEPOINT active_record_1
58704
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
58705
+ Binary data inserted for `string` type on column `encrypted_password`
58706
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:26:28 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$DZbztnCqZmNP38RbXu7eu.9vPmUWwvt7f2HrBU6Efgq2MyR5HHvtO"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:26:28 UTC +00:00]]
58707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58708
+ Redirected to http://test.host/users/login
58709
+ Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
58710
+  (0.1ms) SELECT COUNT(*) FROM "users"
58711
+  (0.6ms) rollback transaction
58712
+ -------------------------------------------------------------------------------
58713
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
58714
+ -------------------------------------------------------------------------------
58715
+  (0.4ms) begin transaction
58716
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58717
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:27:02', '2013-03-20 15:27:02', 949717663, 201799169)
58718
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:27:02', '2013-03-20 15:27:02', 876923740, 201799169)
58719
+ 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-03-20 15:27:02', '2013-03-20 15:27:02', 864673665, 201799169)
58720
+ Fixture Delete (0.1ms) DELETE FROM "users"
58721
+ 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-03-20 15:27:03', '2013-03-20 15:27:03', 201799169)
58722
+ 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-03-20 15:27:03', '2013-03-20 15:27:03', 999914115)
58723
+ 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-03-20 15:27:03', '2013-03-20 15:27:03', 725306934)
58724
+ 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-03-20 15:27:03', '2013-03-20 15:27:03', 349534908)
58725
+  (28.5ms) commit transaction
58726
+  (0.1ms) begin transaction
58727
+  (0.2ms) SELECT COUNT(*) FROM "users"
58728
+ Processing by Contour::RegistrationsController#create as HTML
58729
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58730
+  (0.1ms) SAVEPOINT active_record_1
58731
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
58732
+ Binary data inserted for `string` type on column `encrypted_password`
58733
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:27:03 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$9iVcHvbldh/acWsAEREO3OjNqo.d723yzN/m3DGtUyQLSkV7ecBN6"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:27:03 UTC +00:00]]
58734
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58735
+ Redirected to http://test.host/users/login
58736
+ Completed 302 Found in 127ms (ActiveRecord: 0.0ms)
58737
+  (0.1ms) SELECT COUNT(*) FROM "users"
58738
+  (10.7ms) rollback transaction
58739
+ --------------------------------------------------------------------------------------------
58740
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58741
+ --------------------------------------------------------------------------------------------
58742
+  (0.1ms) begin transaction
58743
+  (0.2ms) SELECT COUNT(*) FROM "users"
58744
+ Processing by Contour::RegistrationsController#create as HTML
58745
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58746
+ Unpermitted parameters: status
58747
+ Unpermitted parameters: status
58748
+  (0.1ms) SAVEPOINT active_record_1
58749
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
58750
+ Binary data inserted for `string` type on column `encrypted_password`
58751
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:27:03 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$MjNhgGSEG.iAf3nKSmGLB.uf8yadLB2Lkeq3/2sJiTtWGADCbj3vC"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:27:03 UTC +00:00]]
58752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58753
+ Redirected to http://test.host/users/login
58754
+ Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
58755
+  (0.1ms) SELECT COUNT(*) FROM "users"
58756
+  (1.1ms) rollback transaction
58757
+ -------------------------------------------------------------------------------
58758
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
58759
+ -------------------------------------------------------------------------------
58760
+  (0.5ms) begin transaction
58761
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58762
+ 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-03-20 15:27:33', '2013-03-20 15:27:33', 949717663, 201799169)
58763
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:27:33', '2013-03-20 15:27:33', 876923740, 201799169)
58764
+ 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-03-20 15:27:33', '2013-03-20 15:27:33', 864673665, 201799169)
58765
+ Fixture Delete (0.2ms) DELETE FROM "users"
58766
+ 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-03-20 15:27:33', '2013-03-20 15:27:33', 201799169)
58767
+ 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-03-20 15:27:33', '2013-03-20 15:27:33', 999914115)
58768
+ 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-03-20 15:27:33', '2013-03-20 15:27:33', 725306934)
58769
+ 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-03-20 15:27:33', '2013-03-20 15:27:33', 349534908)
58770
+  (2.4ms) commit transaction
58771
+  (0.1ms) begin transaction
58772
+  (0.1ms) SELECT COUNT(*) FROM "users"
58773
+ Processing by Contour::RegistrationsController#create as HTML
58774
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58775
+  (0.1ms) SAVEPOINT active_record_1
58776
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
58777
+ Binary data inserted for `string` type on column `encrypted_password`
58778
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:27:33 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$/wWmgu1aFUxDww3oepC9v.qsdH0rxi1jtvnSizqEQWu/lq2MVGwXi"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:27:33 UTC +00:00]]
58779
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58780
+ Redirected to http://test.host/users/login
58781
+ Completed 302 Found in 117ms (ActiveRecord: 0.0ms)
58782
+  (0.1ms) SELECT COUNT(*) FROM "users"
58783
+  (10.5ms) rollback transaction
58784
+ --------------------------------------------------------------------------------------------
58785
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58786
+ --------------------------------------------------------------------------------------------
58787
+  (0.1ms) begin transaction
58788
+  (0.2ms) SELECT COUNT(*) FROM "users"
58789
+ Processing by Contour::RegistrationsController#create as HTML
58790
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58791
+ Unpermitted parameters: status
58792
+  (0.1ms) SAVEPOINT active_record_1
58793
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
58794
+ Binary data inserted for `string` type on column `encrypted_password`
58795
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:27:33 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$lumlkX16HzjNOKg9/LRo1e4qRzLcEM1rJjfuigdjvk5j3XPS323E6"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:27:33 UTC +00:00]]
58796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58797
+ Redirected to http://test.host/users/login
58798
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
58799
+  (0.1ms) SELECT COUNT(*) FROM "users"
58800
+  (1.1ms) rollback transaction
58801
+ -------------------------------------------------
58802
+ AuthenticationTest: test_should_get_provider_name
58803
+ -------------------------------------------------
58804
+  (0.4ms) begin transaction
58805
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
58806
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:27:44', '2013-03-20 15:27:44', 949717663, 201799169)
58807
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:27:44', '2013-03-20 15:27:44', 876923740, 201799169)
58808
+ 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-03-20 15:27:44', '2013-03-20 15:27:44', 864673665, 201799169)
58809
+ Fixture Delete (0.1ms) DELETE FROM "users"
58810
+ 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-03-20 15:27:44', '2013-03-20 15:27:44', 201799169)
58811
+ 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-03-20 15:27:44', '2013-03-20 15:27:44', 999914115)
58812
+ 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-03-20 15:27:44', '2013-03-20 15:27:44', 725306934)
58813
+ 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-03-20 15:27:44', '2013-03-20 15:27:44', 349534908)
58814
+  (21.6ms) commit transaction
58815
+  (0.1ms) begin transaction
58816
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
58817
+  (0.1ms) rollback transaction
58818
+ --------------------------------------------------------------------------------
58819
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
58820
+ --------------------------------------------------------------------------------
58821
+  (0.1ms) begin transaction
58822
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
58823
+  (0.1ms) rollback transaction
58824
+ -------------------------------------------------------------------------
58825
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
58826
+ -------------------------------------------------------------------------
58827
+  (0.1ms) begin transaction
58828
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58829
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
58830
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
58831
+ Processing by Contour::AuthenticationsController#create as HTML
58832
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-20 15:27:44 UTC", "updated_at"=>"2013-03-20 15:27:44 UTC"}}
58833
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
58834
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
58835
+ Logged in user found, creating associated authentication.
58836
+  (0.1ms) SAVEPOINT active_record_1
58837
+ SQL (0.4ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:27:44 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Wed, 20 Mar 2013 15:27:44 UTC +00:00], ["user_id", 201799169]]
58838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
58839
+ Redirected to http://test.host/authentications
58840
+ Completed 302 Found in 65ms (ActiveRecord: 1.0ms)
58841
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
58842
+  (0.7ms) rollback transaction
58843
+ --------------------------------------------------------------------------
58844
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
58845
+ --------------------------------------------------------------------------
58846
+  (0.1ms) begin transaction
58847
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58848
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
58849
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
58850
+ Processing by Contour::AuthenticationsController#destroy as HTML
58851
+ Parameters: {"id"=>"949717663"}
58852
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
58853
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
58854
+  (0.0ms) SAVEPOINT active_record_1
58855
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
58856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58857
+ Redirected to http://test.host/authentications
58858
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
58859
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
58860
+  (0.7ms) rollback transaction
58861
+ -------------------------------------------------------------
58862
+ Contour::AuthenticationsControllerTest: test_should_get_index
58863
+ -------------------------------------------------------------
58864
+  (0.1ms) begin transaction
58865
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58866
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
58867
+ Processing by Contour::AuthenticationsController#index as HTML
58868
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
58869
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
58870
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
58871
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (10.7ms)
58872
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.2ms)
58873
+ Completed 200 OK in 115ms (Views: 112.7ms | ActiveRecord: 0.5ms)
58874
+  (0.1ms) rollback transaction
58875
+ -----------------------------------------------------------------------------
58876
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
58877
+ -----------------------------------------------------------------------------
58878
+  (0.1ms) begin transaction
58879
+ Processing by Contour::PasswordsController#create as HTML
58880
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
58881
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
58882
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'daRr4yLxtKK6osXu8Pky' LIMIT 1
58883
+  (0.1ms) SAVEPOINT active_record_1
58884
+ SQL (0.5ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "daRr4yLxtKK6osXu8Pky"], ["reset_password_sent_at", Wed, 20 Mar 2013 15:27:44 UTC +00:00], ["updated_at", Wed, 20 Mar 2013 15:27:44 UTC +00:00]]
58885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58886
+
58887
+ Sent mail to valid@example.com (12.2ms)
58888
+ Date: Wed, 20 Mar 2013 11:27:44 -0400
58889
+ From: please-change-me-at-config-initializers-devise@example.com
58890
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
58891
+ To: valid@example.com
58892
+ Message-ID: <5149d5708e77f_69583fd7f986066c197ac@edge.partners.org.mail>
58893
+ Subject: Reset password instructions
58894
+ Mime-Version: 1.0
58895
+ Content-Type: text/html;
58896
+ charset=UTF-8
58897
+ Content-Transfer-Encoding: 7bit
58898
+
58899
+ <p>Hello valid@example.com!</p>
58900
+
58901
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
58902
+
58903
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=daRr4yLxtKK6osXu8Pky">Change my password</a></p>
58904
+
58905
+ <p>If you didn't request this, please ignore this email.</p>
58906
+ <p>Your password won't change until you access the link above and create a new one.</p>
58907
+
58908
+ Redirected to http://test.host/users/login
58909
+ Completed 302 Found in 107ms (ActiveRecord: 0.0ms)
58910
+  (0.8ms) rollback transaction
58911
+ -----------------------------------------------------------------------------
58912
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
58913
+ -----------------------------------------------------------------------------
58914
+  (0.1ms) begin transaction
58915
+ Processing by Contour::PasswordsController#new as HTML
58916
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
58917
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (9.4ms)
58918
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (12.0ms)
58919
+ Completed 200 OK in 28ms (Views: 27.7ms | ActiveRecord: 0.0ms)
58920
+  (0.1ms) rollback transaction
58921
+ -------------------------------------------------------------------------------
58922
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
58923
+ -------------------------------------------------------------------------------
58924
+  (0.1ms) begin transaction
58925
+  (0.2ms) SELECT COUNT(*) FROM "users"
58926
+ Processing by Contour::RegistrationsController#create as HTML
58927
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58928
+  (0.1ms) SAVEPOINT active_record_1
58929
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
58930
+ Binary data inserted for `string` type on column `encrypted_password`
58931
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:27:44 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$bd5xu4E69v3dp13eS81aJ.QLVGVDBVFa2rSU3pSOPSdNyGxLCrZT6"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:27:44 UTC +00:00]]
58932
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58933
+ Redirected to http://test.host/users/login
58934
+ Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
58935
+  (0.1ms) SELECT COUNT(*) FROM "users"
58936
+  (0.6ms) rollback transaction
58937
+ --------------------------------------------------------------------------------------------
58938
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
58939
+ --------------------------------------------------------------------------------------------
58940
+  (0.1ms) begin transaction
58941
+  (0.1ms) SELECT COUNT(*) FROM "users"
58942
+ Processing by Contour::RegistrationsController#create as HTML
58943
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
58944
+ Unpermitted parameters: status
58945
+  (0.1ms) SAVEPOINT active_record_1
58946
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
58947
+ Binary data inserted for `string` type on column `encrypted_password`
58948
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:27:44 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$EpnW8X0JM28AUd4xxiRyg.a1DE5.oW/2.TcLNv09q35KxojkvDKDu"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:27:44 UTC +00:00]]
58949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58950
+ Redirected to http://test.host/users/login
58951
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
58952
+  (0.1ms) SELECT COUNT(*) FROM "users"
58953
+  (0.7ms) rollback transaction
58954
+ ----------------------------------------------------------------------
58955
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
58956
+ ----------------------------------------------------------------------
58957
+  (0.1ms) begin transaction
58958
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58959
+ Processing by Contour::SessionsController#create as JSON
58960
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
58961
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
58962
+  (0.1ms) SAVEPOINT active_record_1
58963
+ 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", Wed, 20 Mar 2013 15:27:44 UTC +00:00], ["current_sign_in_at", Wed, 20 Mar 2013 15:27:44 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Wed, 20 Mar 2013 15:27:44 UTC +00:00]]
58964
+  (0.1ms) RELEASE SAVEPOINT active_record_1
58965
+ Completed 200 OK in 79ms (Views: 0.3ms | ActiveRecord: 0.7ms)
58966
+  (0.7ms) rollback transaction
58967
+ ----------------------------------------------------------------------------------------------------------
58968
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
58969
+ ----------------------------------------------------------------------------------------------------------
58970
+  (0.1ms) begin transaction
58971
+ Processing by Contour::SessionsController#create as HTML
58972
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
58973
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
58974
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
58975
+ Redirected to http://test.host/auth/google_apps
58976
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
58977
+  (0.1ms) rollback transaction
58978
+ ----------------------------------------------------------------------------------------------
58979
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
58980
+ ----------------------------------------------------------------------------------------------
58981
+  (0.1ms) begin transaction
58982
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
58983
+ Processing by Contour::SessionsController#create as HTML
58984
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
58985
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
58986
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
58987
+ Redirected to http://test.host/auth/ldap
58988
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
58989
+  (0.1ms) rollback transaction
58990
+ --------------------------------------------------------------------------
58991
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
58992
+ --------------------------------------------------------------------------
58993
+  (0.0ms) begin transaction
58994
+ Processing by Contour::SessionsController#create as HTML
58995
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
58996
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
58997
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
58998
+ Completed 401 Unauthorized in 3ms
58999
+ Processing by Contour::SessionsController#new as HTML
59000
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
59001
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
59002
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (2.5ms)
59003
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.6ms)
59004
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.5ms)
59005
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.2ms)
59006
+ Completed 200 OK in 25ms (Views: 24.6ms | ActiveRecord: 0.0ms)
59007
+  (0.1ms) rollback transaction
59008
+ -----------------------------------------------------
59009
+ ContourHelperTest: test_should_show_sort_field_helper
59010
+ -----------------------------------------------------
59011
+  (0.1ms) begin transaction
59012
+  (0.1ms) rollback transaction
59013
+ ---------------------------------------------------------------------
59014
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
59015
+ ---------------------------------------------------------------------
59016
+  (0.0ms) begin transaction
59017
+  (0.1ms) rollback transaction
59018
+ -----------------------
59019
+ ContourTest: test_truth
59020
+ -----------------------
59021
+  (0.1ms) begin transaction
59022
+  (0.0ms) rollback transaction
59023
+ --------------------------------------------------------------------
59024
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
59025
+ --------------------------------------------------------------------
59026
+  (0.1ms) begin transaction
59027
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59028
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59029
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59030
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 11:27:44 -0400
59031
+ Processing by WelcomeController#logged_in_page as HTML
59032
+ Completed 401 Unauthorized in 33ms
59033
+  (0.1ms) SAVEPOINT active_record_1
59034
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
59035
+ Binary data inserted for `string` type on column `encrypted_password`
59036
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:27:45 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$hFj6.uFajvF8gZP92d3P3Ooyqsjl3zUisI1FDEqI7abnAZ1ncBxvW"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Wed, 20 Mar 2013 15:27:45 UTC +00:00]]
59037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59038
+  (0.0ms) SAVEPOINT active_record_1
59039
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59040
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59042
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
59043
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
59044
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-20 11:27:45 -0400
59045
+ Processing by Contour::SessionsController#create as HTML
59046
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
59047
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
59048
+  (0.1ms) SAVEPOINT active_record_1
59049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59050
+ Completed 401 Unauthorized in 6ms
59051
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-20 11:27:45 -0400
59052
+ Processing by Contour::SessionsController#new as HTML
59053
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
59054
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.4ms)
59055
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
59056
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.4ms)
59057
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.1ms)
59058
+ Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.0ms)
59059
+  (0.9ms) rollback transaction
59060
+ --------------------------------------------------------
59061
+ NavigationTest: test_friendly_url_forwarding_after_login
59062
+ --------------------------------------------------------
59063
+  (0.1ms) begin transaction
59064
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59065
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59066
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59067
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 11:27:45 -0400
59068
+ Processing by WelcomeController#logged_in_page as HTML
59069
+ Completed 401 Unauthorized in 1ms
59070
+  (0.1ms) SAVEPOINT active_record_1
59071
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
59072
+ Binary data inserted for `string` type on column `encrypted_password`
59073
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:27:45 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$UJ3wnoprCYUuS6F7cYQxMOHLlVU4xSEvrcvDmA5gX95TGy9TIap9C"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Wed, 20 Mar 2013 15:27:45 UTC +00:00]]
59074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59075
+  (0.0ms) SAVEPOINT active_record_1
59076
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59077
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59079
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
59080
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
59081
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-20 11:27:45 -0400
59082
+ Processing by Contour::SessionsController#create as HTML
59083
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
59084
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
59085
+  (0.1ms) SAVEPOINT active_record_1
59086
+ 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", Wed, 20 Mar 2013 15:27:45 UTC +00:00], ["current_sign_in_at", Wed, 20 Mar 2013 15:27:45 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 20 Mar 2013 15:27:45 UTC +00:00]]
59087
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59088
+ Redirected to http://www.example.com/logged_in_page
59089
+ Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
59090
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 11:27:45 -0400
59091
+ Processing by WelcomeController#logged_in_page as HTML
59092
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
59093
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.1ms)
59094
+  (0.6ms) rollback transaction
59095
+ --------------------------------------------------------------------
59096
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
59097
+ --------------------------------------------------------------------
59098
+  (0.1ms) begin transaction
59099
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59100
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59101
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59102
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 11:27:45 -0400
59103
+ Processing by WelcomeController#logged_in_page as HTML
59104
+ Completed 401 Unauthorized in 1ms
59105
+  (0.1ms) SAVEPOINT active_record_1
59106
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
59107
+ Binary data inserted for `string` type on column `encrypted_password`
59108
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:27:45 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$xyyUdUSNWjMP9vFhAF.33uWRPYiPV8AbFdDfIl8LPsKekBV0/gW1e"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Wed, 20 Mar 2013 15:27:45 UTC +00:00]]
59109
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59110
+  (0.0ms) SAVEPOINT active_record_1
59111
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59112
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59114
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
59115
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
59116
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-20 11:27:45 -0400
59117
+ Processing by Contour::SessionsController#create as HTML
59118
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
59119
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
59120
+  (0.1ms) SAVEPOINT active_record_1
59121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59122
+ Completed 401 Unauthorized in 5ms
59123
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-20 11:27:45 -0400
59124
+ Processing by Contour::SessionsController#new as HTML
59125
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
59126
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.8ms)
59127
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
59128
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.3ms)
59129
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.7ms)
59130
+ Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.0ms)
59131
+  (0.7ms) rollback transaction
59132
+ -------------------------------------------------------------
59133
+ NavigationTest: test_root_navigation_redirected_to_login_page
59134
+ -------------------------------------------------------------
59135
+  (0.1ms) begin transaction
59136
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59137
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59138
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59139
+ Started GET "/" for 127.0.0.1 at 2013-03-20 11:27:45 -0400
59140
+ Processing by WelcomeController#index as HTML
59141
+ Completed 401 Unauthorized in 1ms
59142
+  (0.1ms) rollback transaction
59143
+ -------------------------------------------------------------------------
59144
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
59145
+ -------------------------------------------------------------------------
59146
+  (0.0ms) begin transaction
59147
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59148
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59149
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59150
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-20 11:27:45 -0400
59151
+ Processing by WelcomeController#logged_in_page as JSON
59152
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
59153
+  (0.1ms) SAVEPOINT active_record_1
59154
+ 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", Wed, 20 Mar 2013 15:27:45 UTC +00:00], ["current_sign_in_at", Wed, 20 Mar 2013 15:27:45 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 20 Mar 2013 15:27:45 UTC +00:00]]
59155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59156
+ Completed 200 OK in 80ms (Views: 0.2ms | ActiveRecord: 0.7ms)
59157
+  (1.0ms) rollback transaction
59158
+ ------------------------------------------------------------------------------------------------
59159
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
59160
+ ------------------------------------------------------------------------------------------------
59161
+  (0.1ms) begin transaction
59162
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59163
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59164
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59165
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-20 11:27:45 -0400
59166
+ Processing by WelcomeController#logged_in_page as JSON
59167
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
59168
+ Completed 401 Unauthorized in 76ms
59169
+  (0.1ms) rollback transaction
59170
+ ------------------------------------
59171
+ UserTest: test_should_apply_omniauth
59172
+ ------------------------------------
59173
+  (0.1ms) begin transaction
59174
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59175
+  (0.1ms) rollback transaction
59176
+ --------------------------------------
59177
+ UserTest: test_should_get_reverse_name
59178
+ --------------------------------------
59179
+  (0.0ms) begin transaction
59180
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59181
+  (0.0ms) rollback transaction
59182
+ -------------------------------------------------
59183
+ AuthenticationTest: test_should_get_provider_name
59184
+ -------------------------------------------------
59185
+  (0.4ms) begin transaction
59186
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
59187
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:29:39', '2013-03-20 15:29:39', 949717663, 201799169)
59188
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:29:39', '2013-03-20 15:29:39', 876923740, 201799169)
59189
+ 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-03-20 15:29:39', '2013-03-20 15:29:39', 864673665, 201799169)
59190
+ Fixture Delete (0.1ms) DELETE FROM "users"
59191
+ 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-03-20 15:29:39', '2013-03-20 15:29:39', 201799169)
59192
+ 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-03-20 15:29:39', '2013-03-20 15:29:39', 999914115)
59193
+ 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-03-20 15:29:39', '2013-03-20 15:29:39', 725306934)
59194
+ 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-03-20 15:29:39', '2013-03-20 15:29:39', 349534908)
59195
+  (2.1ms) commit transaction
59196
+  (0.1ms) begin transaction
59197
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
59198
+  (0.1ms) rollback transaction
59199
+ --------------------------------------------------------------------------------
59200
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
59201
+ --------------------------------------------------------------------------------
59202
+  (0.1ms) begin transaction
59203
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
59204
+  (0.1ms) rollback transaction
59205
+ -------------------------------------------------------------------------
59206
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
59207
+ -------------------------------------------------------------------------
59208
+  (0.1ms) begin transaction
59209
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59210
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
59211
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
59212
+ Processing by Contour::AuthenticationsController#create as HTML
59213
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-20 15:29:39 UTC", "updated_at"=>"2013-03-20 15:29:39 UTC"}}
59214
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
59215
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
59216
+ Logged in user found, creating associated authentication.
59217
+  (0.1ms) SAVEPOINT active_record_1
59218
+ SQL (0.4ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:29:39 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Wed, 20 Mar 2013 15:29:39 UTC +00:00], ["user_id", 201799169]]
59219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59220
+ Redirected to http://test.host/authentications
59221
+ Completed 302 Found in 16ms (ActiveRecord: 0.8ms)
59222
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
59223
+  (0.7ms) rollback transaction
59224
+ --------------------------------------------------------------------------
59225
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
59226
+ --------------------------------------------------------------------------
59227
+  (0.1ms) begin transaction
59228
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59229
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
59230
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
59231
+ Processing by Contour::AuthenticationsController#destroy as HTML
59232
+ Parameters: {"id"=>"949717663"}
59233
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
59234
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
59235
+  (0.0ms) SAVEPOINT active_record_1
59236
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
59237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59238
+ Redirected to http://test.host/authentications
59239
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
59240
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
59241
+  (0.5ms) rollback transaction
59242
+ -------------------------------------------------------------
59243
+ Contour::AuthenticationsControllerTest: test_should_get_index
59244
+ -------------------------------------------------------------
59245
+  (0.1ms) begin transaction
59246
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59247
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
59248
+ Processing by Contour::AuthenticationsController#index as HTML
59249
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
59250
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
59251
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
59252
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (52.9ms)
59253
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.7ms)
59254
+ Completed 200 OK in 152ms (Views: 149.1ms | ActiveRecord: 0.5ms)
59255
+  (0.1ms) rollback transaction
59256
+ -----------------------------------------------------------------------------
59257
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
59258
+ -----------------------------------------------------------------------------
59259
+  (0.1ms) begin transaction
59260
+ Processing by Contour::PasswordsController#create as HTML
59261
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
59262
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
59263
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'CMURkJ2wrXPSEStxjFvV' LIMIT 1
59264
+  (0.0ms) SAVEPOINT active_record_1
59265
+ SQL (0.4ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "CMURkJ2wrXPSEStxjFvV"], ["reset_password_sent_at", Wed, 20 Mar 2013 15:29:39 UTC +00:00], ["updated_at", Wed, 20 Mar 2013 15:29:39 UTC +00:00]]
59266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59267
+
59268
+ Sent mail to valid@example.com (14.3ms)
59269
+ Date: Wed, 20 Mar 2013 11:29:40 -0400
59270
+ From: please-change-me-at-config-initializers-devise@example.com
59271
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
59272
+ To: valid@example.com
59273
+ Message-ID: <5149d5e4373c_69963fd6d2060674638d1@edge.partners.org.mail>
59274
+ Subject: Reset password instructions
59275
+ Mime-Version: 1.0
59276
+ Content-Type: text/html;
59277
+ charset=UTF-8
59278
+ Content-Transfer-Encoding: 7bit
59279
+
59280
+ <p>Hello valid@example.com!</p>
59281
+
59282
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
59283
+
59284
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=CMURkJ2wrXPSEStxjFvV">Change my password</a></p>
59285
+
59286
+ <p>If you didn't request this, please ignore this email.</p>
59287
+ <p>Your password won't change until you access the link above and create a new one.</p>
59288
+
59289
+ Redirected to http://test.host/users/login
59290
+ Completed 302 Found in 63ms (ActiveRecord: 0.0ms)
59291
+  (37.2ms) rollback transaction
59292
+ -----------------------------------------------------------------------------
59293
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
59294
+ -----------------------------------------------------------------------------
59295
+  (0.1ms) begin transaction
59296
+ Processing by Contour::PasswordsController#new as HTML
59297
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
59298
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (7.4ms)
59299
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (10.2ms)
59300
+ Completed 200 OK in 26ms (Views: 25.3ms | ActiveRecord: 0.0ms)
59301
+  (0.1ms) rollback transaction
59302
+ -------------------------------------------------------------------------------
59303
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
59304
+ -------------------------------------------------------------------------------
59305
+  (0.1ms) begin transaction
59306
+  (0.2ms) SELECT COUNT(*) FROM "users"
59307
+ Processing by Contour::RegistrationsController#create as HTML
59308
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
59309
+  (0.1ms) SAVEPOINT active_record_1
59310
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
59311
+ Binary data inserted for `string` type on column `encrypted_password`
59312
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$n1C6GCvqM5uR0MI9pTIJROb54X0YQBzEp5l7X3XjvPl2fa7Kylp3S"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00]]
59313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59314
+ Redirected to http://test.host/users/login
59315
+ Completed 302 Found in 54ms (ActiveRecord: 0.0ms)
59316
+  (0.1ms) SELECT COUNT(*) FROM "users"
59317
+  (0.8ms) rollback transaction
59318
+ --------------------------------------------------------------------------------------------
59319
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
59320
+ --------------------------------------------------------------------------------------------
59321
+  (0.1ms) begin transaction
59322
+  (0.1ms) SELECT COUNT(*) FROM "users"
59323
+ Processing by Contour::RegistrationsController#create as HTML
59324
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
59325
+ Unpermitted parameters: status
59326
+  (0.1ms) SAVEPOINT active_record_1
59327
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
59328
+ Binary data inserted for `string` type on column `encrypted_password`
59329
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$KtJSRUBZqZie2FgBKVHN1e2a3dO5EgxGa3uFHnSFmm7S8YTsme1aq"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00]]
59330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59331
+ Redirected to http://test.host/users/login
59332
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
59333
+  (0.1ms) SELECT COUNT(*) FROM "users"
59334
+  (0.8ms) rollback transaction
59335
+ ----------------------------------------------------------------------
59336
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
59337
+ ----------------------------------------------------------------------
59338
+  (0.1ms) begin transaction
59339
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59340
+ Processing by Contour::SessionsController#create as JSON
59341
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
59342
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
59343
+  (0.1ms) SAVEPOINT active_record_1
59344
+ 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", Wed, 20 Mar 2013 15:29:40 UTC +00:00], ["current_sign_in_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00]]
59345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59346
+ Completed 200 OK in 77ms (Views: 0.3ms | ActiveRecord: 0.7ms)
59347
+  (0.8ms) rollback transaction
59348
+ ----------------------------------------------------------------------------------------------------------
59349
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
59350
+ ----------------------------------------------------------------------------------------------------------
59351
+  (0.1ms) begin transaction
59352
+ Processing by Contour::SessionsController#create as HTML
59353
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
59354
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
59355
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
59356
+ Redirected to http://test.host/auth/google_apps
59357
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
59358
+  (0.1ms) rollback transaction
59359
+ ----------------------------------------------------------------------------------------------
59360
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
59361
+ ----------------------------------------------------------------------------------------------
59362
+  (0.0ms) begin transaction
59363
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59364
+ Processing by Contour::SessionsController#create as HTML
59365
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
59366
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
59367
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
59368
+ Redirected to http://test.host/auth/ldap
59369
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
59370
+  (0.1ms) rollback transaction
59371
+ --------------------------------------------------------------------------
59372
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
59373
+ --------------------------------------------------------------------------
59374
+  (0.0ms) begin transaction
59375
+ Processing by Contour::SessionsController#create as HTML
59376
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
59377
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
59378
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
59379
+ Completed 401 Unauthorized in 3ms
59380
+ Processing by Contour::SessionsController#new as HTML
59381
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
59382
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.6ms)
59383
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.9ms)
59384
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
59385
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.4ms)
59386
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.9ms)
59387
+ Completed 200 OK in 24ms (Views: 23.0ms | ActiveRecord: 0.0ms)
59388
+  (0.1ms) rollback transaction
59389
+ -----------------------------------------------------
59390
+ ContourHelperTest: test_should_show_sort_field_helper
59391
+ -----------------------------------------------------
59392
+  (0.1ms) begin transaction
59393
+  (0.1ms) rollback transaction
59394
+ ---------------------------------------------------------------------
59395
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
59396
+ ---------------------------------------------------------------------
59397
+  (0.1ms) begin transaction
59398
+  (0.1ms) rollback transaction
59399
+ -----------------------
59400
+ ContourTest: test_truth
59401
+ -----------------------
59402
+  (0.1ms) begin transaction
59403
+  (0.1ms) rollback transaction
59404
+ --------------------------------------------------------------------
59405
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
59406
+ --------------------------------------------------------------------
59407
+  (0.1ms) begin transaction
59408
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59409
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59410
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59411
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 11:29:40 -0400
59412
+ Processing by WelcomeController#logged_in_page as HTML
59413
+ Completed 401 Unauthorized in 18ms
59414
+  (0.1ms) SAVEPOINT active_record_1
59415
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
59416
+ Binary data inserted for `string` type on column `encrypted_password`
59417
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$V3A8cnATeE9oUlgLhkGBwuMQsF.Pyl8TmCgbB.I/nVfGQmcKJcZkq"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00]]
59418
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59419
+  (0.0ms) SAVEPOINT active_record_1
59420
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59421
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59423
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
59424
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
59425
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-20 11:29:40 -0400
59426
+ Processing by Contour::SessionsController#create as HTML
59427
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
59428
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
59429
+  (0.1ms) SAVEPOINT active_record_1
59430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59431
+ Completed 401 Unauthorized in 7ms
59432
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-20 11:29:40 -0400
59433
+ Processing by Contour::SessionsController#new as HTML
59434
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
59435
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.3ms)
59436
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
59437
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.4ms)
59438
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.5ms)
59439
+ Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.0ms)
59440
+  (0.9ms) rollback transaction
59441
+ --------------------------------------------------------
59442
+ NavigationTest: test_friendly_url_forwarding_after_login
59443
+ --------------------------------------------------------
59444
+  (0.1ms) begin transaction
59445
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59446
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59447
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59448
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 11:29:40 -0400
59449
+ Processing by WelcomeController#logged_in_page as HTML
59450
+ Completed 401 Unauthorized in 1ms
59451
+  (0.1ms) SAVEPOINT active_record_1
59452
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
59453
+ Binary data inserted for `string` type on column `encrypted_password`
59454
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$1LyZ3gkai92MQmm18XfNhu.qrjCtcSQbvZS4DmTDtOXLL9QC5gnAy"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00]]
59455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59456
+  (0.0ms) SAVEPOINT active_record_1
59457
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59458
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59460
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
59461
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
59462
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-20 11:29:40 -0400
59463
+ Processing by Contour::SessionsController#create as HTML
59464
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
59465
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
59466
+  (0.1ms) SAVEPOINT active_record_1
59467
+ 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", Wed, 20 Mar 2013 15:29:40 UTC +00:00], ["current_sign_in_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00]]
59468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59469
+ Redirected to http://www.example.com/logged_in_page
59470
+ Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
59471
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 11:29:40 -0400
59472
+ Processing by WelcomeController#logged_in_page as HTML
59473
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
59474
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.3ms)
59475
+  (0.6ms) rollback transaction
59476
+ --------------------------------------------------------------------
59477
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
59478
+ --------------------------------------------------------------------
59479
+  (0.1ms) begin transaction
59480
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59481
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59482
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59483
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 11:29:40 -0400
59484
+ Processing by WelcomeController#logged_in_page as HTML
59485
+ Completed 401 Unauthorized in 1ms
59486
+  (0.1ms) SAVEPOINT active_record_1
59487
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
59488
+ Binary data inserted for `string` type on column `encrypted_password`
59489
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$NUPGxDGD9vEGRObw.TybVe2okJEzvqJv1bkV8oemOgvQTx9SsQoKG"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00]]
59490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59491
+  (0.0ms) SAVEPOINT active_record_1
59492
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59493
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59494
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59495
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
59496
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
59497
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-20 11:29:40 -0400
59498
+ Processing by Contour::SessionsController#create as HTML
59499
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
59500
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
59501
+  (0.1ms) SAVEPOINT active_record_1
59502
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59503
+ Completed 401 Unauthorized in 5ms
59504
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-20 11:29:40 -0400
59505
+ Processing by Contour::SessionsController#new as HTML
59506
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
59507
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.3ms)
59508
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
59509
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
59510
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.9ms)
59511
+ Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.0ms)
59512
+  (0.9ms) rollback transaction
59513
+ -------------------------------------------------------------
59514
+ NavigationTest: test_root_navigation_redirected_to_login_page
59515
+ -------------------------------------------------------------
59516
+  (0.1ms) begin transaction
59517
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59518
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59519
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59520
+ Started GET "/" for 127.0.0.1 at 2013-03-20 11:29:40 -0400
59521
+ Processing by WelcomeController#index as HTML
59522
+ Completed 401 Unauthorized in 1ms
59523
+  (0.1ms) rollback transaction
59524
+ -------------------------------------------------------------------------
59525
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
59526
+ -------------------------------------------------------------------------
59527
+  (0.1ms) begin transaction
59528
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59529
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59530
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59531
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-20 11:29:40 -0400
59532
+ Processing by WelcomeController#logged_in_page as JSON
59533
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
59534
+  (0.1ms) SAVEPOINT active_record_1
59535
+ 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", Wed, 20 Mar 2013 15:29:40 UTC +00:00], ["current_sign_in_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 20 Mar 2013 15:29:40 UTC +00:00]]
59536
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59537
+ Completed 200 OK in 81ms (Views: 0.2ms | ActiveRecord: 0.8ms)
59538
+  (0.7ms) rollback transaction
59539
+ ------------------------------------------------------------------------------------------------
59540
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
59541
+ ------------------------------------------------------------------------------------------------
59542
+  (0.1ms) begin transaction
59543
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59544
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59545
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59546
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-20 11:29:40 -0400
59547
+ Processing by WelcomeController#logged_in_page as JSON
59548
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
59549
+ Completed 401 Unauthorized in 78ms
59550
+  (0.1ms) rollback transaction
59551
+ ------------------------------------
59552
+ UserTest: test_should_apply_omniauth
59553
+ ------------------------------------
59554
+  (0.1ms) begin transaction
59555
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59556
+  (0.1ms) rollback transaction
59557
+ --------------------------------------
59558
+ UserTest: test_should_get_reverse_name
59559
+ --------------------------------------
59560
+  (0.1ms) begin transaction
59561
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59562
+  (0.1ms) rollback transaction
59563
+ -------------------------------------------------
59564
+ AuthenticationTest: test_should_get_provider_name
59565
+ -------------------------------------------------
59566
+  (0.4ms) begin transaction
59567
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
59568
+ 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-03-20 15:36:42', '2013-03-20 15:36:42', 949717663, 201799169)
59569
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:36:42', '2013-03-20 15:36:42', 876923740, 201799169)
59570
+ 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-03-20 15:36:42', '2013-03-20 15:36:42', 864673665, 201799169)
59571
+ Fixture Delete (0.1ms) DELETE FROM "users"
59572
+ 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-03-20 15:36:42', '2013-03-20 15:36:42', 201799169)
59573
+ 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-03-20 15:36:42', '2013-03-20 15:36:42', 999914115)
59574
+ 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-03-20 15:36:42', '2013-03-20 15:36:42', 725306934)
59575
+ 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-03-20 15:36:42', '2013-03-20 15:36:42', 349534908)
59576
+  (2.8ms) commit transaction
59577
+  (0.1ms) begin transaction
59578
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
59579
+  (0.1ms) rollback transaction
59580
+ --------------------------------------------------------------------------------
59581
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
59582
+ --------------------------------------------------------------------------------
59583
+  (0.1ms) begin transaction
59584
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
59585
+  (0.1ms) rollback transaction
59586
+ -------------------------------------------------------------------------
59587
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
59588
+ -------------------------------------------------------------------------
59589
+  (0.1ms) begin transaction
59590
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59591
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
59592
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
59593
+ Processing by Contour::AuthenticationsController#create as HTML
59594
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-20 15:36:42 UTC", "updated_at"=>"2013-03-20 15:36:42 UTC"}}
59595
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
59596
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
59597
+ Logged in user found, creating associated authentication.
59598
+  (0.1ms) SAVEPOINT active_record_1
59599
+ SQL (0.4ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:36:42 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Wed, 20 Mar 2013 15:36:42 UTC +00:00], ["user_id", 201799169]]
59600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59601
+ Redirected to http://test.host/authentications
59602
+ Completed 302 Found in 57ms (ActiveRecord: 0.8ms)
59603
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
59604
+  (0.7ms) rollback transaction
59605
+ --------------------------------------------------------------------------
59606
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
59607
+ --------------------------------------------------------------------------
59608
+  (0.1ms) begin transaction
59609
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59610
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
59611
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
59612
+ Processing by Contour::AuthenticationsController#destroy as HTML
59613
+ Parameters: {"id"=>"949717663"}
59614
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
59615
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
59616
+  (0.0ms) SAVEPOINT active_record_1
59617
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
59618
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59619
+ Redirected to http://test.host/authentications
59620
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
59621
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
59622
+  (0.7ms) rollback transaction
59623
+ -------------------------------------------------------------
59624
+ Contour::AuthenticationsControllerTest: test_should_get_index
59625
+ -------------------------------------------------------------
59626
+  (0.0ms) begin transaction
59627
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59628
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
59629
+ Processing by Contour::AuthenticationsController#index as HTML
59630
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
59631
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
59632
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
59633
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (10.4ms)
59634
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.3ms)
59635
+ Completed 200 OK in 104ms (Views: 102.2ms | ActiveRecord: 0.4ms)
59636
+  (0.1ms) rollback transaction
59637
+ -----------------------------------------------------------------------------
59638
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
59639
+ -----------------------------------------------------------------------------
59640
+  (0.1ms) begin transaction
59641
+ Processing by Contour::PasswordsController#create as HTML
59642
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
59643
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
59644
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '1cEsYy35xurwCaiHDHyy' LIMIT 1
59645
+  (0.0ms) SAVEPOINT active_record_1
59646
+ SQL (0.4ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "1cEsYy35xurwCaiHDHyy"], ["reset_password_sent_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00], ["updated_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00]]
59647
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59648
+
59649
+ Sent mail to valid@example.com (11.2ms)
59650
+ Date: Wed, 20 Mar 2013 11:36:43 -0400
59651
+ From: please-change-me-at-config-initializers-devise@example.com
59652
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
59653
+ To: valid@example.com
59654
+ Message-ID: <5149d78b22fb3_6cd73fc938c60674216a4@edge.partners.org.mail>
59655
+ Subject: Reset password instructions
59656
+ Mime-Version: 1.0
59657
+ Content-Type: text/html;
59658
+ charset=UTF-8
59659
+ Content-Transfer-Encoding: 7bit
59660
+
59661
+ <p>Hello valid@example.com!</p>
59662
+
59663
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
59664
+
59665
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=1cEsYy35xurwCaiHDHyy">Change my password</a></p>
59666
+
59667
+ <p>If you didn't request this, please ignore this email.</p>
59668
+ <p>Your password won't change until you access the link above and create a new one.</p>
59669
+
59670
+ Redirected to http://test.host/users/login
59671
+ Completed 302 Found in 93ms (ActiveRecord: 0.0ms)
59672
+  (0.8ms) rollback transaction
59673
+ -----------------------------------------------------------------------------
59674
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
59675
+ -----------------------------------------------------------------------------
59676
+  (0.1ms) begin transaction
59677
+ Processing by Contour::PasswordsController#new as HTML
59678
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.4ms)
59679
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (7.1ms)
59680
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.6ms)
59681
+ Completed 200 OK in 26ms (Views: 25.3ms | ActiveRecord: 0.0ms)
59682
+  (0.1ms) rollback transaction
59683
+ -------------------------------------------------------------------------------
59684
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
59685
+ -------------------------------------------------------------------------------
59686
+  (0.1ms) begin transaction
59687
+  (0.1ms) SELECT COUNT(*) FROM "users"
59688
+ Processing by Contour::RegistrationsController#create as HTML
59689
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
59690
+  (0.1ms) SAVEPOINT active_record_1
59691
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
59692
+ Binary data inserted for `string` type on column `encrypted_password`
59693
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$cBtJDfmYQNCp7Og.ozYRYujnlp3xGc9WpmO281yfzjyRBuwQLjzNq"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00]]
59694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59695
+ Redirected to http://test.host/users/login
59696
+ Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
59697
+  (0.1ms) SELECT COUNT(*) FROM "users"
59698
+  (0.8ms) rollback transaction
59699
+ --------------------------------------------------------------------------------------------
59700
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
59701
+ --------------------------------------------------------------------------------------------
59702
+  (0.1ms) begin transaction
59703
+  (0.1ms) SELECT COUNT(*) FROM "users"
59704
+ Processing by Contour::RegistrationsController#create as HTML
59705
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
59706
+ Unpermitted parameters: status
59707
+  (0.1ms) SAVEPOINT active_record_1
59708
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
59709
+ Binary data inserted for `string` type on column `encrypted_password`
59710
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$mDmzVDp/0dP/NLfrF6tHZeg7HQVURhhF9o5YTOzJJBYZBffy6Qz4G"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00]]
59711
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59712
+ Redirected to http://test.host/users/login
59713
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
59714
+  (0.1ms) SELECT COUNT(*) FROM "users"
59715
+  (0.7ms) rollback transaction
59716
+ ----------------------------------------------------------------------
59717
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
59718
+ ----------------------------------------------------------------------
59719
+  (0.1ms) begin transaction
59720
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59721
+ Processing by Contour::SessionsController#create as JSON
59722
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
59723
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
59724
+  (0.1ms) SAVEPOINT active_record_1
59725
+ 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", Wed, 20 Mar 2013 15:36:43 UTC +00:00], ["current_sign_in_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00]]
59726
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59727
+ Completed 200 OK in 77ms (Views: 0.3ms | ActiveRecord: 0.7ms)
59728
+  (0.8ms) rollback transaction
59729
+ ----------------------------------------------------------------------------------------------------------
59730
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
59731
+ ----------------------------------------------------------------------------------------------------------
59732
+  (0.1ms) begin transaction
59733
+ Processing by Contour::SessionsController#create as HTML
59734
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
59735
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
59736
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
59737
+ Redirected to http://test.host/auth/google_apps
59738
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
59739
+  (0.1ms) rollback transaction
59740
+ ----------------------------------------------------------------------------------------------
59741
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
59742
+ ----------------------------------------------------------------------------------------------
59743
+  (0.1ms) begin transaction
59744
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59745
+ Processing by Contour::SessionsController#create as HTML
59746
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
59747
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
59748
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
59749
+ Redirected to http://test.host/auth/ldap
59750
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
59751
+  (0.1ms) rollback transaction
59752
+ --------------------------------------------------------------------------
59753
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
59754
+ --------------------------------------------------------------------------
59755
+  (0.0ms) begin transaction
59756
+ Processing by Contour::SessionsController#create as HTML
59757
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
59758
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
59759
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
59760
+ Completed 401 Unauthorized in 3ms
59761
+ Processing by Contour::SessionsController#new as HTML
59762
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
59763
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
59764
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.8ms)
59765
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
59766
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.7ms)
59767
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.9ms)
59768
+ Completed 200 OK in 22ms (Views: 21.0ms | ActiveRecord: 0.0ms)
59769
+  (0.1ms) rollback transaction
59770
+ -----------------------------------------------------
59771
+ ContourHelperTest: test_should_show_sort_field_helper
59772
+ -----------------------------------------------------
59773
+  (0.1ms) begin transaction
59774
+  (0.1ms) rollback transaction
59775
+ ---------------------------------------------------------------------
59776
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
59777
+ ---------------------------------------------------------------------
59778
+  (0.1ms) begin transaction
59779
+  (0.0ms) rollback transaction
59780
+ -----------------------
59781
+ ContourTest: test_truth
59782
+ -----------------------
59783
+  (0.1ms) begin transaction
59784
+  (0.0ms) rollback transaction
59785
+ --------------------------------------------------------------------
59786
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
59787
+ --------------------------------------------------------------------
59788
+  (0.1ms) begin transaction
59789
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59790
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59791
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59792
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 11:36:43 -0400
59793
+ Processing by WelcomeController#logged_in_page as HTML
59794
+ Completed 401 Unauthorized in 18ms
59795
+  (0.1ms) SAVEPOINT active_record_1
59796
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
59797
+ Binary data inserted for `string` type on column `encrypted_password`
59798
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$BFRLU4q2ZSE0037dPrCOZOsheY0dYmY27XxkwtwQ.t9sMNCItJvWW"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00]]
59799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59800
+  (0.0ms) SAVEPOINT active_record_1
59801
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59802
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59804
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
59805
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
59806
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-20 11:36:43 -0400
59807
+ Processing by Contour::SessionsController#create as HTML
59808
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
59809
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
59810
+  (0.1ms) SAVEPOINT active_record_1
59811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59812
+ Completed 401 Unauthorized in 6ms
59813
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-20 11:36:43 -0400
59814
+ Processing by Contour::SessionsController#new as HTML
59815
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
59816
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (2.5ms)
59817
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
59818
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.5ms)
59819
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.2ms)
59820
+ Completed 200 OK in 16ms (Views: 15.1ms | ActiveRecord: 0.0ms)
59821
+  (0.9ms) rollback transaction
59822
+ --------------------------------------------------------
59823
+ NavigationTest: test_friendly_url_forwarding_after_login
59824
+ --------------------------------------------------------
59825
+  (0.1ms) begin transaction
59826
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59827
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59828
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59829
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 11:36:43 -0400
59830
+ Processing by WelcomeController#logged_in_page as HTML
59831
+ Completed 401 Unauthorized in 1ms
59832
+  (0.1ms) SAVEPOINT active_record_1
59833
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
59834
+ Binary data inserted for `string` type on column `encrypted_password`
59835
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$wFwxzDME6TzfUlB41Gi6k.i8mpWg1hh3rVT.az6PHiNiwwUOeogsi"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00]]
59836
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59837
+  (0.0ms) SAVEPOINT active_record_1
59838
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59839
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59840
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59841
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
59842
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
59843
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-20 11:36:43 -0400
59844
+ Processing by Contour::SessionsController#create as HTML
59845
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
59846
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
59847
+  (0.1ms) SAVEPOINT active_record_1
59848
+ 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", Wed, 20 Mar 2013 15:36:43 UTC +00:00], ["current_sign_in_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00]]
59849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59850
+ Redirected to http://www.example.com/logged_in_page
59851
+ Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
59852
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 11:36:43 -0400
59853
+ Processing by WelcomeController#logged_in_page as HTML
59854
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
59855
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
59856
+  (0.8ms) rollback transaction
59857
+ --------------------------------------------------------------------
59858
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
59859
+ --------------------------------------------------------------------
59860
+  (0.1ms) begin transaction
59861
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59862
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59863
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59864
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-20 11:36:43 -0400
59865
+ Processing by WelcomeController#logged_in_page as HTML
59866
+ Completed 401 Unauthorized in 1ms
59867
+  (0.1ms) SAVEPOINT active_record_1
59868
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
59869
+ Binary data inserted for `string` type on column `encrypted_password`
59870
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$S.tDnhSHTXuSv/81/lGCRujWmoEaAH9Lzoz.4A.6hLcGEcnYbxl22"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00]]
59871
+  (0.1ms) RELEASE SAVEPOINT active_record_1
59872
+  (0.0ms) SAVEPOINT active_record_1
59873
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59874
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
59875
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59876
+ SQL (0.2ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
59877
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
59878
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-20 11:36:43 -0400
59879
+ Processing by Contour::SessionsController#create as HTML
59880
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
59881
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
59882
+  (0.0ms) SAVEPOINT active_record_1
59883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59884
+ Completed 401 Unauthorized in 5ms
59885
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-20 11:36:43 -0400
59886
+ Processing by Contour::SessionsController#new as HTML
59887
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
59888
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.3ms)
59889
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
59890
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
59891
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.4ms)
59892
+ Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.0ms)
59893
+  (0.9ms) rollback transaction
59894
+ -------------------------------------------------------------
59895
+ NavigationTest: test_root_navigation_redirected_to_login_page
59896
+ -------------------------------------------------------------
59897
+  (0.1ms) begin transaction
59898
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59899
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59900
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59901
+ Started GET "/" for 127.0.0.1 at 2013-03-20 11:36:43 -0400
59902
+ Processing by WelcomeController#index as HTML
59903
+ Completed 401 Unauthorized in 1ms
59904
+  (0.1ms) rollback transaction
59905
+ -------------------------------------------------------------------------
59906
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
59907
+ -------------------------------------------------------------------------
59908
+  (0.1ms) begin transaction
59909
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59910
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59911
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59912
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-20 11:36:43 -0400
59913
+ Processing by WelcomeController#logged_in_page as JSON
59914
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
59915
+  (0.1ms) SAVEPOINT active_record_1
59916
+ 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", Wed, 20 Mar 2013 15:36:43 UTC +00:00], ["current_sign_in_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Wed, 20 Mar 2013 15:36:43 UTC +00:00]]
59917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59918
+ Completed 200 OK in 78ms (Views: 0.2ms | ActiveRecord: 0.7ms)
59919
+  (0.7ms) rollback transaction
59920
+ ------------------------------------------------------------------------------------------------
59921
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
59922
+ ------------------------------------------------------------------------------------------------
59923
+  (0.1ms) begin transaction
59924
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59925
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
59926
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
59927
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-20 11:36:43 -0400
59928
+ Processing by WelcomeController#logged_in_page as JSON
59929
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
59930
+ Completed 401 Unauthorized in 74ms
59931
+  (0.1ms) rollback transaction
59932
+ ------------------------------------
59933
+ UserTest: test_should_apply_omniauth
59934
+ ------------------------------------
59935
+  (0.1ms) begin transaction
59936
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59937
+  (0.1ms) rollback transaction
59938
+ --------------------------------------
59939
+ UserTest: test_should_get_reverse_name
59940
+ --------------------------------------
59941
+  (0.0ms) begin transaction
59942
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
59943
+  (0.0ms) rollback transaction