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 +6 -14
- data/CHANGELOG.md +1 -0
- data/app/controllers/contour/registrations_controller.rb +19 -11
- data/lib/contour/version.rb +1 -1
- data/test/controllers/registrations_controller_test.rb +58 -4
- data/test/dummy/config/initializers/contour.rb +75 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +2048 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0b793dc498fe65856d1b31a805f114dc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7dc35794cccf84d6944cc09d139ad4ba +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/80ed46a41116cfc2f185fc7f5478c0f4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8c9648e885b8d874d9d989efeb044c36 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a7b222735fc6d94f5713fa8e4c00feec +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f47b8145ec07e458d6b81a369c688ff7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- metadata +17 -7
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
data/CHANGELOG.md
CHANGED
@@ -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(
|
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, :
|
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
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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
|
-
|
37
|
-
|
38
|
-
|
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
|
data/lib/contour/version.rb
CHANGED
@@ -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
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -57893,3 +57893,2051 @@ UserTest: test_should_get_reverse_name
|
|
57893
57893
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57894
57894
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57895
57895
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57896
|
+
-------------------------------------------------
|
57897
|
+
AuthenticationTest: test_should_get_provider_name
|
57898
|
+
-------------------------------------------------
|
57899
|
+
[1m[36m (4.7ms)[0m [1mbegin transaction[0m
|
57900
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "authentications"
|
57901
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 14:53:22', '2013-03-20 14:53:22', 949717663, 201799169)[0m
|
57902
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 14:53:22', '2013-03-20 14:53:22', 876923740, 201799169)
|
57903
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 14:53:22', '2013-03-20 14:53:22', 864673665, 201799169)[0m
|
57904
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
57905
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 14:53:22', '2013-03-20 14:53:22', 201799169)[0m
|
57906
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 14:53:22', '2013-03-20 14:53:22', 999914115)
|
57907
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 14:53:22', '2013-03-20 14:53:22', 725306934)[0m
|
57908
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 14:53:22', '2013-03-20 14:53:22', 349534908)
|
57909
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
57910
|
+
[1m[35m (0.0ms)[0m begin transaction
|
57911
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
57912
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
57913
|
+
--------------------------------------------------------------------------------
|
57914
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
57915
|
+
--------------------------------------------------------------------------------
|
57916
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57917
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
57918
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
57919
|
+
-------------------------------------------------------------------------
|
57920
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
57921
|
+
-------------------------------------------------------------------------
|
57922
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57923
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57924
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
57925
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
57929
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
57930
|
+
Logged in user found, creating associated authentication.
|
57931
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57932
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
57934
|
+
Redirected to http://test.host/authentications
|
57935
|
+
Completed 302 Found in 90ms (ActiveRecord: 1.1ms)
|
57936
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
57937
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
57938
|
+
--------------------------------------------------------------------------
|
57939
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
57940
|
+
--------------------------------------------------------------------------
|
57941
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57942
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57943
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
57944
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
57945
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
57946
|
+
Parameters: {"id"=>"949717663"}
|
57947
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
57948
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
57949
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
57950
|
+
[1m[35mSQL (11.8ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
57951
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57952
|
+
Redirected to http://test.host/authentications
|
57953
|
+
Completed 302 Found in 16ms (ActiveRecord: 12.3ms)
|
57954
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
57955
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
57956
|
+
-------------------------------------------------------------
|
57957
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
57958
|
+
-------------------------------------------------------------
|
57959
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57960
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57961
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
57962
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
57963
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
57964
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
57965
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
57970
|
+
-----------------------------------------------------------------------------
|
57971
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
57972
|
+
-----------------------------------------------------------------------------
|
57973
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57974
|
+
Processing by Contour::PasswordsController#create as HTML
|
57975
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
57976
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
57977
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'TYWqJDmb3pyTtoyS7B6D' LIMIT 1[0m
|
57978
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
57979
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
58006
|
+
-----------------------------------------------------------------------------
|
58007
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
58008
|
+
-----------------------------------------------------------------------------
|
58009
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58016
|
+
--------------------------------------------------------------------------------------------
|
58017
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58018
|
+
--------------------------------------------------------------------------------------------
|
58019
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58020
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58021
|
+
----------------------------------------------------------------------
|
58022
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
58023
|
+
----------------------------------------------------------------------
|
58024
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58025
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
58026
|
+
Processing by Contour::SessionsController#create as JSON
|
58027
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
58028
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
58029
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
58030
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58032
|
+
Completed 200 OK in 77ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
58033
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
58034
|
+
----------------------------------------------------------------------------------------------------------
|
58035
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
58036
|
+
----------------------------------------------------------------------------------------------------------
|
58037
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58038
|
+
Processing by Contour::SessionsController#create as HTML
|
58039
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
58040
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
|
58041
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'[0m
|
58042
|
+
Redirected to http://test.host/auth/google_apps
|
58043
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
58044
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58045
|
+
----------------------------------------------------------------------------------------------
|
58046
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
58047
|
+
----------------------------------------------------------------------------------------------
|
58048
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
58049
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
58053
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58057
|
+
--------------------------------------------------------------------------
|
58058
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
58059
|
+
--------------------------------------------------------------------------
|
58060
|
+
[1m[35m (0.0ms)[0m begin transaction
|
58061
|
+
Processing by Contour::SessionsController#create as HTML
|
58062
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
58063
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
58064
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58075
|
+
-----------------------------------------------------
|
58076
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
58077
|
+
-----------------------------------------------------
|
58078
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58079
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58080
|
+
---------------------------------------------------------------------
|
58081
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
58082
|
+
---------------------------------------------------------------------
|
58083
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58084
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58085
|
+
-----------------------
|
58086
|
+
ContourTest: test_truth
|
58087
|
+
-----------------------
|
58088
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58089
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58090
|
+
--------------------------------------------------------------------
|
58091
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
58092
|
+
--------------------------------------------------------------------
|
58093
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58094
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
58095
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
58096
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58101
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
58102
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58103
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58105
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58106
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
58107
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
58108
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58109
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
58110
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
58115
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
58116
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
58127
|
+
--------------------------------------------------------
|
58128
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
58129
|
+
--------------------------------------------------------
|
58130
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58131
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
58132
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
58133
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58138
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
58139
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58140
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58142
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
58143
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
58144
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
58145
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58146
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
58147
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
58152
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
58153
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
58162
|
+
--------------------------------------------------------------------
|
58163
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
58164
|
+
--------------------------------------------------------------------
|
58165
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58166
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
58167
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
58168
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58173
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
58174
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58175
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58177
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
58178
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
58179
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
58180
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58181
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
58182
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
58187
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
58188
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
58199
|
+
-------------------------------------------------------------
|
58200
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
58201
|
+
-------------------------------------------------------------
|
58202
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58203
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
58204
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
58205
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58210
|
+
-------------------------------------------------------------------------
|
58211
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
58212
|
+
-------------------------------------------------------------------------
|
58213
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58214
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
58215
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
58216
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
58220
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58221
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
58223
|
+
Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
58224
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
58225
|
+
------------------------------------------------------------------------------------------------
|
58226
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
58227
|
+
------------------------------------------------------------------------------------------------
|
58228
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58229
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
58230
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
58231
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
58235
|
+
Completed 401 Unauthorized in 75ms
|
58236
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58237
|
+
------------------------------------
|
58238
|
+
UserTest: test_should_apply_omniauth
|
58239
|
+
------------------------------------
|
58240
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58241
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
58242
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58243
|
+
--------------------------------------
|
58244
|
+
UserTest: test_should_get_reverse_name
|
58245
|
+
--------------------------------------
|
58246
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58247
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
58248
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
58249
|
+
--------------------------------------------------------------------------------------------
|
58250
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58251
|
+
--------------------------------------------------------------------------------------------
|
58252
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
58253
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "authentications"
|
58254
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
58255
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 14:54:14', '2013-03-20 14:54:14', 876923740, 201799169)
|
58256
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 14:54:14', '2013-03-20 14:54:14', 864673665, 201799169)[0m
|
58257
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58258
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 14:54:14', '2013-03-20 14:54:14', 201799169)[0m
|
58259
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 14:54:14', '2013-03-20 14:54:14', 999914115)
|
58260
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 14:54:14', '2013-03-20 14:54:14', 725306934)[0m
|
58261
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 14:54:14', '2013-03-20 14:54:14', 349534908)
|
58262
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
58263
|
+
[1m[35m (0.0ms)[0m begin transaction
|
58264
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58284
|
+
--------------------------------------------------------------------------------------------
|
58285
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58286
|
+
--------------------------------------------------------------------------------------------
|
58287
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
58288
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58289
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 14:54:26', '2013-03-20 14:54:26', 949717663, 201799169)[0m
|
58290
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 14:54:26', '2013-03-20 14:54:26', 876923740, 201799169)
|
58291
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 14:54:26', '2013-03-20 14:54:26', 864673665, 201799169)[0m
|
58292
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58293
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 14:54:26', '2013-03-20 14:54:26', 201799169)[0m
|
58294
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 14:54:26', '2013-03-20 14:54:26', 999914115)
|
58295
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 14:54:26', '2013-03-20 14:54:26', 725306934)[0m
|
58296
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 14:54:26', '2013-03-20 14:54:26', 349534908)
|
58297
|
+
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
58298
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58299
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58304
|
+
-------------------------------------------------------------------------------
|
58305
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
58306
|
+
-------------------------------------------------------------------------------
|
58307
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
58308
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58309
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
58310
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:02:33', '2013-03-20 15:02:33', 876923740, 201799169)
|
58311
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:02:33', '2013-03-20 15:02:33', 864673665, 201799169)[0m
|
58312
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58313
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:02:33', '2013-03-20 15:02:33', 201799169)[0m
|
58314
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:02:33', '2013-03-20 15:02:33', 999914115)
|
58315
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:02:33', '2013-03-20 15:02:33', 725306934)[0m
|
58316
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:02:33', '2013-03-20 15:02:33', 349534908)
|
58317
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
58318
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58319
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58324
|
+
----------------------------------------------------------------------------------------
|
58325
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up_via_JSON
|
58326
|
+
----------------------------------------------------------------------------------------
|
58327
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58328
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58333
|
+
--------------------------------------------------------------------------------------------
|
58334
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58335
|
+
--------------------------------------------------------------------------------------------
|
58336
|
+
[1m[35m (0.0ms)[0m begin transaction
|
58337
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58342
|
+
-------------------------------------------------------------------------------
|
58343
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
58344
|
+
-------------------------------------------------------------------------------
|
58345
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
58346
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58347
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:09:52', '2013-03-20 15:09:52', 949717663, 201799169)[0m
|
58348
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:09:52', '2013-03-20 15:09:52', 876923740, 201799169)
|
58349
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:09:52', '2013-03-20 15:09:52', 864673665, 201799169)[0m
|
58350
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58351
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:09:52', '2013-03-20 15:09:52', 201799169)[0m
|
58352
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:09:52', '2013-03-20 15:09:52', 999914115)
|
58353
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:09:52', '2013-03-20 15:09:52', 725306934)[0m
|
58354
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:09:52', '2013-03-20 15:09:52', 349534908)
|
58355
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
58356
|
+
[1m[35m (0.0ms)[0m begin transaction
|
58357
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58362
|
+
----------------------------------------------------------------------------------------
|
58363
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up_via_JSON
|
58364
|
+
----------------------------------------------------------------------------------------
|
58365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58366
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58371
|
+
--------------------------------------------------------------------------------------------
|
58372
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58373
|
+
--------------------------------------------------------------------------------------------
|
58374
|
+
[1m[35m (0.0ms)[0m begin transaction
|
58375
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58380
|
+
-------------------------------------------------------------------------------
|
58381
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
58382
|
+
-------------------------------------------------------------------------------
|
58383
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
58384
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58385
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:21:47', '2013-03-20 15:21:47', 949717663, 201799169)[0m
|
58386
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:21:47', '2013-03-20 15:21:47', 876923740, 201799169)
|
58387
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:21:47', '2013-03-20 15:21:47', 864673665, 201799169)[0m
|
58388
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58389
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:21:47', '2013-03-20 15:21:47', 201799169)[0m
|
58390
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:21:47', '2013-03-20 15:21:47', 999914115)
|
58391
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:21:47', '2013-03-20 15:21:47', 725306934)[0m
|
58392
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:21:47', '2013-03-20 15:21:47', 349534908)
|
58393
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
58394
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58395
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58400
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
58401
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58402
|
+
[1m[35mSQL (18.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58404
|
+
Redirected to http://test.host/users/login
|
58405
|
+
Completed 302 Found in 346ms (ActiveRecord: 0.0ms)
|
58406
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58407
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
58408
|
+
----------------------------------------------------------------------------------------
|
58409
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up_via_JSON
|
58410
|
+
----------------------------------------------------------------------------------------
|
58411
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58412
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58417
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user_json@example.com' LIMIT 1[0m
|
58418
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58419
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58421
|
+
Completed 406 Not Acceptable in 10ms
|
58422
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
58423
|
+
--------------------------------------------------------------------------------------------
|
58424
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58425
|
+
--------------------------------------------------------------------------------------------
|
58426
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58427
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
58432
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
58436
|
+
Redirected to http://test.host/users/login
|
58437
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
|
58438
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
58439
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
58440
|
+
-------------------------------------------------------------------------------
|
58441
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
58442
|
+
-------------------------------------------------------------------------------
|
58443
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
58444
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58445
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:22:24', '2013-03-20 15:22:24', 949717663, 201799169)[0m
|
58446
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:22:24', '2013-03-20 15:22:24', 876923740, 201799169)
|
58447
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:22:24', '2013-03-20 15:22:24', 864673665, 201799169)[0m
|
58448
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58449
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:22:24', '2013-03-20 15:22:24', 201799169)[0m
|
58450
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:22:24', '2013-03-20 15:22:24', 999914115)
|
58451
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:22:24', '2013-03-20 15:22:24', 725306934)[0m
|
58452
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:22:24', '2013-03-20 15:22:24', 349534908)
|
58453
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
58454
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58455
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58460
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
58461
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58462
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58464
|
+
Redirected to http://test.host/users/login
|
58465
|
+
Completed 302 Found in 119ms (ActiveRecord: 0.0ms)
|
58466
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58467
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
58468
|
+
--------------------------------------------------------------------------------------------
|
58469
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58470
|
+
--------------------------------------------------------------------------------------------
|
58471
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58472
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58477
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
58478
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58479
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58481
|
+
Redirected to http://test.host/users/login
|
58482
|
+
Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
|
58483
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58484
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
58485
|
+
-------------------------------------------------------------------------------
|
58486
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
58487
|
+
-------------------------------------------------------------------------------
|
58488
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
58489
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58490
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
58491
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:22:46', '2013-03-20 15:22:46', 876923740, 201799169)
|
58492
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:22:46', '2013-03-20 15:22:46', 864673665, 201799169)[0m
|
58493
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58494
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:22:46', '2013-03-20 15:22:46', 201799169)[0m
|
58495
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:22:46', '2013-03-20 15:22:46', 999914115)
|
58496
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:22:46', '2013-03-20 15:22:46', 725306934)[0m
|
58497
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:22:46', '2013-03-20 15:22:46', 349534908)
|
58498
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
58499
|
+
[1m[35m (0.0ms)[0m begin transaction
|
58500
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58506
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
58507
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58508
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58510
|
+
Redirected to http://test.host/users/login
|
58511
|
+
Completed 302 Found in 126ms (ActiveRecord: 0.0ms)
|
58512
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58513
|
+
[1m[36m (10.2ms)[0m [1mrollback transaction[0m
|
58514
|
+
--------------------------------------------------------------------------------------------
|
58515
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58516
|
+
--------------------------------------------------------------------------------------------
|
58517
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58518
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58524
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
58525
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58526
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58528
|
+
Redirected to http://test.host/users/login
|
58529
|
+
Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
|
58530
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58531
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
58532
|
+
-------------------------------------------------------------------------------
|
58533
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
58534
|
+
-------------------------------------------------------------------------------
|
58535
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
58536
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58537
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
58538
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:23:59', '2013-03-20 15:23:59', 876923740, 201799169)
|
58539
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:23:59', '2013-03-20 15:23:59', 864673665, 201799169)[0m
|
58540
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58541
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:23:59', '2013-03-20 15:23:59', 201799169)[0m
|
58542
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:23:59', '2013-03-20 15:23:59', 999914115)
|
58543
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:23:59', '2013-03-20 15:23:59', 725306934)[0m
|
58544
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:23:59', '2013-03-20 15:23:59', 349534908)
|
58545
|
+
[1m[36m (3.1ms)[0m [1mcommit transaction[0m
|
58546
|
+
[1m[35m (0.0ms)[0m begin transaction
|
58547
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58551
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
58552
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58553
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58555
|
+
Redirected to http://test.host/users/login
|
58556
|
+
Completed 302 Found in 120ms (ActiveRecord: 0.0ms)
|
58557
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58558
|
+
[1m[36m (14.8ms)[0m [1mrollback transaction[0m
|
58559
|
+
--------------------------------------------------------------------------------------------
|
58560
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58561
|
+
--------------------------------------------------------------------------------------------
|
58562
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58563
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58569
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
58570
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58571
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58573
|
+
Redirected to http://test.host/users/login
|
58574
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
|
58575
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58576
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
58577
|
+
-------------------------------------------------------------------------------
|
58578
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
58579
|
+
-------------------------------------------------------------------------------
|
58580
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
58581
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58582
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
58583
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:25:18', '2013-03-20 15:25:18', 876923740, 201799169)
|
58584
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:25:18', '2013-03-20 15:25:18', 864673665, 201799169)[0m
|
58585
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58586
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:25:18', '2013-03-20 15:25:18', 201799169)[0m
|
58587
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:25:18', '2013-03-20 15:25:18', 999914115)
|
58588
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:25:18', '2013-03-20 15:25:18', 725306934)[0m
|
58589
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:25:18', '2013-03-20 15:25:18', 349534908)
|
58590
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
58591
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58592
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58596
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
58597
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58598
|
+
[1m[35mSQL (1.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58600
|
+
Redirected to http://test.host/users/login
|
58601
|
+
Completed 302 Found in 122ms (ActiveRecord: 0.0ms)
|
58602
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58603
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
58604
|
+
--------------------------------------------------------------------------------------------
|
58605
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58606
|
+
--------------------------------------------------------------------------------------------
|
58607
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58608
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58614
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
58615
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58616
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58618
|
+
Redirected to http://test.host/users/login
|
58619
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
|
58620
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58621
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
58622
|
+
-------------------------------------------------------------------------------
|
58623
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
58624
|
+
-------------------------------------------------------------------------------
|
58625
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
58626
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58627
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:25:38', '2013-03-20 15:25:38', 949717663, 201799169)[0m
|
58628
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:25:38', '2013-03-20 15:25:38', 876923740, 201799169)
|
58629
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:25:38', '2013-03-20 15:25:38', 864673665, 201799169)[0m
|
58630
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58631
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:25:38', '2013-03-20 15:25:38', 201799169)[0m
|
58632
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:25:38', '2013-03-20 15:25:38', 999914115)
|
58633
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:25:38', '2013-03-20 15:25:38', 725306934)[0m
|
58634
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:25:38', '2013-03-20 15:25:38', 349534908)
|
58635
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
58636
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58637
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58641
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
58642
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58643
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58645
|
+
Redirected to http://test.host/users/login
|
58646
|
+
Completed 302 Found in 120ms (ActiveRecord: 0.0ms)
|
58647
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58648
|
+
[1m[36m (15.3ms)[0m [1mrollback transaction[0m
|
58649
|
+
--------------------------------------------------------------------------------------------
|
58650
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58651
|
+
--------------------------------------------------------------------------------------------
|
58652
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58653
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58659
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
58660
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58661
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58663
|
+
Redirected to http://test.host/users/login
|
58664
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
|
58665
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58666
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
58667
|
+
-------------------------------------------------------------------------------
|
58668
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
58669
|
+
-------------------------------------------------------------------------------
|
58670
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
58671
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58672
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
58673
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:26:27', '2013-03-20 15:26:27', 876923740, 201799169)
|
58674
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:26:27', '2013-03-20 15:26:27', 864673665, 201799169)[0m
|
58675
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58676
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:26:27', '2013-03-20 15:26:27', 201799169)[0m
|
58677
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:26:27', '2013-03-20 15:26:27', 999914115)
|
58678
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:26:27', '2013-03-20 15:26:27', 725306934)[0m
|
58679
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:26:27', '2013-03-20 15:26:27', 349534908)
|
58680
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
58681
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58682
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58686
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
58687
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58688
|
+
[1m[35mSQL (1.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58690
|
+
Redirected to http://test.host/users/login
|
58691
|
+
Completed 302 Found in 128ms (ActiveRecord: 0.0ms)
|
58692
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58693
|
+
[1m[36m (9.9ms)[0m [1mrollback transaction[0m
|
58694
|
+
--------------------------------------------------------------------------------------------
|
58695
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58696
|
+
--------------------------------------------------------------------------------------------
|
58697
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58698
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58704
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
58705
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58706
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58708
|
+
Redirected to http://test.host/users/login
|
58709
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
|
58710
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58711
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
58712
|
+
-------------------------------------------------------------------------------
|
58713
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
58714
|
+
-------------------------------------------------------------------------------
|
58715
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
58716
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58717
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
58718
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:27:02', '2013-03-20 15:27:02', 876923740, 201799169)
|
58719
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:27:02', '2013-03-20 15:27:02', 864673665, 201799169)[0m
|
58720
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58721
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:27:03', '2013-03-20 15:27:03', 201799169)[0m
|
58722
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:27:03', '2013-03-20 15:27:03', 999914115)
|
58723
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:27:03', '2013-03-20 15:27:03', 725306934)[0m
|
58724
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:27:03', '2013-03-20 15:27:03', 349534908)
|
58725
|
+
[1m[36m (28.5ms)[0m [1mcommit transaction[0m
|
58726
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58727
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58731
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
58732
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58733
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58735
|
+
Redirected to http://test.host/users/login
|
58736
|
+
Completed 302 Found in 127ms (ActiveRecord: 0.0ms)
|
58737
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58738
|
+
[1m[36m (10.7ms)[0m [1mrollback transaction[0m
|
58739
|
+
--------------------------------------------------------------------------------------------
|
58740
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58741
|
+
--------------------------------------------------------------------------------------------
|
58742
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58743
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58749
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
58750
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58751
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58753
|
+
Redirected to http://test.host/users/login
|
58754
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
|
58755
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58756
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
58757
|
+
-------------------------------------------------------------------------------
|
58758
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
58759
|
+
-------------------------------------------------------------------------------
|
58760
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
58761
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58762
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:27:33', '2013-03-20 15:27:33', 949717663, 201799169)[0m
|
58763
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:27:33', '2013-03-20 15:27:33', 876923740, 201799169)
|
58764
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:27:33', '2013-03-20 15:27:33', 864673665, 201799169)[0m
|
58765
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
58766
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:27:33', '2013-03-20 15:27:33', 201799169)[0m
|
58767
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:27:33', '2013-03-20 15:27:33', 999914115)
|
58768
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:27:33', '2013-03-20 15:27:33', 725306934)[0m
|
58769
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:27:33', '2013-03-20 15:27:33', 349534908)
|
58770
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
58771
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58772
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58776
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
58777
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58778
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58780
|
+
Redirected to http://test.host/users/login
|
58781
|
+
Completed 302 Found in 117ms (ActiveRecord: 0.0ms)
|
58782
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58783
|
+
[1m[36m (10.5ms)[0m [1mrollback transaction[0m
|
58784
|
+
--------------------------------------------------------------------------------------------
|
58785
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58786
|
+
--------------------------------------------------------------------------------------------
|
58787
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58788
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58793
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
58794
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58795
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58797
|
+
Redirected to http://test.host/users/login
|
58798
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
|
58799
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58800
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
58801
|
+
-------------------------------------------------
|
58802
|
+
AuthenticationTest: test_should_get_provider_name
|
58803
|
+
-------------------------------------------------
|
58804
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
58805
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
58806
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
58807
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:27:44', '2013-03-20 15:27:44', 876923740, 201799169)
|
58808
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:27:44', '2013-03-20 15:27:44', 864673665, 201799169)[0m
|
58809
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
58810
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:27:44', '2013-03-20 15:27:44', 201799169)[0m
|
58811
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:27:44', '2013-03-20 15:27:44', 999914115)
|
58812
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:27:44', '2013-03-20 15:27:44', 725306934)[0m
|
58813
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:27:44', '2013-03-20 15:27:44', 349534908)
|
58814
|
+
[1m[36m (21.6ms)[0m [1mcommit transaction[0m
|
58815
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58816
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
58817
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58818
|
+
--------------------------------------------------------------------------------
|
58819
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
58820
|
+
--------------------------------------------------------------------------------
|
58821
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58822
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
58823
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58824
|
+
-------------------------------------------------------------------------
|
58825
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
58826
|
+
-------------------------------------------------------------------------
|
58827
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58828
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
58829
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
58830
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
58834
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
58835
|
+
Logged in user found, creating associated authentication.
|
58836
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58837
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
58839
|
+
Redirected to http://test.host/authentications
|
58840
|
+
Completed 302 Found in 65ms (ActiveRecord: 1.0ms)
|
58841
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
58842
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
58843
|
+
--------------------------------------------------------------------------
|
58844
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
58845
|
+
--------------------------------------------------------------------------
|
58846
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58847
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
58848
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
58849
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
58850
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
58851
|
+
Parameters: {"id"=>"949717663"}
|
58852
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
58853
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
58854
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
58855
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
58856
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58857
|
+
Redirected to http://test.host/authentications
|
58858
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
|
58859
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
58860
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
58861
|
+
-------------------------------------------------------------
|
58862
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
58863
|
+
-------------------------------------------------------------
|
58864
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58865
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
58866
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
58867
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
58868
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
58869
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
58870
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58875
|
+
-----------------------------------------------------------------------------
|
58876
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
58877
|
+
-----------------------------------------------------------------------------
|
58878
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58879
|
+
Processing by Contour::PasswordsController#create as HTML
|
58880
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
58881
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
58882
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'daRr4yLxtKK6osXu8Pky' LIMIT 1[0m
|
58883
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58884
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
58911
|
+
-----------------------------------------------------------------------------
|
58912
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
58913
|
+
-----------------------------------------------------------------------------
|
58914
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58921
|
+
-------------------------------------------------------------------------------
|
58922
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
58923
|
+
-------------------------------------------------------------------------------
|
58924
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58925
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58929
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
58930
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58931
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58933
|
+
Redirected to http://test.host/users/login
|
58934
|
+
Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
|
58935
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58936
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
58937
|
+
--------------------------------------------------------------------------------------------
|
58938
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
58939
|
+
--------------------------------------------------------------------------------------------
|
58940
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58941
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58946
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
58947
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
58948
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58950
|
+
Redirected to http://test.host/users/login
|
58951
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
|
58952
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
58953
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
58954
|
+
----------------------------------------------------------------------
|
58955
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
58956
|
+
----------------------------------------------------------------------
|
58957
|
+
[1m[35m (0.1ms)[0m begin transaction
|
58958
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
58959
|
+
Processing by Contour::SessionsController#create as JSON
|
58960
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
58961
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
58962
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
58963
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
58965
|
+
Completed 200 OK in 79ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
58966
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
58967
|
+
----------------------------------------------------------------------------------------------------------
|
58968
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
58969
|
+
----------------------------------------------------------------------------------------------------------
|
58970
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58971
|
+
Processing by Contour::SessionsController#create as HTML
|
58972
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
58973
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
|
58974
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'[0m
|
58975
|
+
Redirected to http://test.host/auth/google_apps
|
58976
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
58977
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
58978
|
+
----------------------------------------------------------------------------------------------
|
58979
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
58980
|
+
----------------------------------------------------------------------------------------------
|
58981
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
58982
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
58986
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58990
|
+
--------------------------------------------------------------------------
|
58991
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
58992
|
+
--------------------------------------------------------------------------
|
58993
|
+
[1m[35m (0.0ms)[0m begin transaction
|
58994
|
+
Processing by Contour::SessionsController#create as HTML
|
58995
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
58996
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
58997
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59008
|
+
-----------------------------------------------------
|
59009
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
59010
|
+
-----------------------------------------------------
|
59011
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59012
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59013
|
+
---------------------------------------------------------------------
|
59014
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
59015
|
+
---------------------------------------------------------------------
|
59016
|
+
[1m[35m (0.0ms)[0m begin transaction
|
59017
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59018
|
+
-----------------------
|
59019
|
+
ContourTest: test_truth
|
59020
|
+
-----------------------
|
59021
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59022
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
59023
|
+
--------------------------------------------------------------------
|
59024
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
59025
|
+
--------------------------------------------------------------------
|
59026
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59027
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59028
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59029
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59034
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
59035
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59036
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59038
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
59039
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
59040
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
59041
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59042
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
59043
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
59048
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59049
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
59060
|
+
--------------------------------------------------------
|
59061
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
59062
|
+
--------------------------------------------------------
|
59063
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59064
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59065
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59066
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59071
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
59072
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59073
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59075
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
59076
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
59077
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
59078
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59079
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
59080
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
59085
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59086
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
59095
|
+
--------------------------------------------------------------------
|
59096
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
59097
|
+
--------------------------------------------------------------------
|
59098
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59099
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59100
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59101
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59106
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
59107
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59108
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59110
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
59111
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
59112
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
59113
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59114
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
59115
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
59120
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59121
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
59132
|
+
-------------------------------------------------------------
|
59133
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
59134
|
+
-------------------------------------------------------------
|
59135
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59136
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59137
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59138
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59143
|
+
-------------------------------------------------------------------------
|
59144
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
59145
|
+
-------------------------------------------------------------------------
|
59146
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
59147
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
59148
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
59149
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
59153
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59154
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
59156
|
+
Completed 200 OK in 80ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
59157
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
59158
|
+
------------------------------------------------------------------------------------------------
|
59159
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
59160
|
+
------------------------------------------------------------------------------------------------
|
59161
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59162
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59163
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59164
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
59168
|
+
Completed 401 Unauthorized in 76ms
|
59169
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59170
|
+
------------------------------------
|
59171
|
+
UserTest: test_should_apply_omniauth
|
59172
|
+
------------------------------------
|
59173
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59174
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59175
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59176
|
+
--------------------------------------
|
59177
|
+
UserTest: test_should_get_reverse_name
|
59178
|
+
--------------------------------------
|
59179
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
59180
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
59181
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
59182
|
+
-------------------------------------------------
|
59183
|
+
AuthenticationTest: test_should_get_provider_name
|
59184
|
+
-------------------------------------------------
|
59185
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
59186
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
59187
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
59188
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:29:39', '2013-03-20 15:29:39', 876923740, 201799169)
|
59189
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:29:39', '2013-03-20 15:29:39', 864673665, 201799169)[0m
|
59190
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
59191
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:29:39', '2013-03-20 15:29:39', 201799169)[0m
|
59192
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:29:39', '2013-03-20 15:29:39', 999914115)
|
59193
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:29:39', '2013-03-20 15:29:39', 725306934)[0m
|
59194
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:29:39', '2013-03-20 15:29:39', 349534908)
|
59195
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
59196
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59197
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
59198
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59199
|
+
--------------------------------------------------------------------------------
|
59200
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
59201
|
+
--------------------------------------------------------------------------------
|
59202
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59203
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
59204
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59205
|
+
-------------------------------------------------------------------------
|
59206
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
59207
|
+
-------------------------------------------------------------------------
|
59208
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59209
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59210
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
59211
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
59215
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
59216
|
+
Logged in user found, creating associated authentication.
|
59217
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59218
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
59220
|
+
Redirected to http://test.host/authentications
|
59221
|
+
Completed 302 Found in 16ms (ActiveRecord: 0.8ms)
|
59222
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
59223
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
59224
|
+
--------------------------------------------------------------------------
|
59225
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
59226
|
+
--------------------------------------------------------------------------
|
59227
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59228
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
59229
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
59230
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
59231
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
59232
|
+
Parameters: {"id"=>"949717663"}
|
59233
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
59234
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
59235
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
59236
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
59237
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59238
|
+
Redirected to http://test.host/authentications
|
59239
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
|
59240
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
59241
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
59242
|
+
-------------------------------------------------------------
|
59243
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
59244
|
+
-------------------------------------------------------------
|
59245
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59246
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59247
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
59248
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
59249
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
59250
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
59251
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59256
|
+
-----------------------------------------------------------------------------
|
59257
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
59258
|
+
-----------------------------------------------------------------------------
|
59259
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59260
|
+
Processing by Contour::PasswordsController#create as HTML
|
59261
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
59262
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
59263
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'CMURkJ2wrXPSEStxjFvV' LIMIT 1[0m
|
59264
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
59265
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (37.2ms)[0m [1mrollback transaction[0m
|
59292
|
+
-----------------------------------------------------------------------------
|
59293
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
59294
|
+
-----------------------------------------------------------------------------
|
59295
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59302
|
+
-------------------------------------------------------------------------------
|
59303
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
59304
|
+
-------------------------------------------------------------------------------
|
59305
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59306
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59310
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
59311
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59312
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59314
|
+
Redirected to http://test.host/users/login
|
59315
|
+
Completed 302 Found in 54ms (ActiveRecord: 0.0ms)
|
59316
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
59317
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
59318
|
+
--------------------------------------------------------------------------------------------
|
59319
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
59320
|
+
--------------------------------------------------------------------------------------------
|
59321
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59322
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59327
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
59328
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59329
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59331
|
+
Redirected to http://test.host/users/login
|
59332
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
|
59333
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
59334
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
59335
|
+
----------------------------------------------------------------------
|
59336
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
59337
|
+
----------------------------------------------------------------------
|
59338
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59339
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59340
|
+
Processing by Contour::SessionsController#create as JSON
|
59341
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
59342
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
59343
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59344
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59346
|
+
Completed 200 OK in 77ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
59347
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
59348
|
+
----------------------------------------------------------------------------------------------------------
|
59349
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
59350
|
+
----------------------------------------------------------------------------------------------------------
|
59351
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59352
|
+
Processing by Contour::SessionsController#create as HTML
|
59353
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
59354
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
|
59355
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'[0m
|
59356
|
+
Redirected to http://test.host/auth/google_apps
|
59357
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
59358
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59359
|
+
----------------------------------------------------------------------------------------------
|
59360
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
59361
|
+
----------------------------------------------------------------------------------------------
|
59362
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
59363
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
59367
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59371
|
+
--------------------------------------------------------------------------
|
59372
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
59373
|
+
--------------------------------------------------------------------------
|
59374
|
+
[1m[35m (0.0ms)[0m begin transaction
|
59375
|
+
Processing by Contour::SessionsController#create as HTML
|
59376
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
59377
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
59378
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59389
|
+
-----------------------------------------------------
|
59390
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
59391
|
+
-----------------------------------------------------
|
59392
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59393
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59394
|
+
---------------------------------------------------------------------
|
59395
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
59396
|
+
---------------------------------------------------------------------
|
59397
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59398
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59399
|
+
-----------------------
|
59400
|
+
ContourTest: test_truth
|
59401
|
+
-----------------------
|
59402
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59403
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59404
|
+
--------------------------------------------------------------------
|
59405
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
59406
|
+
--------------------------------------------------------------------
|
59407
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59408
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59409
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59410
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59415
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
59416
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59417
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59419
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
59420
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
59421
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
59422
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59423
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
59424
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
59429
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59430
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
59441
|
+
--------------------------------------------------------
|
59442
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
59443
|
+
--------------------------------------------------------
|
59444
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59445
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59446
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59447
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59452
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
59453
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59454
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59456
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
59457
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
59458
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
59459
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59460
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
59461
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
59466
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59467
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.3ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
59476
|
+
--------------------------------------------------------------------
|
59477
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
59478
|
+
--------------------------------------------------------------------
|
59479
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59480
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59481
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59482
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59487
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
59488
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59489
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59491
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
59492
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
59493
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
59494
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59495
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
59496
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
59501
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59502
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
59513
|
+
-------------------------------------------------------------
|
59514
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
59515
|
+
-------------------------------------------------------------
|
59516
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59517
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59518
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59519
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59524
|
+
-------------------------------------------------------------------------
|
59525
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
59526
|
+
-------------------------------------------------------------------------
|
59527
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59528
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
59529
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
59530
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
59534
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59535
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", 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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59537
|
+
Completed 200 OK in 81ms (Views: 0.2ms | ActiveRecord: 0.8ms)
|
59538
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
59539
|
+
------------------------------------------------------------------------------------------------
|
59540
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
59541
|
+
------------------------------------------------------------------------------------------------
|
59542
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59543
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59544
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59545
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
59549
|
+
Completed 401 Unauthorized in 78ms
|
59550
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59551
|
+
------------------------------------
|
59552
|
+
UserTest: test_should_apply_omniauth
|
59553
|
+
------------------------------------
|
59554
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59555
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59556
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59557
|
+
--------------------------------------
|
59558
|
+
UserTest: test_should_get_reverse_name
|
59559
|
+
--------------------------------------
|
59560
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59561
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
59562
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59563
|
+
-------------------------------------------------
|
59564
|
+
AuthenticationTest: test_should_get_provider_name
|
59565
|
+
-------------------------------------------------
|
59566
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
59567
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
59568
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-20 15:36:42', '2013-03-20 15:36:42', 949717663, 201799169)[0m
|
59569
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-20 15:36:42', '2013-03-20 15:36:42', 876923740, 201799169)
|
59570
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-20 15:36:42', '2013-03-20 15:36:42', 864673665, 201799169)[0m
|
59571
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
59572
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:36:42', '2013-03-20 15:36:42', 201799169)[0m
|
59573
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-20 15:36:42', '2013-03-20 15:36:42', 999914115)
|
59574
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:36:42', '2013-03-20 15:36:42', 725306934)[0m
|
59575
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-20 15:36:42', '2013-03-20 15:36:42', 349534908)
|
59576
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
59577
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59578
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
59579
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59580
|
+
--------------------------------------------------------------------------------
|
59581
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
59582
|
+
--------------------------------------------------------------------------------
|
59583
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59584
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
59585
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59586
|
+
-------------------------------------------------------------------------
|
59587
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
59588
|
+
-------------------------------------------------------------------------
|
59589
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59590
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59591
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
59592
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
59596
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
59597
|
+
Logged in user found, creating associated authentication.
|
59598
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59599
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
59601
|
+
Redirected to http://test.host/authentications
|
59602
|
+
Completed 302 Found in 57ms (ActiveRecord: 0.8ms)
|
59603
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
59604
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
59605
|
+
--------------------------------------------------------------------------
|
59606
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
59607
|
+
--------------------------------------------------------------------------
|
59608
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59609
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
59610
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
59611
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
59612
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
59613
|
+
Parameters: {"id"=>"949717663"}
|
59614
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
59615
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
59616
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
59617
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
59618
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59619
|
+
Redirected to http://test.host/authentications
|
59620
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
|
59621
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
59622
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
59623
|
+
-------------------------------------------------------------
|
59624
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
59625
|
+
-------------------------------------------------------------
|
59626
|
+
[1m[35m (0.0ms)[0m begin transaction
|
59627
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59628
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
59629
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
59630
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
59631
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
59632
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59637
|
+
-----------------------------------------------------------------------------
|
59638
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
59639
|
+
-----------------------------------------------------------------------------
|
59640
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59641
|
+
Processing by Contour::PasswordsController#create as HTML
|
59642
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
59643
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
59644
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '1cEsYy35xurwCaiHDHyy' LIMIT 1[0m
|
59645
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
59646
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
59673
|
+
-----------------------------------------------------------------------------
|
59674
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
59675
|
+
-----------------------------------------------------------------------------
|
59676
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59683
|
+
-------------------------------------------------------------------------------
|
59684
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
|
59685
|
+
-------------------------------------------------------------------------------
|
59686
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59687
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59691
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1[0m
|
59692
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59693
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59695
|
+
Redirected to http://test.host/users/login
|
59696
|
+
Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
|
59697
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
59698
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
59699
|
+
--------------------------------------------------------------------------------------------
|
59700
|
+
Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
|
59701
|
+
--------------------------------------------------------------------------------------------
|
59702
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59703
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59708
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1[0m
|
59709
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59710
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59712
|
+
Redirected to http://test.host/users/login
|
59713
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
|
59714
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
59715
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
59716
|
+
----------------------------------------------------------------------
|
59717
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
59718
|
+
----------------------------------------------------------------------
|
59719
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59720
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59721
|
+
Processing by Contour::SessionsController#create as JSON
|
59722
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
59723
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
59724
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59725
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59727
|
+
Completed 200 OK in 77ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
59728
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
59729
|
+
----------------------------------------------------------------------------------------------------------
|
59730
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
59731
|
+
----------------------------------------------------------------------------------------------------------
|
59732
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59733
|
+
Processing by Contour::SessionsController#create as HTML
|
59734
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
59735
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
|
59736
|
+
[1m[36m (0.1ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'[0m
|
59737
|
+
Redirected to http://test.host/auth/google_apps
|
59738
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
59739
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59740
|
+
----------------------------------------------------------------------------------------------
|
59741
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
59742
|
+
----------------------------------------------------------------------------------------------
|
59743
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59744
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
59748
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59752
|
+
--------------------------------------------------------------------------
|
59753
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
59754
|
+
--------------------------------------------------------------------------
|
59755
|
+
[1m[35m (0.0ms)[0m begin transaction
|
59756
|
+
Processing by Contour::SessionsController#create as HTML
|
59757
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
59758
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
59759
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59770
|
+
-----------------------------------------------------
|
59771
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
59772
|
+
-----------------------------------------------------
|
59773
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59774
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59775
|
+
---------------------------------------------------------------------
|
59776
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
59777
|
+
---------------------------------------------------------------------
|
59778
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59779
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
59780
|
+
-----------------------
|
59781
|
+
ContourTest: test_truth
|
59782
|
+
-----------------------
|
59783
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59784
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
59785
|
+
--------------------------------------------------------------------
|
59786
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
59787
|
+
--------------------------------------------------------------------
|
59788
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59789
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59790
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59791
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59796
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
59797
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59798
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59800
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
59801
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
59802
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
59803
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59804
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
59805
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
59810
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59811
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
59822
|
+
--------------------------------------------------------
|
59823
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
59824
|
+
--------------------------------------------------------
|
59825
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59826
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59827
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59828
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59833
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
59834
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59835
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59837
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
59838
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
59839
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
59840
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59841
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
59842
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
59847
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
59848
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
59857
|
+
--------------------------------------------------------------------
|
59858
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
59859
|
+
--------------------------------------------------------------------
|
59860
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59861
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59862
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59863
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59868
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
59869
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
59870
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59872
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
59873
|
+
[1m[36mAuthentication Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
59874
|
+
[1m[35mAuthentication Exists (0.0ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
59875
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59876
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
59877
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
59882
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
59883
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
59894
|
+
-------------------------------------------------------------
|
59895
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
59896
|
+
-------------------------------------------------------------
|
59897
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59898
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59899
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59900
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59905
|
+
-------------------------------------------------------------------------
|
59906
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
59907
|
+
-------------------------------------------------------------------------
|
59908
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
59909
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
59910
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
59911
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
59915
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
59916
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", 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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
59918
|
+
Completed 200 OK in 78ms (Views: 0.2ms | ActiveRecord: 0.7ms)
|
59919
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
59920
|
+
------------------------------------------------------------------------------------------------
|
59921
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
59922
|
+
------------------------------------------------------------------------------------------------
|
59923
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59924
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59925
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
59926
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
59930
|
+
Completed 401 Unauthorized in 74ms
|
59931
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
59932
|
+
------------------------------------
|
59933
|
+
UserTest: test_should_apply_omniauth
|
59934
|
+
------------------------------------
|
59935
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59936
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
59937
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59938
|
+
--------------------------------------
|
59939
|
+
UserTest: test_should_get_reverse_name
|
59940
|
+
--------------------------------------
|
59941
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
59942
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
59943
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|