contour 2.0.0.beta.1 → 2.0.0.beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/app/controllers/contour/sessions_controller.rb +1 -1
- data/lib/contour/version.rb +1 -1
- data/test/controllers/sessions_controller_test.rb +42 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +3825 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDk3MDAwMmM4ZjEyMDYyYzk5NzJhYTdmMjNmZGQ1NzBjM2U3OTE1Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDRmYzdiMjEwYmEwZGZkNzk3ZTkxYTBjMDQwNDY0OTYxZmJhNjNlYg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGRhY2ZkYmY2M2IyOWRmZTMyMjU4YjRlNWU0ZmMyZGMyNjcwYWI5N2E2ZmUx
|
10
|
+
MzJiYWRjN2VjZGY5YzMxYWViYTNjMzc4M2M3M2NjNTgxYzMxZTc4M2UyYWVh
|
11
|
+
MjQ3NjFhMTU5ODVkOWY2OGYyOGQyMzc2NGRkNDJmOTM0Zjk4MzA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzFjNjI1Njg1NDljMjI1M2NhMzFlNzE5YTY1NDdjZDBmM2M4Y2M2MWRhN2Ri
|
14
|
+
ZWRlZDYxZmFlNTBhOTU1YjQxYzFiOWQ5ZmRmZGUxMjE0NWRiNjdiNjhiZDFj
|
15
|
+
YTEyZjgzMjM4NDE5YzkyYTk1ZGQ4YmVjMzEwMzFiNGQ3YTdhYjA=
|
@@ -31,7 +31,7 @@ class Contour::SessionsController < Devise::SessionsController
|
|
31
31
|
|
32
32
|
respond_to do |format|
|
33
33
|
format.html { respond_with resource, location: after_sign_in_path_for(resource) }
|
34
|
-
format.json { render json: { success: true,
|
34
|
+
format.json { render json: { success: true, resource_name => { id: resource.id, email: resource.email, first_name: resource.first_name, last_name: resource.last_name, authentication_token: (resource.respond_to?(:authentication_token) ? resource.authentication_token : nil) } } }
|
35
35
|
end
|
36
36
|
else
|
37
37
|
resource = resource_name.to_s.titleize.constantize.find_by_email(params[resource_name][:email])
|
data/lib/contour/version.rb
CHANGED
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class Contour::SessionsControllerTest < ActionController::TestCase
|
4
|
+
|
5
|
+
setup do
|
6
|
+
request.env["devise.mapping"] = Devise.mappings[:user]
|
7
|
+
end
|
8
|
+
|
9
|
+
test "return user json object on login" do
|
10
|
+
post :create, user: { email: users(:valid).email, password: 'password' }, format: 'json'
|
11
|
+
|
12
|
+
object = JSON.parse(@response.body)
|
13
|
+
assert_equal true, object['success']
|
14
|
+
assert_equal users(:valid).id, object['user']['id']
|
15
|
+
assert_equal 'FirstName', object['user']['first_name']
|
16
|
+
assert_equal 'LastName', object['user']['last_name']
|
17
|
+
assert_equal 'valid@example.com', object['user']['email']
|
18
|
+
assert object['user'].keys.include?('authentication_token')
|
19
|
+
|
20
|
+
|
21
|
+
assert_response :success
|
22
|
+
end
|
23
|
+
|
24
|
+
test "should do a graceful redirect to ldap with primary email" do
|
25
|
+
post :create, user: { email: users(:valid).email, password: '' }
|
26
|
+
|
27
|
+
assert_redirected_to '/auth/ldap'
|
28
|
+
end
|
29
|
+
|
30
|
+
test "should do a graceful redirect to google_apps through secondary email" do
|
31
|
+
post :create, user: { email: 'test@gmail.com', password: '' }
|
32
|
+
|
33
|
+
assert_redirected_to '/auth/google_apps'
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should not login invalid credentials" do
|
37
|
+
post :create, user: { email: '', password: '' }
|
38
|
+
|
39
|
+
assert_response :success
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -54068,3 +54068,3828 @@ UserTest: test_should_get_reverse_name
|
|
54068
54068
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54069
54069
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54070
54070
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54071
|
+
-------------------------------------------------
|
54072
|
+
AuthenticationTest: test_should_get_provider_name
|
54073
|
+
-------------------------------------------------
|
54074
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
54075
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "authentications"
|
54076
|
+
[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-07 15:11:54', '2013-03-07 15:11:54', 949717663, 201799169)[0m
|
54077
|
+
[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-07 15:11:54', '2013-03-07 15:11:54', 876923740, 201799169)
|
54078
|
+
[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-07 15:11:54', '2013-03-07 15:11:54', 864673665, 201799169)[0m
|
54079
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
54080
|
+
[1m[36mFixture Insert (0.2ms)[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-07 15:11:54', '2013-03-07 15:11:54', 201799169)[0m
|
54081
|
+
[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-07 15:11:54', '2013-03-07 15:11:54', 999914115)
|
54082
|
+
[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-07 15:11:54', '2013-03-07 15:11:54', 725306934)[0m
|
54083
|
+
[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-07 15:11:54', '2013-03-07 15:11:54', 349534908)
|
54084
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
54085
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54086
|
+
[1m[36mAuthentication Load (0.4ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
54087
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54088
|
+
--------------------------------------------------------------------------------
|
54089
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
54090
|
+
--------------------------------------------------------------------------------
|
54091
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54092
|
+
[1m[35mAuthentication Load (0.5ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
54093
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54094
|
+
-------------------------------------------------------------------------
|
54095
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
54096
|
+
-------------------------------------------------------------------------
|
54097
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54098
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54099
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
54100
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
54101
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
54102
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:11:54 UTC", "updated_at"=>"2013-03-07 15:11:54 UTC"}}
|
54103
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
54104
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
54105
|
+
Logged in user found, creating associated authentication.
|
54106
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54107
|
+
[1m[36mSQL (27.6ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:11:55 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:11:55 UTC +00:00], ["user_id", 201799169]]
|
54108
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54109
|
+
Redirected to http://test.host/authentications
|
54110
|
+
Completed 302 Found in 98ms (ActiveRecord: 28.3ms)
|
54111
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
54112
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
54113
|
+
--------------------------------------------------------------------------
|
54114
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
54115
|
+
--------------------------------------------------------------------------
|
54116
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54117
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54118
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
54119
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
54120
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
54121
|
+
Parameters: {"id"=>"949717663"}
|
54122
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
54123
|
+
[1m[35mAuthentication Load (0.3ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
54124
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54125
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
54126
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54127
|
+
Redirected to http://test.host/authentications
|
54128
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
|
54129
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
54130
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
54131
|
+
-------------------------------------------------------------
|
54132
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
54133
|
+
-------------------------------------------------------------
|
54134
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54135
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54136
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
54137
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
54138
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
54139
|
+
[1m[35mAuthentication Exists (0.3ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
54140
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
54141
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (34.3ms)
|
54142
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.5ms)
|
54143
|
+
Completed 200 OK in 373ms (Views: 368.6ms | ActiveRecord: 0.7ms)
|
54144
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54145
|
+
-----------------------------------------------------------------------------
|
54146
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
54147
|
+
-----------------------------------------------------------------------------
|
54148
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54149
|
+
Processing by Contour::PasswordsController#create as HTML
|
54150
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
54151
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
54152
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'rzWHHbeBzM81itKQxZcm' LIMIT 1[0m
|
54153
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54154
|
+
[1m[36mSQL (1.2ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "rzWHHbeBzM81itKQxZcm"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:11:55 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:11:55 UTC +00:00]]
|
54155
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54156
|
+
|
54157
|
+
Sent mail to valid@example.com (93.7ms)
|
54158
|
+
Date: Thu, 07 Mar 2013 10:11:55 -0500
|
54159
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
54160
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
54161
|
+
To: valid@example.com
|
54162
|
+
Message-ID: <5138ae3baa378_1280f3fd5bdc35adc858bc@edge2.partners.org.mail>
|
54163
|
+
Subject: Reset password instructions
|
54164
|
+
Mime-Version: 1.0
|
54165
|
+
Content-Type: text/html;
|
54166
|
+
charset=UTF-8
|
54167
|
+
Content-Transfer-Encoding: 7bit
|
54168
|
+
|
54169
|
+
<p>Hello valid@example.com!</p>
|
54170
|
+
|
54171
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
54172
|
+
|
54173
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=rzWHHbeBzM81itKQxZcm">Change my password</a></p>
|
54174
|
+
|
54175
|
+
<p>If you didn't request this, please ignore this email.</p>
|
54176
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
54177
|
+
|
54178
|
+
Redirected to http://test.host/users/login
|
54179
|
+
Completed 302 Found in 288ms (ActiveRecord: 0.0ms)
|
54180
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
54181
|
+
-----------------------------------------------------------------------------
|
54182
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
54183
|
+
-----------------------------------------------------------------------------
|
54184
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54185
|
+
Processing by Contour::PasswordsController#new as HTML
|
54186
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.6ms)
|
54187
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (20.1ms)
|
54188
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (25.6ms)
|
54189
|
+
Completed 200 OK in 90ms (Views: 89.1ms | ActiveRecord: 0.0ms)
|
54190
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
54191
|
+
-----------------------------------------------------
|
54192
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
54193
|
+
-----------------------------------------------------
|
54194
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54195
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54196
|
+
---------------------------------------------------------------------
|
54197
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
54198
|
+
---------------------------------------------------------------------
|
54199
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54200
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54201
|
+
-----------------------
|
54202
|
+
ContourTest: test_truth
|
54203
|
+
-----------------------
|
54204
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54205
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54206
|
+
--------------------------------------------------------------------
|
54207
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
54208
|
+
--------------------------------------------------------------------
|
54209
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54210
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54211
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
54212
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
54213
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:11:55 -0500
|
54214
|
+
Processing by WelcomeController#logged_in_page as HTML
|
54215
|
+
Completed 401 Unauthorized in 53ms
|
54216
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54217
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
54218
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
54219
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$1KREo7I3blrWUGTfTTRR6uFKiNi86ZBm6jXI1jOPGjZ0p9LbG8rcG"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00]]
|
54220
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54221
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54222
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
54223
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
54224
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54225
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
54226
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
54227
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
|
54228
|
+
Processing by Contour::SessionsController#create as HTML
|
54229
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
54230
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
54231
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54232
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54233
|
+
Completed 401 Unauthorized in 18ms
|
54234
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
|
54235
|
+
Processing by Contour::SessionsController#new as HTML
|
54236
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.9ms)
|
54237
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.9ms)
|
54238
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.2ms)
|
54239
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.7ms)
|
54240
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.4ms)
|
54241
|
+
Completed 200 OK in 67ms (Views: 65.0ms | ActiveRecord: 0.0ms)
|
54242
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
54243
|
+
--------------------------------------------------------
|
54244
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
54245
|
+
--------------------------------------------------------
|
54246
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54247
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54248
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
54249
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
54250
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
|
54251
|
+
Processing by WelcomeController#logged_in_page as HTML
|
54252
|
+
Completed 401 Unauthorized in 2ms
|
54253
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54254
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
54255
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
54256
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$IhNy9iMMzD0pcxpoAgvh/ObZth1JQAEMhWaQ1hFPILnx3w8vy1nJ2"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00]]
|
54257
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54258
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54259
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
54260
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
54261
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54262
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
54263
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
54264
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
|
54265
|
+
Processing by Contour::SessionsController#create as HTML
|
54266
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
54267
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
54268
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54269
|
+
[1m[35mSQL (0.8ms)[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", Thu, 07 Mar 2013 15:11:56 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:11:56 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", Thu, 07 Mar 2013 15:11:56 UTC +00:00]]
|
54270
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54271
|
+
Redirected to http://www.example.com/logged_in_page
|
54272
|
+
Completed 302 Found in 23ms (ActiveRecord: 0.0ms)
|
54273
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
|
54274
|
+
Processing by WelcomeController#logged_in_page as HTML
|
54275
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
|
54276
|
+
Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 0.2ms)
|
54277
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
54278
|
+
--------------------------------------------------------------------
|
54279
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
54280
|
+
--------------------------------------------------------------------
|
54281
|
+
[1m[35m (0.2ms)[0m begin transaction
|
54282
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54283
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
54284
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
54285
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
|
54286
|
+
Processing by WelcomeController#logged_in_page as HTML
|
54287
|
+
Completed 401 Unauthorized in 2ms
|
54288
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54289
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
54290
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
54291
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$FLB4udjPGqk2Smt6biH2I.ZeVSGstve3s8H9ndPJOqGLc0Lkrfb9a"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00]]
|
54292
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54293
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54294
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
54295
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
54296
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54297
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
54298
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
54299
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
|
54300
|
+
Processing by Contour::SessionsController#create as HTML
|
54301
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
54302
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
54303
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54304
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54305
|
+
Completed 401 Unauthorized in 14ms
|
54306
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
|
54307
|
+
Processing by Contour::SessionsController#new as HTML
|
54308
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.2ms)
|
54309
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.0ms)
|
54310
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.2ms)
|
54311
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.3ms)
|
54312
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.2ms)
|
54313
|
+
Completed 200 OK in 37ms (Views: 34.5ms | ActiveRecord: 0.0ms)
|
54314
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
54315
|
+
-------------------------------------------------------------
|
54316
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
54317
|
+
-------------------------------------------------------------
|
54318
|
+
[1m[35m (0.2ms)[0m begin transaction
|
54319
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54320
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
54321
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
54322
|
+
Started GET "/" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
|
54323
|
+
Processing by WelcomeController#index as HTML
|
54324
|
+
Completed 401 Unauthorized in 2ms
|
54325
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54326
|
+
-------------------------------------------------------------------------
|
54327
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
54328
|
+
-------------------------------------------------------------------------
|
54329
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54330
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54331
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
54332
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
54333
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
|
54334
|
+
Processing by WelcomeController#logged_in_page as JSON
|
54335
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
54336
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
54337
|
+
[1m[36mSQL (0.9ms)[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", Thu, 07 Mar 2013 15:11:57 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:11:57 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:11:57 UTC +00:00]]
|
54338
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54339
|
+
Completed 200 OK in 363ms (Views: 1.0ms | ActiveRecord: 1.6ms)
|
54340
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
54341
|
+
------------------------------------------------------------------------------------------------
|
54342
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
54343
|
+
------------------------------------------------------------------------------------------------
|
54344
|
+
[1m[35m (0.2ms)[0m begin transaction
|
54345
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54346
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
54347
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
54348
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:11:57 -0500
|
54349
|
+
Processing by WelcomeController#logged_in_page as JSON
|
54350
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
54351
|
+
Completed 401 Unauthorized in 373ms
|
54352
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54353
|
+
------------------------------------
|
54354
|
+
UserTest: test_should_apply_omniauth
|
54355
|
+
------------------------------------
|
54356
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54357
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54358
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
54359
|
+
--------------------------------------
|
54360
|
+
UserTest: test_should_get_reverse_name
|
54361
|
+
--------------------------------------
|
54362
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54363
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54364
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54365
|
+
-------------------------------------------------
|
54366
|
+
AuthenticationTest: test_should_get_provider_name
|
54367
|
+
-------------------------------------------------
|
54368
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
54369
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "authentications"
|
54370
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:18:42', '2013-03-07 15:18:42', 949717663, 201799169)[0m
|
54371
|
+
[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-07 15:18:42', '2013-03-07 15:18:42', 876923740, 201799169)
|
54372
|
+
[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-07 15:18:42', '2013-03-07 15:18:42', 864673665, 201799169)[0m
|
54373
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
54374
|
+
[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-07 15:18:43', '2013-03-07 15:18:43', 201799169)[0m
|
54375
|
+
[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-07 15:18:43', '2013-03-07 15:18:43', 999914115)
|
54376
|
+
[1m[36mFixture Insert (0.3ms)[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-07 15:18:43', '2013-03-07 15:18:43', 725306934)[0m
|
54377
|
+
[1m[35mFixture Insert (0.2ms)[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-07 15:18:43', '2013-03-07 15:18:43', 349534908)
|
54378
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
54379
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54380
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
54381
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
54382
|
+
--------------------------------------------------------------------------------
|
54383
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
54384
|
+
--------------------------------------------------------------------------------
|
54385
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
54386
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
54387
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54388
|
+
-------------------------------------------------------------------------
|
54389
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
54390
|
+
-------------------------------------------------------------------------
|
54391
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54392
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54393
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
54394
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
54395
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
54396
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:18:42 UTC", "updated_at"=>"2013-03-07 15:18:42 UTC"}}
|
54397
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
54398
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
54399
|
+
Logged in user found, creating associated authentication.
|
54400
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54401
|
+
[1m[36mSQL (4.1ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:18:43 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:18:43 UTC +00:00], ["user_id", 201799169]]
|
54402
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54403
|
+
Redirected to http://test.host/authentications
|
54404
|
+
Completed 302 Found in 57ms (ActiveRecord: 4.7ms)
|
54405
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
54406
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
54407
|
+
--------------------------------------------------------------------------
|
54408
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
54409
|
+
--------------------------------------------------------------------------
|
54410
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54411
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54412
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
54413
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
54414
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
54415
|
+
Parameters: {"id"=>"949717663"}
|
54416
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
54417
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
54418
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54419
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
54420
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54421
|
+
Redirected to http://test.host/authentications
|
54422
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.0ms)
|
54423
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "authentications"
|
54424
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
54425
|
+
-------------------------------------------------------------
|
54426
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
54427
|
+
-------------------------------------------------------------
|
54428
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54429
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54430
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
54431
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
54432
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
54433
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
54434
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
54435
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (34.7ms)
|
54436
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.0ms)
|
54437
|
+
Completed 200 OK in 324ms (Views: 319.8ms | ActiveRecord: 0.6ms)
|
54438
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54439
|
+
-----------------------------------------------------------------------------
|
54440
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
54441
|
+
-----------------------------------------------------------------------------
|
54442
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54443
|
+
Processing by Contour::PasswordsController#create as HTML
|
54444
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
54445
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
54446
|
+
[1m[36mUser Load (0.7ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'xLqtpnSjF2U8243Vdqxs' LIMIT 1[0m
|
54447
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54448
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "xLqtpnSjF2U8243Vdqxs"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:18:43 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:18:43 UTC +00:00]]
|
54449
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54450
|
+
|
54451
|
+
Sent mail to valid@example.com (91.8ms)
|
54452
|
+
Date: Thu, 07 Mar 2013 10:18:43 -0500
|
54453
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
54454
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
54455
|
+
To: valid@example.com
|
54456
|
+
Message-ID: <5138afd3ca9ae_129273fe88a035ae079765@edge2.partners.org.mail>
|
54457
|
+
Subject: Reset password instructions
|
54458
|
+
Mime-Version: 1.0
|
54459
|
+
Content-Type: text/html;
|
54460
|
+
charset=UTF-8
|
54461
|
+
Content-Transfer-Encoding: 7bit
|
54462
|
+
|
54463
|
+
<p>Hello valid@example.com!</p>
|
54464
|
+
|
54465
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
54466
|
+
|
54467
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=xLqtpnSjF2U8243Vdqxs">Change my password</a></p>
|
54468
|
+
|
54469
|
+
<p>If you didn't request this, please ignore this email.</p>
|
54470
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
54471
|
+
|
54472
|
+
Redirected to http://test.host/users/login
|
54473
|
+
Completed 302 Found in 259ms (ActiveRecord: 0.0ms)
|
54474
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
54475
|
+
-----------------------------------------------------------------------------
|
54476
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
54477
|
+
-----------------------------------------------------------------------------
|
54478
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54479
|
+
Processing by Contour::PasswordsController#new as HTML
|
54480
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.0ms)
|
54481
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (23.8ms)
|
54482
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (29.5ms)
|
54483
|
+
Completed 200 OK in 73ms (Views: 71.9ms | ActiveRecord: 0.0ms)
|
54484
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54485
|
+
----------------------------------------------------------------------
|
54486
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
54487
|
+
----------------------------------------------------------------------
|
54488
|
+
[1m[35m (0.2ms)[0m begin transaction
|
54489
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54490
|
+
Processing by Contour::SessionsController#create as JSON
|
54491
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
54492
|
+
[Devise] Could not find devise mapping for path "/users/login.json?user%5Bemail%5D=valid%40example.com&user%5Bpassword%5D=password".
|
54493
|
+
This may happen for two reasons:
|
54494
|
+
|
54495
|
+
1) You forgot to wrap your route inside the scope block. For example:
|
54496
|
+
|
54497
|
+
devise_scope :user do
|
54498
|
+
get "/some/route" => "some_devise_controller"
|
54499
|
+
end
|
54500
|
+
|
54501
|
+
2) You are testing a Devise controller bypassing the router.
|
54502
|
+
If so, you can explicitly tell Devise which mapping to use:
|
54503
|
+
|
54504
|
+
@request.env["devise.mapping"] = Devise.mappings[:user]
|
54505
|
+
|
54506
|
+
|
54507
|
+
Completed 404 Not Found in 1ms
|
54508
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54509
|
+
-----------------------------------------------------
|
54510
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
54511
|
+
-----------------------------------------------------
|
54512
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54513
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54514
|
+
---------------------------------------------------------------------
|
54515
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
54516
|
+
---------------------------------------------------------------------
|
54517
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54518
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54519
|
+
-----------------------
|
54520
|
+
ContourTest: test_truth
|
54521
|
+
-----------------------
|
54522
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54523
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54524
|
+
--------------------------------------------------------------------
|
54525
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
54526
|
+
--------------------------------------------------------------------
|
54527
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54528
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54529
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
54530
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
54531
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
|
54532
|
+
Processing by WelcomeController#logged_in_page as HTML
|
54533
|
+
Completed 401 Unauthorized in 32ms
|
54534
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54535
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
54536
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
54537
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$xdha/tO4aMud4vAYCaJtQujyowpZJAjufHX9x.m/0MM5V0VYj2z3i"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00]]
|
54538
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54539
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54540
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
54541
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
54542
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54543
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
54544
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
|
54545
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
|
54546
|
+
Processing by Contour::SessionsController#create as HTML
|
54547
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
54548
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
54549
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54550
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54551
|
+
Completed 401 Unauthorized in 18ms
|
54552
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
|
54553
|
+
Processing by Contour::SessionsController#new as HTML
|
54554
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
|
54555
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.1ms)
|
54556
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.3ms)
|
54557
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.5ms)
|
54558
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.4ms)
|
54559
|
+
Completed 200 OK in 104ms (Views: 102.1ms | ActiveRecord: 0.0ms)
|
54560
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
54561
|
+
--------------------------------------------------------
|
54562
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
54563
|
+
--------------------------------------------------------
|
54564
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54565
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54566
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
54567
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
54568
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
|
54569
|
+
Processing by WelcomeController#logged_in_page as HTML
|
54570
|
+
Completed 401 Unauthorized in 2ms
|
54571
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
54572
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
54573
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
54574
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$fPTn0QGIzjXL6C86qXrTRejG6F6Iv8bGmv.mETT8FxPa7s22oeEca"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00]]
|
54575
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54576
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54577
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
54578
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
54579
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
54580
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
54581
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
54582
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
|
54583
|
+
Processing by Contour::SessionsController#create as HTML
|
54584
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
54585
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
54586
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54587
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "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[0m [["last_sign_in_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:18:44 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", Thu, 07 Mar 2013 15:18:44 UTC +00:00]]
|
54588
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54589
|
+
Redirected to http://www.example.com/logged_in_page
|
54590
|
+
Completed 302 Found in 23ms (ActiveRecord: 0.0ms)
|
54591
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
|
54592
|
+
Processing by WelcomeController#logged_in_page as HTML
|
54593
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1[0m
|
54594
|
+
Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 0.2ms)
|
54595
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
54596
|
+
--------------------------------------------------------------------
|
54597
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
54598
|
+
--------------------------------------------------------------------
|
54599
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54600
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54601
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
54602
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
54603
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
|
54604
|
+
Processing by WelcomeController#logged_in_page as HTML
|
54605
|
+
Completed 401 Unauthorized in 2ms
|
54606
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54607
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
54608
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
54609
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$rXiS3o4hmoFWz7hDQP5EEOG7zN4djedkvNc/pE/lHNEdbUezN/Eeu"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00]]
|
54610
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54611
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54612
|
+
[1m[35mAuthentication Exists (0.6ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
54613
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
54614
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54615
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116[0m
|
54616
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
54617
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
|
54618
|
+
Processing by Contour::SessionsController#create as HTML
|
54619
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
54620
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
54621
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54622
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54623
|
+
Completed 401 Unauthorized in 14ms
|
54624
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
|
54625
|
+
Processing by Contour::SessionsController#new as HTML
|
54626
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
|
54627
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.0ms)
|
54628
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.2ms)
|
54629
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.6ms)
|
54630
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.3ms)
|
54631
|
+
Completed 200 OK in 37ms (Views: 35.1ms | ActiveRecord: 0.0ms)
|
54632
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
54633
|
+
-------------------------------------------------------------
|
54634
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
54635
|
+
-------------------------------------------------------------
|
54636
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54637
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54638
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
54639
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
54640
|
+
Started GET "/" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
|
54641
|
+
Processing by WelcomeController#index as HTML
|
54642
|
+
Completed 401 Unauthorized in 2ms
|
54643
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54644
|
+
-------------------------------------------------------------------------
|
54645
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
54646
|
+
-------------------------------------------------------------------------
|
54647
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54648
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54649
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
54650
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
54651
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
|
54652
|
+
Processing by WelcomeController#logged_in_page as JSON
|
54653
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
54654
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54655
|
+
[1m[35mSQL (0.8ms)[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", Thu, 07 Mar 2013 15:18:45 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:18:45 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:18:45 UTC +00:00]]
|
54656
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54657
|
+
Completed 200 OK in 326ms (Views: 0.5ms | ActiveRecord: 1.3ms)
|
54658
|
+
[1m[35m (14.4ms)[0m rollback transaction
|
54659
|
+
------------------------------------------------------------------------------------------------
|
54660
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
54661
|
+
------------------------------------------------------------------------------------------------
|
54662
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54663
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54664
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
54665
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
54666
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:18:45 -0500
|
54667
|
+
Processing by WelcomeController#logged_in_page as JSON
|
54668
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
54669
|
+
Completed 401 Unauthorized in 316ms
|
54670
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
54671
|
+
------------------------------------
|
54672
|
+
UserTest: test_should_apply_omniauth
|
54673
|
+
------------------------------------
|
54674
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54675
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54676
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54677
|
+
--------------------------------------
|
54678
|
+
UserTest: test_should_get_reverse_name
|
54679
|
+
--------------------------------------
|
54680
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54681
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54682
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54683
|
+
-------------------------------------------------
|
54684
|
+
AuthenticationTest: test_should_get_provider_name
|
54685
|
+
-------------------------------------------------
|
54686
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
54687
|
+
[1m[35mFixture Delete (19.8ms)[0m DELETE FROM "authentications"
|
54688
|
+
[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-07 15:21:01', '2013-03-07 15:21:01', 949717663, 201799169)[0m
|
54689
|
+
[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-07 15:21:01', '2013-03-07 15:21:01', 876923740, 201799169)
|
54690
|
+
[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-07 15:21:01', '2013-03-07 15:21:01', 864673665, 201799169)[0m
|
54691
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
54692
|
+
[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-07 15:21:01', '2013-03-07 15:21:01', 201799169)[0m
|
54693
|
+
[1m[35mFixture Insert (0.2ms)[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-07 15:21:01', '2013-03-07 15:21:01', 999914115)
|
54694
|
+
[1m[36mFixture Insert (0.2ms)[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-07 15:21:01', '2013-03-07 15:21:01', 725306934)[0m
|
54695
|
+
[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-07 15:21:01', '2013-03-07 15:21:01', 349534908)
|
54696
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
54697
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54698
|
+
[1m[36mAuthentication Load (0.5ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
54699
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
54700
|
+
--------------------------------------------------------------------------------
|
54701
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
54702
|
+
--------------------------------------------------------------------------------
|
54703
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54704
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
54705
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54706
|
+
-------------------------------------------------------------------------
|
54707
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
54708
|
+
-------------------------------------------------------------------------
|
54709
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54710
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54711
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
54712
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
54713
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
54714
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:21:01 UTC", "updated_at"=>"2013-03-07 15:21:01 UTC"}}
|
54715
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
54716
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
54717
|
+
Logged in user found, creating associated authentication.
|
54718
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
54719
|
+
[1m[36mSQL (3.7ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:21:02 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:21:02 UTC +00:00], ["user_id", 201799169]]
|
54720
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54721
|
+
Redirected to http://test.host/authentications
|
54722
|
+
Completed 302 Found in 57ms (ActiveRecord: 4.4ms)
|
54723
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
54724
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
54725
|
+
--------------------------------------------------------------------------
|
54726
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
54727
|
+
--------------------------------------------------------------------------
|
54728
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54729
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54730
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
54731
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
54732
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
54733
|
+
Parameters: {"id"=>"949717663"}
|
54734
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
54735
|
+
[1m[35mAuthentication Load (0.3ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
54736
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54737
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
54738
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54739
|
+
Redirected to http://test.host/authentications
|
54740
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.1ms)
|
54741
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
54742
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
54743
|
+
-------------------------------------------------------------
|
54744
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
54745
|
+
-------------------------------------------------------------
|
54746
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54747
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54748
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
54749
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
54750
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
54751
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
54752
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
54753
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (32.7ms)
|
54754
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (6.6ms)
|
54755
|
+
Completed 200 OK in 288ms (Views: 283.5ms | ActiveRecord: 0.7ms)
|
54756
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54757
|
+
-----------------------------------------------------------------------------
|
54758
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
54759
|
+
-----------------------------------------------------------------------------
|
54760
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54761
|
+
Processing by Contour::PasswordsController#create as HTML
|
54762
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
54763
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
54764
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'RU9oioyzpMzqVtzkJow8' LIMIT 1[0m
|
54765
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54766
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "RU9oioyzpMzqVtzkJow8"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:21:02 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:21:02 UTC +00:00]]
|
54767
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54768
|
+
|
54769
|
+
Sent mail to valid@example.com (99.0ms)
|
54770
|
+
Date: Thu, 07 Mar 2013 10:21:02 -0500
|
54771
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
54772
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
54773
|
+
To: valid@example.com
|
54774
|
+
Message-ID: <5138b05eb409f_1298c3fd535035ad03127f@edge2.partners.org.mail>
|
54775
|
+
Subject: Reset password instructions
|
54776
|
+
Mime-Version: 1.0
|
54777
|
+
Content-Type: text/html;
|
54778
|
+
charset=UTF-8
|
54779
|
+
Content-Transfer-Encoding: 7bit
|
54780
|
+
|
54781
|
+
<p>Hello valid@example.com!</p>
|
54782
|
+
|
54783
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
54784
|
+
|
54785
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=RU9oioyzpMzqVtzkJow8">Change my password</a></p>
|
54786
|
+
|
54787
|
+
<p>If you didn't request this, please ignore this email.</p>
|
54788
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
54789
|
+
|
54790
|
+
Redirected to http://test.host/users/login
|
54791
|
+
Completed 302 Found in 236ms (ActiveRecord: 0.0ms)
|
54792
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
54793
|
+
-----------------------------------------------------------------------------
|
54794
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
54795
|
+
-----------------------------------------------------------------------------
|
54796
|
+
[1m[35m (0.2ms)[0m begin transaction
|
54797
|
+
Processing by Contour::PasswordsController#new as HTML
|
54798
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (4.5ms)
|
54799
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (21.6ms)
|
54800
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (27.2ms)
|
54801
|
+
Completed 200 OK in 76ms (Views: 74.5ms | ActiveRecord: 0.0ms)
|
54802
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54803
|
+
----------------------------------------------------------------------
|
54804
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
54805
|
+
----------------------------------------------------------------------
|
54806
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54807
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54808
|
+
Processing by Contour::SessionsController#create as JSON
|
54809
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
54810
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
54811
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54812
|
+
[1m[35mSQL (0.8ms)[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", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00]]
|
54813
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54814
|
+
Completed 500 Internal Server Error in 325ms
|
54815
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
54816
|
+
-----------------------------------------------------
|
54817
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
54818
|
+
-----------------------------------------------------
|
54819
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54820
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54821
|
+
---------------------------------------------------------------------
|
54822
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
54823
|
+
---------------------------------------------------------------------
|
54824
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54825
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
54826
|
+
-----------------------
|
54827
|
+
ContourTest: test_truth
|
54828
|
+
-----------------------
|
54829
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54830
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54831
|
+
--------------------------------------------------------------------
|
54832
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
54833
|
+
--------------------------------------------------------------------
|
54834
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54835
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54836
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
54837
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
54838
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
|
54839
|
+
Processing by WelcomeController#logged_in_page as HTML
|
54840
|
+
Completed 401 Unauthorized in 34ms
|
54841
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54842
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
54843
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
54844
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$9GyRCpiiSGLQtjGueR.UY.61z8sHEmWTSglE1ffaD3PlNRI4l8zhG"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00]]
|
54845
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54846
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54847
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
54848
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
54849
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54850
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
54851
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
|
54852
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
|
54853
|
+
Processing by Contour::SessionsController#create as HTML
|
54854
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
54855
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
54856
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54857
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54858
|
+
Completed 401 Unauthorized in 18ms
|
54859
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
|
54860
|
+
Processing by Contour::SessionsController#new as HTML
|
54861
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.0ms)
|
54862
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.1ms)
|
54863
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.2ms)
|
54864
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.9ms)
|
54865
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.7ms)
|
54866
|
+
Completed 200 OK in 106ms (Views: 103.1ms | ActiveRecord: 0.0ms)
|
54867
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
54868
|
+
--------------------------------------------------------
|
54869
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
54870
|
+
--------------------------------------------------------
|
54871
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
54872
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54873
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
54874
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
54875
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
|
54876
|
+
Processing by WelcomeController#logged_in_page as HTML
|
54877
|
+
Completed 401 Unauthorized in 2ms
|
54878
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54879
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
54880
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
54881
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$DPEf8xf/sF6X7QlY8/69gONLUgk5DKNzU.l8nZOEkdgg69./wQrdq"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00]]
|
54882
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
54883
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54884
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
54885
|
+
[1m[36mAuthentication Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
54886
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54887
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
54888
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
54889
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
|
54890
|
+
Processing by Contour::SessionsController#create as HTML
|
54891
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
54892
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
54893
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54894
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "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[0m [["last_sign_in_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:21:03 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", Thu, 07 Mar 2013 15:21:03 UTC +00:00]]
|
54895
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54896
|
+
Redirected to http://www.example.com/logged_in_page
|
54897
|
+
Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
|
54898
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
|
54899
|
+
Processing by WelcomeController#logged_in_page as HTML
|
54900
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1[0m
|
54901
|
+
Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.2ms)
|
54902
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
54903
|
+
--------------------------------------------------------------------
|
54904
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
54905
|
+
--------------------------------------------------------------------
|
54906
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54907
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54908
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
54909
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
54910
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
|
54911
|
+
Processing by WelcomeController#logged_in_page as HTML
|
54912
|
+
Completed 401 Unauthorized in 2ms
|
54913
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54914
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
54915
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
54916
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$6z1WD2m4mVFjQVCUijqrheY5zwFpQlQ0vhl/QxH0xq0Tp.bdkhYYe"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00]]
|
54917
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54918
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54919
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
54920
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
54921
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54922
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116[0m
|
54923
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
54924
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
|
54925
|
+
Processing by Contour::SessionsController#create as HTML
|
54926
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
54927
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
54928
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54929
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54930
|
+
Completed 401 Unauthorized in 13ms
|
54931
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
|
54932
|
+
Processing by Contour::SessionsController#new as HTML
|
54933
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
|
54934
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.3ms)
|
54935
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
54936
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.1ms)
|
54937
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.2ms)
|
54938
|
+
Completed 200 OK in 39ms (Views: 36.7ms | ActiveRecord: 0.0ms)
|
54939
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
54940
|
+
-------------------------------------------------------------
|
54941
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
54942
|
+
-------------------------------------------------------------
|
54943
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
54944
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54945
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
54946
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
54947
|
+
Started GET "/" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
|
54948
|
+
Processing by WelcomeController#index as HTML
|
54949
|
+
Completed 401 Unauthorized in 3ms
|
54950
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54951
|
+
-------------------------------------------------------------------------
|
54952
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
54953
|
+
-------------------------------------------------------------------------
|
54954
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54955
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54956
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
54957
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
54958
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
|
54959
|
+
Processing by WelcomeController#logged_in_page as JSON
|
54960
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
54961
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54962
|
+
[1m[35mSQL (0.7ms)[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", Thu, 07 Mar 2013 15:21:04 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:21:04 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:21:04 UTC +00:00]]
|
54963
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54964
|
+
Completed 200 OK in 326ms (Views: 0.4ms | ActiveRecord: 1.3ms)
|
54965
|
+
[1m[35m (40.1ms)[0m rollback transaction
|
54966
|
+
------------------------------------------------------------------------------------------------
|
54967
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
54968
|
+
------------------------------------------------------------------------------------------------
|
54969
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
54970
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54971
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
54972
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
54973
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:21:04 -0500
|
54974
|
+
Processing by WelcomeController#logged_in_page as JSON
|
54975
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
54976
|
+
Completed 401 Unauthorized in 318ms
|
54977
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
54978
|
+
------------------------------------
|
54979
|
+
UserTest: test_should_apply_omniauth
|
54980
|
+
------------------------------------
|
54981
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54982
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54983
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54984
|
+
--------------------------------------
|
54985
|
+
UserTest: test_should_get_reverse_name
|
54986
|
+
--------------------------------------
|
54987
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54988
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54989
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54990
|
+
-------------------------------------------------
|
54991
|
+
AuthenticationTest: test_should_get_provider_name
|
54992
|
+
-------------------------------------------------
|
54993
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
54994
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "authentications"
|
54995
|
+
[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-07 15:23:24', '2013-03-07 15:23:24', 949717663, 201799169)[0m
|
54996
|
+
[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-07 15:23:24', '2013-03-07 15:23:24', 876923740, 201799169)
|
54997
|
+
[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-07 15:23:24', '2013-03-07 15:23:24', 864673665, 201799169)[0m
|
54998
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
54999
|
+
[1m[36mFixture Insert (0.2ms)[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-07 15:23:24', '2013-03-07 15:23:24', 201799169)[0m
|
55000
|
+
[1m[35mFixture Insert (0.2ms)[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-07 15:23:24', '2013-03-07 15:23:24', 999914115)
|
55001
|
+
[1m[36mFixture Insert (0.2ms)[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-07 15:23:24', '2013-03-07 15:23:24', 725306934)[0m
|
55002
|
+
[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-07 15:23:24', '2013-03-07 15:23:24', 349534908)
|
55003
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
55004
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55005
|
+
[1m[36mAuthentication Load (0.4ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
55006
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
55007
|
+
--------------------------------------------------------------------------------
|
55008
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
55009
|
+
--------------------------------------------------------------------------------
|
55010
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55011
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
55012
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
55013
|
+
-------------------------------------------------------------------------
|
55014
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
55015
|
+
-------------------------------------------------------------------------
|
55016
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55017
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55018
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
55019
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
55020
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
55021
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:23:24 UTC", "updated_at"=>"2013-03-07 15:23:24 UTC"}}
|
55022
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
55023
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55024
|
+
Logged in user found, creating associated authentication.
|
55025
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
55026
|
+
[1m[36mSQL (29.3ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:23:24 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:23:24 UTC +00:00], ["user_id", 201799169]]
|
55027
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55028
|
+
Redirected to http://test.host/authentications
|
55029
|
+
Completed 302 Found in 81ms (ActiveRecord: 29.9ms)
|
55030
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
55031
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
55032
|
+
--------------------------------------------------------------------------
|
55033
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
55034
|
+
--------------------------------------------------------------------------
|
55035
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55036
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55037
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
55038
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
55039
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
55040
|
+
Parameters: {"id"=>"949717663"}
|
55041
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55042
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
55043
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55044
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
55045
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55046
|
+
Redirected to http://test.host/authentications
|
55047
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.0ms)
|
55048
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
55049
|
+
[1m[36m (14.7ms)[0m [1mrollback transaction[0m
|
55050
|
+
-------------------------------------------------------------
|
55051
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
55052
|
+
-------------------------------------------------------------
|
55053
|
+
[1m[35m (0.2ms)[0m begin transaction
|
55054
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55055
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
55056
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
55057
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55058
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
55059
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
55060
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (31.4ms)
|
55061
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.9ms)
|
55062
|
+
Completed 200 OK in 338ms (Views: 333.3ms | ActiveRecord: 0.6ms)
|
55063
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
55064
|
+
-----------------------------------------------------------------------------
|
55065
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
55066
|
+
-----------------------------------------------------------------------------
|
55067
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
55068
|
+
Processing by Contour::PasswordsController#create as HTML
|
55069
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
55070
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
55071
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '67rrgYiVGCBbKdezcopS' LIMIT 1[0m
|
55072
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
55073
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "67rrgYiVGCBbKdezcopS"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:23:25 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:23:25 UTC +00:00]]
|
55074
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55075
|
+
|
55076
|
+
Sent mail to valid@example.com (102.5ms)
|
55077
|
+
Date: Thu, 07 Mar 2013 10:23:25 -0500
|
55078
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
55079
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
55080
|
+
To: valid@example.com
|
55081
|
+
Message-ID: <5138b0ed7f028_12a053fd7c5835ae073671@edge2.partners.org.mail>
|
55082
|
+
Subject: Reset password instructions
|
55083
|
+
Mime-Version: 1.0
|
55084
|
+
Content-Type: text/html;
|
55085
|
+
charset=UTF-8
|
55086
|
+
Content-Transfer-Encoding: 7bit
|
55087
|
+
|
55088
|
+
<p>Hello valid@example.com!</p>
|
55089
|
+
|
55090
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
55091
|
+
|
55092
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=67rrgYiVGCBbKdezcopS">Change my password</a></p>
|
55093
|
+
|
55094
|
+
<p>If you didn't request this, please ignore this email.</p>
|
55095
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
55096
|
+
|
55097
|
+
Redirected to http://test.host/users/login
|
55098
|
+
Completed 302 Found in 276ms (ActiveRecord: 0.0ms)
|
55099
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
55100
|
+
-----------------------------------------------------------------------------
|
55101
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
55102
|
+
-----------------------------------------------------------------------------
|
55103
|
+
[1m[35m (0.2ms)[0m begin transaction
|
55104
|
+
Processing by Contour::PasswordsController#new as HTML
|
55105
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (4.3ms)
|
55106
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (22.0ms)
|
55107
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (29.1ms)
|
55108
|
+
Completed 200 OK in 72ms (Views: 70.9ms | ActiveRecord: 0.0ms)
|
55109
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
55110
|
+
----------------------------------------------------------------------
|
55111
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
55112
|
+
----------------------------------------------------------------------
|
55113
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55114
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55115
|
+
Processing by Contour::SessionsController#create as JSON
|
55116
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
55117
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
55118
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
55119
|
+
[1m[35mSQL (1.0ms)[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", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00]]
|
55120
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55121
|
+
Completed 200 OK in 326ms (Views: 1.1ms | ActiveRecord: 1.7ms)
|
55122
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
55123
|
+
-----------------------------------------------------
|
55124
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
55125
|
+
-----------------------------------------------------
|
55126
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55127
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
55128
|
+
---------------------------------------------------------------------
|
55129
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
55130
|
+
---------------------------------------------------------------------
|
55131
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
55132
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55133
|
+
-----------------------
|
55134
|
+
ContourTest: test_truth
|
55135
|
+
-----------------------
|
55136
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55137
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55138
|
+
--------------------------------------------------------------------
|
55139
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
55140
|
+
--------------------------------------------------------------------
|
55141
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55142
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55143
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55144
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55145
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
|
55146
|
+
Processing by WelcomeController#logged_in_page as HTML
|
55147
|
+
Completed 401 Unauthorized in 34ms
|
55148
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55149
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
55150
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
55151
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$Kvz2U15QDXS7gq9KmQWrzu8K2Yy7l/Bl3b/5ENywdOrcr0AhgBM0a"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00]]
|
55152
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55153
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55154
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
55155
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
55156
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55157
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
55158
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
|
55159
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
|
55160
|
+
Processing by Contour::SessionsController#create as HTML
|
55161
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
55162
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
55163
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
55164
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55165
|
+
Completed 401 Unauthorized in 18ms
|
55166
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
|
55167
|
+
Processing by Contour::SessionsController#new as HTML
|
55168
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.7ms)
|
55169
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (7.0ms)
|
55170
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.3ms)
|
55171
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.1ms)
|
55172
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.6ms)
|
55173
|
+
Completed 200 OK in 113ms (Views: 110.6ms | ActiveRecord: 0.0ms)
|
55174
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
55175
|
+
--------------------------------------------------------
|
55176
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
55177
|
+
--------------------------------------------------------
|
55178
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55179
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55180
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55181
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55182
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
|
55183
|
+
Processing by WelcomeController#logged_in_page as HTML
|
55184
|
+
Completed 401 Unauthorized in 2ms
|
55185
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
55186
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
55187
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
55188
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$g3/wh7Gr8xhTUU0Cs1QRpueHKF6fEk4txcKNK4cf5lfcqr50kg/CW"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00]]
|
55189
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55190
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55191
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
55192
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
55193
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55194
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
55195
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
55196
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
|
55197
|
+
Processing by Contour::SessionsController#create as HTML
|
55198
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
55199
|
+
[1m[36mUser Load (0.7ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
55200
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
55201
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "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[0m [["last_sign_in_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:23:26 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", Thu, 07 Mar 2013 15:23:26 UTC +00:00]]
|
55202
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55203
|
+
Redirected to http://www.example.com/logged_in_page
|
55204
|
+
Completed 302 Found in 23ms (ActiveRecord: 0.0ms)
|
55205
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
|
55206
|
+
Processing by WelcomeController#logged_in_page as HTML
|
55207
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55208
|
+
Completed 200 OK in 9ms (Views: 4.2ms | ActiveRecord: 0.2ms)
|
55209
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
55210
|
+
--------------------------------------------------------------------
|
55211
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
55212
|
+
--------------------------------------------------------------------
|
55213
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55214
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55215
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55216
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55217
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
|
55218
|
+
Processing by WelcomeController#logged_in_page as HTML
|
55219
|
+
Completed 401 Unauthorized in 3ms
|
55220
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55221
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
55222
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
55223
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$YHR3yD5DRyN7B3JssMxDNOrxS0fXG7FGDjlA2q1JP93P8SGZSq/He"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00]]
|
55224
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
55225
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55226
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
55227
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
55228
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55229
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116[0m
|
55230
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
55231
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
|
55232
|
+
Processing by Contour::SessionsController#create as HTML
|
55233
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
55234
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
55235
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
55236
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55237
|
+
Completed 401 Unauthorized in 15ms
|
55238
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
|
55239
|
+
Processing by Contour::SessionsController#new as HTML
|
55240
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
|
55241
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.8ms)
|
55242
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
55243
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.5ms)
|
55244
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.4ms)
|
55245
|
+
Completed 200 OK in 39ms (Views: 36.5ms | ActiveRecord: 0.0ms)
|
55246
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
55247
|
+
-------------------------------------------------------------
|
55248
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
55249
|
+
-------------------------------------------------------------
|
55250
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55251
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55252
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55253
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55254
|
+
Started GET "/" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
|
55255
|
+
Processing by WelcomeController#index as HTML
|
55256
|
+
Completed 401 Unauthorized in 2ms
|
55257
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
55258
|
+
-------------------------------------------------------------------------
|
55259
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
55260
|
+
-------------------------------------------------------------------------
|
55261
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55262
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55263
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
55264
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
55265
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
|
55266
|
+
Processing by WelcomeController#logged_in_page as JSON
|
55267
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
55268
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
55269
|
+
[1m[35mSQL (0.8ms)[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", Thu, 07 Mar 2013 15:23:27 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:23:27 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:23:27 UTC +00:00]]
|
55270
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55271
|
+
Completed 200 OK in 332ms (Views: 0.4ms | ActiveRecord: 1.5ms)
|
55272
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
55273
|
+
------------------------------------------------------------------------------------------------
|
55274
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
55275
|
+
------------------------------------------------------------------------------------------------
|
55276
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55277
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55278
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55279
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55280
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:23:27 -0500
|
55281
|
+
Processing by WelcomeController#logged_in_page as JSON
|
55282
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
55283
|
+
Completed 401 Unauthorized in 316ms
|
55284
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
55285
|
+
------------------------------------
|
55286
|
+
UserTest: test_should_apply_omniauth
|
55287
|
+
------------------------------------
|
55288
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55289
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55290
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
55291
|
+
--------------------------------------
|
55292
|
+
UserTest: test_should_get_reverse_name
|
55293
|
+
--------------------------------------
|
55294
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55295
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55296
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55297
|
+
-------------------------------------------------
|
55298
|
+
AuthenticationTest: test_should_get_provider_name
|
55299
|
+
-------------------------------------------------
|
55300
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
55301
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "authentications"
|
55302
|
+
[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-07 15:24:42', '2013-03-07 15:24:42', 949717663, 201799169)[0m
|
55303
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:24:42', '2013-03-07 15:24:42', 876923740, 201799169)
|
55304
|
+
[1m[36mFixture Insert (0.2ms)[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-07 15:24:42', '2013-03-07 15:24:42', 864673665, 201799169)[0m
|
55305
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "users"
|
55306
|
+
[1m[36mFixture Insert (0.2ms)[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-07 15:24:42', '2013-03-07 15:24:42', 201799169)[0m
|
55307
|
+
[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-07 15:24:42', '2013-03-07 15:24:42', 999914115)
|
55308
|
+
[1m[36mFixture Insert (0.2ms)[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-07 15:24:42', '2013-03-07 15:24:42', 725306934)[0m
|
55309
|
+
[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-07 15:24:42', '2013-03-07 15:24:42', 349534908)
|
55310
|
+
[1m[36m (26.0ms)[0m [1mcommit transaction[0m
|
55311
|
+
[1m[35m (0.2ms)[0m begin transaction
|
55312
|
+
[1m[36mAuthentication Load (0.5ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
55313
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
55314
|
+
--------------------------------------------------------------------------------
|
55315
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
55316
|
+
--------------------------------------------------------------------------------
|
55317
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55318
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
55319
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
55320
|
+
-------------------------------------------------------------------------
|
55321
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
55322
|
+
-------------------------------------------------------------------------
|
55323
|
+
[1m[35m (0.2ms)[0m begin transaction
|
55324
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55325
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
55326
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
55327
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
55328
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:24:42 UTC", "updated_at"=>"2013-03-07 15:24:42 UTC"}}
|
55329
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
55330
|
+
[1m[36mUser Load (0.8ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55331
|
+
Logged in user found, creating associated authentication.
|
55332
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
55333
|
+
[1m[36mSQL (5.2ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:24:43 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:24:43 UTC +00:00], ["user_id", 201799169]]
|
55334
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55335
|
+
Redirected to http://test.host/authentications
|
55336
|
+
Completed 302 Found in 65ms (ActiveRecord: 6.4ms)
|
55337
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
55338
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
55339
|
+
--------------------------------------------------------------------------
|
55340
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
55341
|
+
--------------------------------------------------------------------------
|
55342
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55343
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55344
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
55345
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
55346
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
55347
|
+
Parameters: {"id"=>"949717663"}
|
55348
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55349
|
+
[1m[35mAuthentication Load (0.3ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
55350
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55351
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
55352
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55353
|
+
Redirected to http://test.host/authentications
|
55354
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.2ms)
|
55355
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
55356
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
55357
|
+
-------------------------------------------------------------
|
55358
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
55359
|
+
-------------------------------------------------------------
|
55360
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55361
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55362
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
55363
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
55364
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55365
|
+
[1m[35mAuthentication Exists (0.4ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
55366
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
55367
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (39.0ms)
|
55368
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.9ms)
|
55369
|
+
Completed 200 OK in 294ms (Views: 288.7ms | ActiveRecord: 0.8ms)
|
55370
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55371
|
+
-----------------------------------------------------------------------------
|
55372
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
55373
|
+
-----------------------------------------------------------------------------
|
55374
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55375
|
+
Processing by Contour::PasswordsController#create as HTML
|
55376
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
55377
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
55378
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'Hw4Nb7oXowtWapWHkHma' LIMIT 1[0m
|
55379
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
55380
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "Hw4Nb7oXowtWapWHkHma"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:24:43 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:24:43 UTC +00:00]]
|
55381
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55382
|
+
|
55383
|
+
Sent mail to valid@example.com (97.1ms)
|
55384
|
+
Date: Thu, 07 Mar 2013 10:24:43 -0500
|
55385
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
55386
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
55387
|
+
To: valid@example.com
|
55388
|
+
Message-ID: <5138b13bd0d4a_12a403fe716035ad8502a9@edge2.partners.org.mail>
|
55389
|
+
Subject: Reset password instructions
|
55390
|
+
Mime-Version: 1.0
|
55391
|
+
Content-Type: text/html;
|
55392
|
+
charset=UTF-8
|
55393
|
+
Content-Transfer-Encoding: 7bit
|
55394
|
+
|
55395
|
+
<p>Hello valid@example.com!</p>
|
55396
|
+
|
55397
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
55398
|
+
|
55399
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=Hw4Nb7oXowtWapWHkHma">Change my password</a></p>
|
55400
|
+
|
55401
|
+
<p>If you didn't request this, please ignore this email.</p>
|
55402
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
55403
|
+
|
55404
|
+
Redirected to http://test.host/users/login
|
55405
|
+
Completed 302 Found in 234ms (ActiveRecord: 0.0ms)
|
55406
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
55407
|
+
-----------------------------------------------------------------------------
|
55408
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
55409
|
+
-----------------------------------------------------------------------------
|
55410
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55411
|
+
Processing by Contour::PasswordsController#new as HTML
|
55412
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (4.5ms)
|
55413
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (22.6ms)
|
55414
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (29.3ms)
|
55415
|
+
Completed 200 OK in 78ms (Views: 76.5ms | ActiveRecord: 0.0ms)
|
55416
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
55417
|
+
----------------------------------------------------------------------
|
55418
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
55419
|
+
----------------------------------------------------------------------
|
55420
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55421
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55422
|
+
Processing by Contour::SessionsController#create as JSON
|
55423
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
55424
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
55425
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55426
|
+
[1m[35mSQL (0.9ms)[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", Thu, 07 Mar 2013 15:24:44 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:24:44 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:24:44 UTC +00:00]]
|
55427
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55428
|
+
Completed 200 OK in 324ms (Views: 0.8ms | ActiveRecord: 1.4ms)
|
55429
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
55430
|
+
-----------------------------------------------------
|
55431
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
55432
|
+
-----------------------------------------------------
|
55433
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
55434
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55435
|
+
---------------------------------------------------------------------
|
55436
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
55437
|
+
---------------------------------------------------------------------
|
55438
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55439
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55440
|
+
-----------------------
|
55441
|
+
ContourTest: test_truth
|
55442
|
+
-----------------------
|
55443
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
55444
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55445
|
+
--------------------------------------------------------------------
|
55446
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
55447
|
+
--------------------------------------------------------------------
|
55448
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
55449
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55450
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55451
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55452
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:24:44 -0500
|
55453
|
+
Processing by WelcomeController#logged_in_page as HTML
|
55454
|
+
Completed 401 Unauthorized in 40ms
|
55455
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
55456
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
55457
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
55458
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:24:44 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$DRsIdOnHBVBiDbIrqF2IoOtrKOf/icZ2uwU.A/HQiueT6.7vMlE.u"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:24:44 UTC +00:00]]
|
55459
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55460
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55461
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
55462
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
55463
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
55464
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
55465
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
|
55466
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:24:44 -0500
|
55467
|
+
Processing by Contour::SessionsController#create as HTML
|
55468
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
55469
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
55470
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
55471
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55472
|
+
Completed 401 Unauthorized in 21ms
|
55473
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:24:44 -0500
|
55474
|
+
Processing by Contour::SessionsController#new as HTML
|
55475
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.8ms)
|
55476
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.5ms)
|
55477
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.3ms)
|
55478
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.8ms)
|
55479
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (10.3ms)
|
55480
|
+
Completed 200 OK in 126ms (Views: 123.4ms | ActiveRecord: 0.0ms)
|
55481
|
+
[1m[35m (29.4ms)[0m rollback transaction
|
55482
|
+
--------------------------------------------------------
|
55483
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
55484
|
+
--------------------------------------------------------
|
55485
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55486
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55487
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55488
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55489
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
|
55490
|
+
Processing by WelcomeController#logged_in_page as HTML
|
55491
|
+
Completed 401 Unauthorized in 2ms
|
55492
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
55493
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
55494
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
55495
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$iB8HXtORdn/OapKdQkHjGOt9.ZYclXdQTnfcaXzPzbQVuYqwVV9/O"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00]]
|
55496
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
55497
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55498
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
55499
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
55500
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55501
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
55502
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
55503
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
|
55504
|
+
Processing by Contour::SessionsController#create as HTML
|
55505
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
55506
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
55507
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
55508
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "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[0m [["last_sign_in_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:24: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", Thu, 07 Mar 2013 15:24:45 UTC +00:00]]
|
55509
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55510
|
+
Redirected to http://www.example.com/logged_in_page
|
55511
|
+
Completed 302 Found in 24ms (ActiveRecord: 0.0ms)
|
55512
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
|
55513
|
+
Processing by WelcomeController#logged_in_page as HTML
|
55514
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55515
|
+
Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.2ms)
|
55516
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
55517
|
+
--------------------------------------------------------------------
|
55518
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
55519
|
+
--------------------------------------------------------------------
|
55520
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55521
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55522
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55523
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55524
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
|
55525
|
+
Processing by WelcomeController#logged_in_page as HTML
|
55526
|
+
Completed 401 Unauthorized in 2ms
|
55527
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55528
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
55529
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
55530
|
+
[1m[36mSQL (16.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$e0r87irUALmT5eD2ji.Tl.CEb9HD1YfKnk.4Wf9lwLn0lod8swYn6"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00]]
|
55531
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55532
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55533
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
55534
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
55535
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55536
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116[0m
|
55537
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
55538
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
|
55539
|
+
Processing by Contour::SessionsController#create as HTML
|
55540
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
55541
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
55542
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
55543
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55544
|
+
Completed 401 Unauthorized in 15ms
|
55545
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
|
55546
|
+
Processing by Contour::SessionsController#new as HTML
|
55547
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.1ms)
|
55548
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.2ms)
|
55549
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
55550
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.4ms)
|
55551
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.8ms)
|
55552
|
+
Completed 200 OK in 42ms (Views: 38.9ms | ActiveRecord: 0.0ms)
|
55553
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
55554
|
+
-------------------------------------------------------------
|
55555
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
55556
|
+
-------------------------------------------------------------
|
55557
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
55558
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55559
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55560
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55561
|
+
Started GET "/" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
|
55562
|
+
Processing by WelcomeController#index as HTML
|
55563
|
+
Completed 401 Unauthorized in 4ms
|
55564
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
55565
|
+
-------------------------------------------------------------------------
|
55566
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
55567
|
+
-------------------------------------------------------------------------
|
55568
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55569
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55570
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
55571
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
55572
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
|
55573
|
+
Processing by WelcomeController#logged_in_page as JSON
|
55574
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
55575
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55576
|
+
[1m[35mSQL (0.7ms)[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", Thu, 07 Mar 2013 15:24:45 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00]]
|
55577
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55578
|
+
Completed 200 OK in 324ms (Views: 0.7ms | ActiveRecord: 1.3ms)
|
55579
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
55580
|
+
------------------------------------------------------------------------------------------------
|
55581
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
55582
|
+
------------------------------------------------------------------------------------------------
|
55583
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55584
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55585
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55586
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55587
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
|
55588
|
+
Processing by WelcomeController#logged_in_page as JSON
|
55589
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
55590
|
+
Completed 401 Unauthorized in 314ms
|
55591
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55592
|
+
------------------------------------
|
55593
|
+
UserTest: test_should_apply_omniauth
|
55594
|
+
------------------------------------
|
55595
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55596
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55597
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
55598
|
+
--------------------------------------
|
55599
|
+
UserTest: test_should_get_reverse_name
|
55600
|
+
--------------------------------------
|
55601
|
+
[1m[35m (0.2ms)[0m begin transaction
|
55602
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55603
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55604
|
+
-------------------------------------------------
|
55605
|
+
AuthenticationTest: test_should_get_provider_name
|
55606
|
+
-------------------------------------------------
|
55607
|
+
[1m[36m (19.6ms)[0m [1mbegin transaction[0m
|
55608
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "authentications"
|
55609
|
+
[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-07 15:25:25', '2013-03-07 15:25:25', 949717663, 201799169)[0m
|
55610
|
+
[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-07 15:25:25', '2013-03-07 15:25:25', 876923740, 201799169)
|
55611
|
+
[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-07 15:25:25', '2013-03-07 15:25:25', 864673665, 201799169)[0m
|
55612
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "users"
|
55613
|
+
[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-07 15:25:25', '2013-03-07 15:25:25', 201799169)[0m
|
55614
|
+
[1m[35mFixture Insert (0.2ms)[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-07 15:25:25', '2013-03-07 15:25:25', 999914115)
|
55615
|
+
[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-07 15:25:25', '2013-03-07 15:25:25', 725306934)[0m
|
55616
|
+
[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-07 15:25:25', '2013-03-07 15:25:25', 349534908)
|
55617
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
55618
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55619
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
55620
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
55621
|
+
--------------------------------------------------------------------------------
|
55622
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
55623
|
+
--------------------------------------------------------------------------------
|
55624
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55625
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
55626
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
55627
|
+
-------------------------------------------------------------------------
|
55628
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
55629
|
+
-------------------------------------------------------------------------
|
55630
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55631
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55632
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
55633
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
55634
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
55635
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:25:25 UTC", "updated_at"=>"2013-03-07 15:25:25 UTC"}}
|
55636
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
55637
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55638
|
+
Logged in user found, creating associated authentication.
|
55639
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
55640
|
+
[1m[36mSQL (3.3ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:25:25 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:25:25 UTC +00:00], ["user_id", 201799169]]
|
55641
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55642
|
+
Redirected to http://test.host/authentications
|
55643
|
+
Completed 302 Found in 56ms (ActiveRecord: 4.0ms)
|
55644
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
55645
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
55646
|
+
--------------------------------------------------------------------------
|
55647
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
55648
|
+
--------------------------------------------------------------------------
|
55649
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55650
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55651
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
55652
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "authentications"
|
55653
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
55654
|
+
Parameters: {"id"=>"949717663"}
|
55655
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55656
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
55657
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55658
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
55659
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55660
|
+
Redirected to http://test.host/authentications
|
55661
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
|
55662
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
55663
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
55664
|
+
-------------------------------------------------------------
|
55665
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
55666
|
+
-------------------------------------------------------------
|
55667
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55668
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55669
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
55670
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
55671
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55672
|
+
[1m[35mAuthentication Exists (0.3ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
55673
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
55674
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (31.2ms)
|
55675
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.2ms)
|
55676
|
+
Completed 200 OK in 279ms (Views: 273.3ms | ActiveRecord: 0.8ms)
|
55677
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55678
|
+
-----------------------------------------------------------------------------
|
55679
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
55680
|
+
-----------------------------------------------------------------------------
|
55681
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55682
|
+
Processing by Contour::PasswordsController#create as HTML
|
55683
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
55684
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
55685
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'k7GxYqyiLHycfQEoqBEA' LIMIT 1[0m
|
55686
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
55687
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "k7GxYqyiLHycfQEoqBEA"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:25:25 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:25:25 UTC +00:00]]
|
55688
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55689
|
+
|
55690
|
+
Sent mail to valid@example.com (100.0ms)
|
55691
|
+
Date: Thu, 07 Mar 2013 10:25:25 -0500
|
55692
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
55693
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
55694
|
+
To: valid@example.com
|
55695
|
+
Message-ID: <5138b165e5a12_12a613fef80c35adc988cc@edge2.partners.org.mail>
|
55696
|
+
Subject: Reset password instructions
|
55697
|
+
Mime-Version: 1.0
|
55698
|
+
Content-Type: text/html;
|
55699
|
+
charset=UTF-8
|
55700
|
+
Content-Transfer-Encoding: 7bit
|
55701
|
+
|
55702
|
+
<p>Hello valid@example.com!</p>
|
55703
|
+
|
55704
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
55705
|
+
|
55706
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=k7GxYqyiLHycfQEoqBEA">Change my password</a></p>
|
55707
|
+
|
55708
|
+
<p>If you didn't request this, please ignore this email.</p>
|
55709
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
55710
|
+
|
55711
|
+
Redirected to http://test.host/users/login
|
55712
|
+
Completed 302 Found in 237ms (ActiveRecord: 0.0ms)
|
55713
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
55714
|
+
-----------------------------------------------------------------------------
|
55715
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
55716
|
+
-----------------------------------------------------------------------------
|
55717
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55718
|
+
Processing by Contour::PasswordsController#new as HTML
|
55719
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.3ms)
|
55720
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (23.1ms)
|
55721
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (28.8ms)
|
55722
|
+
Completed 200 OK in 78ms (Views: 76.9ms | ActiveRecord: 0.0ms)
|
55723
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
55724
|
+
----------------------------------------------------------------------
|
55725
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
55726
|
+
----------------------------------------------------------------------
|
55727
|
+
[1m[35m (0.2ms)[0m begin transaction
|
55728
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55729
|
+
Processing by Contour::SessionsController#create as JSON
|
55730
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
55731
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
55732
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55733
|
+
[1m[35mSQL (1.1ms)[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", Thu, 07 Mar 2013 15:25:26 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00]]
|
55734
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55735
|
+
Completed 200 OK in 320ms (Views: 1.0ms | ActiveRecord: 1.6ms)
|
55736
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
55737
|
+
-----------------------------------------------------
|
55738
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
55739
|
+
-----------------------------------------------------
|
55740
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55741
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
55742
|
+
---------------------------------------------------------------------
|
55743
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
55744
|
+
---------------------------------------------------------------------
|
55745
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55746
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55747
|
+
-----------------------
|
55748
|
+
ContourTest: test_truth
|
55749
|
+
-----------------------
|
55750
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55751
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55752
|
+
--------------------------------------------------------------------
|
55753
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
55754
|
+
--------------------------------------------------------------------
|
55755
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55756
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55757
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55758
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55759
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:25:26 -0500
|
55760
|
+
Processing by WelcomeController#logged_in_page as HTML
|
55761
|
+
Completed 401 Unauthorized in 34ms
|
55762
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
55763
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
55764
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
55765
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$CJJFkSx002EXRrbIPhuT0u6/Bp7iiCL/j0mZxJN7OoRyi1xfvMyxq"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00]]
|
55766
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55767
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55768
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
55769
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
55770
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55771
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
55772
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
|
55773
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:25:26 -0500
|
55774
|
+
Processing by Contour::SessionsController#create as HTML
|
55775
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
55776
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
55777
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
55778
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55779
|
+
Completed 401 Unauthorized in 18ms
|
55780
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:25:26 -0500
|
55781
|
+
Processing by Contour::SessionsController#new as HTML
|
55782
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
|
55783
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (7.1ms)
|
55784
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.3ms)
|
55785
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.7ms)
|
55786
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.7ms)
|
55787
|
+
Completed 200 OK in 112ms (Views: 108.5ms | ActiveRecord: 0.0ms)
|
55788
|
+
[1m[35m (36.2ms)[0m rollback transaction
|
55789
|
+
--------------------------------------------------------
|
55790
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
55791
|
+
--------------------------------------------------------
|
55792
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
55793
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55794
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55795
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55796
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:25:26 -0500
|
55797
|
+
Processing by WelcomeController#logged_in_page as HTML
|
55798
|
+
Completed 401 Unauthorized in 3ms
|
55799
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
55800
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
55801
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
55802
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$m74iW96gKS28oxGVb3Y7lONMySpTk0Qy28DufrOKioKi.ArJbtZNm"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00]]
|
55803
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55804
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
55805
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
55806
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
55807
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55808
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
55809
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
55810
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
|
55811
|
+
Processing by Contour::SessionsController#create as HTML
|
55812
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
55813
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
55814
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
55815
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "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[0m [["last_sign_in_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:25:27 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", Thu, 07 Mar 2013 15:25:27 UTC +00:00]]
|
55816
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
55817
|
+
Redirected to http://www.example.com/logged_in_page
|
55818
|
+
Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
|
55819
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
|
55820
|
+
Processing by WelcomeController#logged_in_page as HTML
|
55821
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55822
|
+
Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 0.2ms)
|
55823
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
55824
|
+
--------------------------------------------------------------------
|
55825
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
55826
|
+
--------------------------------------------------------------------
|
55827
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55828
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55829
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55830
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55831
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
|
55832
|
+
Processing by WelcomeController#logged_in_page as HTML
|
55833
|
+
Completed 401 Unauthorized in 2ms
|
55834
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
55835
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
55836
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
55837
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$SuoKejjUzCoSzaQRcOiuNOFphHsMRVO66eZQaD0RzxCBm.7ks.8La"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00]]
|
55838
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
55839
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
55840
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
55841
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
55842
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55843
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116[0m
|
55844
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
55845
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
|
55846
|
+
Processing by Contour::SessionsController#create as HTML
|
55847
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
55848
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
55849
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
55850
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55851
|
+
Completed 401 Unauthorized in 15ms
|
55852
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
|
55853
|
+
Processing by Contour::SessionsController#new as HTML
|
55854
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.2ms)
|
55855
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.6ms)
|
55856
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
55857
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.1ms)
|
55858
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.1ms)
|
55859
|
+
Completed 200 OK in 42ms (Views: 39.5ms | ActiveRecord: 0.0ms)
|
55860
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
55861
|
+
-------------------------------------------------------------
|
55862
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
55863
|
+
-------------------------------------------------------------
|
55864
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
55865
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55866
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55867
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55868
|
+
Started GET "/" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
|
55869
|
+
Processing by WelcomeController#index as HTML
|
55870
|
+
Completed 401 Unauthorized in 2ms
|
55871
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
55872
|
+
-------------------------------------------------------------------------
|
55873
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
55874
|
+
-------------------------------------------------------------------------
|
55875
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55876
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55877
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
55878
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
55879
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
|
55880
|
+
Processing by WelcomeController#logged_in_page as JSON
|
55881
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
55882
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
55883
|
+
[1m[35mSQL (0.9ms)[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", Thu, 07 Mar 2013 15:25:27 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00]]
|
55884
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55885
|
+
Completed 200 OK in 327ms (Views: 0.4ms | ActiveRecord: 1.5ms)
|
55886
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
55887
|
+
------------------------------------------------------------------------------------------------
|
55888
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
55889
|
+
------------------------------------------------------------------------------------------------
|
55890
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55891
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55892
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
55893
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
55894
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
|
55895
|
+
Processing by WelcomeController#logged_in_page as JSON
|
55896
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
55897
|
+
Completed 401 Unauthorized in 319ms
|
55898
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55899
|
+
------------------------------------
|
55900
|
+
UserTest: test_should_apply_omniauth
|
55901
|
+
------------------------------------
|
55902
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55903
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55904
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
55905
|
+
--------------------------------------
|
55906
|
+
UserTest: test_should_get_reverse_name
|
55907
|
+
--------------------------------------
|
55908
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55909
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55910
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55911
|
+
-------------------------------------------------
|
55912
|
+
AuthenticationTest: test_should_get_provider_name
|
55913
|
+
-------------------------------------------------
|
55914
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
55915
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "authentications"
|
55916
|
+
[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-07 15:26:10', '2013-03-07 15:26:10', 949717663, 201799169)[0m
|
55917
|
+
[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-07 15:26:10', '2013-03-07 15:26:10', 876923740, 201799169)
|
55918
|
+
[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-07 15:26:10', '2013-03-07 15:26:10', 864673665, 201799169)[0m
|
55919
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
55920
|
+
[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-07 15:26:10', '2013-03-07 15:26:10', 201799169)[0m
|
55921
|
+
[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-07 15:26:10', '2013-03-07 15:26:10', 999914115)
|
55922
|
+
[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-07 15:26:10', '2013-03-07 15:26:10', 725306934)[0m
|
55923
|
+
[1m[35mFixture Insert (0.2ms)[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-07 15:26:10', '2013-03-07 15:26:10', 349534908)
|
55924
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
55925
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55926
|
+
[1m[36mAuthentication Load (0.4ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
55927
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
55928
|
+
--------------------------------------------------------------------------------
|
55929
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
55930
|
+
--------------------------------------------------------------------------------
|
55931
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55932
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
55933
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
55934
|
+
-------------------------------------------------------------------------
|
55935
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
55936
|
+
-------------------------------------------------------------------------
|
55937
|
+
[1m[35m (0.2ms)[0m begin transaction
|
55938
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55939
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
55940
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
55941
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
55942
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:26:10 UTC", "updated_at"=>"2013-03-07 15:26:10 UTC"}}
|
55943
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
55944
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55945
|
+
Logged in user found, creating associated authentication.
|
55946
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
55947
|
+
[1m[36mSQL (3.8ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:26:10 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:26:10 UTC +00:00], ["user_id", 201799169]]
|
55948
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
55949
|
+
Redirected to http://test.host/authentications
|
55950
|
+
Completed 302 Found in 55ms (ActiveRecord: 4.5ms)
|
55951
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
55952
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
55953
|
+
--------------------------------------------------------------------------
|
55954
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
55955
|
+
--------------------------------------------------------------------------
|
55956
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55957
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
55958
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
55959
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "authentications"
|
55960
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
55961
|
+
Parameters: {"id"=>"949717663"}
|
55962
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55963
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
55964
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
55965
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
55966
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55967
|
+
Redirected to http://test.host/authentications
|
55968
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
|
55969
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
55970
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
55971
|
+
-------------------------------------------------------------
|
55972
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
55973
|
+
-------------------------------------------------------------
|
55974
|
+
[1m[35m (0.1ms)[0m begin transaction
|
55975
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
55976
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
55977
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
55978
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
55979
|
+
[1m[35mAuthentication Exists (0.3ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
55980
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
55981
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (34.7ms)
|
55982
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.4ms)
|
55983
|
+
Completed 200 OK in 282ms (Views: 277.7ms | ActiveRecord: 0.7ms)
|
55984
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
55985
|
+
-----------------------------------------------------------------------------
|
55986
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
55987
|
+
-----------------------------------------------------------------------------
|
55988
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55989
|
+
Processing by Contour::PasswordsController#create as HTML
|
55990
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
55991
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
55992
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'CijUz3ZeSijkcryqoqmf' LIMIT 1[0m
|
55993
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
55994
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "CijUz3ZeSijkcryqoqmf"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:26:10 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:26:10 UTC +00:00]]
|
55995
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
55996
|
+
|
55997
|
+
Sent mail to valid@example.com (96.8ms)
|
55998
|
+
Date: Thu, 07 Mar 2013 10:26:10 -0500
|
55999
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
56000
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
56001
|
+
To: valid@example.com
|
56002
|
+
Message-ID: <5138b192cad1c_12a923fd330c35ad08748@edge2.partners.org.mail>
|
56003
|
+
Subject: Reset password instructions
|
56004
|
+
Mime-Version: 1.0
|
56005
|
+
Content-Type: text/html;
|
56006
|
+
charset=UTF-8
|
56007
|
+
Content-Transfer-Encoding: 7bit
|
56008
|
+
|
56009
|
+
<p>Hello valid@example.com!</p>
|
56010
|
+
|
56011
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
56012
|
+
|
56013
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=CijUz3ZeSijkcryqoqmf">Change my password</a></p>
|
56014
|
+
|
56015
|
+
<p>If you didn't request this, please ignore this email.</p>
|
56016
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
56017
|
+
|
56018
|
+
Redirected to http://test.host/users/login
|
56019
|
+
Completed 302 Found in 235ms (ActiveRecord: 0.0ms)
|
56020
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
56021
|
+
-----------------------------------------------------------------------------
|
56022
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
56023
|
+
-----------------------------------------------------------------------------
|
56024
|
+
[1m[35m (0.2ms)[0m begin transaction
|
56025
|
+
Processing by Contour::PasswordsController#new as HTML
|
56026
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.1ms)
|
56027
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (20.5ms)
|
56028
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (26.4ms)
|
56029
|
+
Completed 200 OK in 73ms (Views: 71.5ms | ActiveRecord: 0.0ms)
|
56030
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56031
|
+
----------------------------------------------------------------------
|
56032
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
56033
|
+
----------------------------------------------------------------------
|
56034
|
+
[1m[35m (0.2ms)[0m begin transaction
|
56035
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56036
|
+
Processing by Contour::SessionsController#create as JSON
|
56037
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
56038
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
56039
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56040
|
+
[1m[35mSQL (14.6ms)[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", Thu, 07 Mar 2013 15:26:11 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:26:11 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:26:11 UTC +00:00]]
|
56041
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56042
|
+
Completed 200 OK in 346ms (Views: 1.1ms | ActiveRecord: 15.4ms)
|
56043
|
+
[1m[35m (145.8ms)[0m rollback transaction
|
56044
|
+
-----------------------------------------------------
|
56045
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
56046
|
+
-----------------------------------------------------
|
56047
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56048
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56049
|
+
---------------------------------------------------------------------
|
56050
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
56051
|
+
---------------------------------------------------------------------
|
56052
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56053
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
56054
|
+
-----------------------
|
56055
|
+
ContourTest: test_truth
|
56056
|
+
-----------------------
|
56057
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
56058
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56059
|
+
--------------------------------------------------------------------
|
56060
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
56061
|
+
--------------------------------------------------------------------
|
56062
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56063
|
+
[1m[35mUser Load (16.7ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56064
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
56065
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
56066
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:26:11 -0500
|
56067
|
+
Processing by WelcomeController#logged_in_page as HTML
|
56068
|
+
Completed 401 Unauthorized in 116ms
|
56069
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56070
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
56071
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
56072
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:26:11 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$HoOE2b7WgtgMe3gZBuaoIejHglQHWnCqAyDu9It.tJ2akxPxm.INu"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:26:11 UTC +00:00]]
|
56073
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56074
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56075
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
56076
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
56077
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56078
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
56079
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
|
56080
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:26:11 -0500
|
56081
|
+
Processing by Contour::SessionsController#create as HTML
|
56082
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
56083
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
56084
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
56085
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56086
|
+
Completed 401 Unauthorized in 18ms
|
56087
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
|
56088
|
+
Processing by Contour::SessionsController#new as HTML
|
56089
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
|
56090
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (7.1ms)
|
56091
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.4ms)
|
56092
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.1ms)
|
56093
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.9ms)
|
56094
|
+
Completed 200 OK in 113ms (Views: 110.9ms | ActiveRecord: 0.0ms)
|
56095
|
+
[1m[35m (377.1ms)[0m rollback transaction
|
56096
|
+
--------------------------------------------------------
|
56097
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
56098
|
+
--------------------------------------------------------
|
56099
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56100
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56101
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
56102
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
56103
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
|
56104
|
+
Processing by WelcomeController#logged_in_page as HTML
|
56105
|
+
Completed 401 Unauthorized in 2ms
|
56106
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56107
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
56108
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
56109
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$23Sun5mlnlyG6tR6MGdfMOeqEohGCx1uv.1ZM.tutua4Mr86IOKQq"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00]]
|
56110
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
56111
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56112
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
56113
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
56114
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56115
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
56116
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
56117
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
|
56118
|
+
Processing by Contour::SessionsController#create as HTML
|
56119
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
56120
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
56121
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
56122
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "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[0m [["last_sign_in_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00]]
|
56123
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56124
|
+
Redirected to http://www.example.com/logged_in_page
|
56125
|
+
Completed 302 Found in 25ms (ActiveRecord: 0.0ms)
|
56126
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
|
56127
|
+
Processing by WelcomeController#logged_in_page as HTML
|
56128
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1[0m
|
56129
|
+
Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.2ms)
|
56130
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
56131
|
+
--------------------------------------------------------------------
|
56132
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
56133
|
+
--------------------------------------------------------------------
|
56134
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56135
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56136
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
56137
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
56138
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
|
56139
|
+
Processing by WelcomeController#logged_in_page as HTML
|
56140
|
+
Completed 401 Unauthorized in 2ms
|
56141
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56142
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
56143
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
56144
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$DD/woUWC6NruWeWPHs/U7.biQKZW31DzISlzYWdJ5yyxv7SFZvFxW"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00]]
|
56145
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
56146
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
56147
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
56148
|
+
[1m[36mAuthentication Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
56149
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
56150
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116[0m
|
56151
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
|
56152
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
|
56153
|
+
Processing by Contour::SessionsController#create as HTML
|
56154
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
56155
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
56156
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56157
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56158
|
+
Completed 401 Unauthorized in 17ms
|
56159
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
|
56160
|
+
Processing by Contour::SessionsController#new as HTML
|
56161
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.8ms)
|
56162
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (6.1ms)
|
56163
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.2ms)
|
56164
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.0ms)
|
56165
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.9ms)
|
56166
|
+
Completed 200 OK in 53ms (Views: 50.0ms | ActiveRecord: 0.0ms)
|
56167
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
56168
|
+
-------------------------------------------------------------
|
56169
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
56170
|
+
-------------------------------------------------------------
|
56171
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56172
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56173
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
56174
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
56175
|
+
Started GET "/" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
|
56176
|
+
Processing by WelcomeController#index as HTML
|
56177
|
+
Completed 401 Unauthorized in 2ms
|
56178
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
56179
|
+
-------------------------------------------------------------------------
|
56180
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
56181
|
+
-------------------------------------------------------------------------
|
56182
|
+
[1m[35m (0.2ms)[0m begin transaction
|
56183
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56184
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
56185
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
56186
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
|
56187
|
+
Processing by WelcomeController#logged_in_page as JSON
|
56188
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
56189
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
56190
|
+
[1m[35mSQL (0.7ms)[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", Thu, 07 Mar 2013 15:26:13 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:26:13 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:26:13 UTC +00:00]]
|
56191
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56192
|
+
Completed 200 OK in 356ms (Views: 0.4ms | ActiveRecord: 1.3ms)
|
56193
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
56194
|
+
------------------------------------------------------------------------------------------------
|
56195
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
56196
|
+
------------------------------------------------------------------------------------------------
|
56197
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56198
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56199
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
56200
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
56201
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:26:13 -0500
|
56202
|
+
Processing by WelcomeController#logged_in_page as JSON
|
56203
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
56204
|
+
Completed 401 Unauthorized in 320ms
|
56205
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56206
|
+
------------------------------------
|
56207
|
+
UserTest: test_should_apply_omniauth
|
56208
|
+
------------------------------------
|
56209
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56210
|
+
[1m[35mUser Load (0.6ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56211
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
56212
|
+
--------------------------------------
|
56213
|
+
UserTest: test_should_get_reverse_name
|
56214
|
+
--------------------------------------
|
56215
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56216
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56217
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56218
|
+
-------------------------------------------------
|
56219
|
+
AuthenticationTest: test_should_get_provider_name
|
56220
|
+
-------------------------------------------------
|
56221
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
56222
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "authentications"
|
56223
|
+
[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-07 15:28:09', '2013-03-07 15:28:09', 949717663, 201799169)[0m
|
56224
|
+
[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-07 15:28:09', '2013-03-07 15:28:09', 876923740, 201799169)
|
56225
|
+
[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-07 15:28:09', '2013-03-07 15:28:09', 864673665, 201799169)[0m
|
56226
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
56227
|
+
[1m[36mFixture Insert (0.2ms)[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-07 15:28:09', '2013-03-07 15:28:09', 201799169)[0m
|
56228
|
+
[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-07 15:28:09', '2013-03-07 15:28:09', 999914115)
|
56229
|
+
[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-07 15:28:09', '2013-03-07 15:28:09', 725306934)[0m
|
56230
|
+
[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-07 15:28:09', '2013-03-07 15:28:09', 349534908)
|
56231
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
56232
|
+
[1m[35m (0.2ms)[0m begin transaction
|
56233
|
+
[1m[36mAuthentication Load (0.4ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
56234
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
56235
|
+
--------------------------------------------------------------------------------
|
56236
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
56237
|
+
--------------------------------------------------------------------------------
|
56238
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56239
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
56240
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56241
|
+
-------------------------------------------------------------------------
|
56242
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
56243
|
+
-------------------------------------------------------------------------
|
56244
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56245
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56246
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
56247
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
56248
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
56249
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:28:09 UTC", "updated_at"=>"2013-03-07 15:28:09 UTC"}}
|
56250
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
56251
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
56252
|
+
Logged in user found, creating associated authentication.
|
56253
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56254
|
+
[1m[36mSQL (3.5ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:28:10 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:28:10 UTC +00:00], ["user_id", 201799169]]
|
56255
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56256
|
+
Redirected to http://test.host/authentications
|
56257
|
+
Completed 302 Found in 57ms (ActiveRecord: 4.2ms)
|
56258
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
56259
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
56260
|
+
--------------------------------------------------------------------------
|
56261
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
56262
|
+
--------------------------------------------------------------------------
|
56263
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56264
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56265
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
56266
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
56267
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
56268
|
+
Parameters: {"id"=>"949717663"}
|
56269
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
56270
|
+
[1m[35mAuthentication Load (0.3ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
56271
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56272
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
56273
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56274
|
+
Redirected to http://test.host/authentications
|
56275
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.3ms)
|
56276
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
56277
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
56278
|
+
-------------------------------------------------------------
|
56279
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
56280
|
+
-------------------------------------------------------------
|
56281
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56282
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56283
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
56284
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
56285
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
56286
|
+
[1m[35mAuthentication Exists (0.3ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
56287
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
56288
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (32.3ms)
|
56289
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (6.4ms)
|
56290
|
+
Completed 200 OK in 283ms (Views: 278.3ms | ActiveRecord: 0.8ms)
|
56291
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56292
|
+
-----------------------------------------------------------------------------
|
56293
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
56294
|
+
-----------------------------------------------------------------------------
|
56295
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56296
|
+
Processing by Contour::PasswordsController#create as HTML
|
56297
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
56298
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
56299
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'btdx5ugTfeNmdiyFxo3G' LIMIT 1[0m
|
56300
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56301
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "btdx5ugTfeNmdiyFxo3G"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:28:10 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:28:10 UTC +00:00]]
|
56302
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
56303
|
+
|
56304
|
+
Sent mail to valid@example.com (100.0ms)
|
56305
|
+
Date: Thu, 07 Mar 2013 10:28:10 -0500
|
56306
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
56307
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
56308
|
+
To: valid@example.com
|
56309
|
+
Message-ID: <5138b20a9e177_12b1c3ff8a9035ad4915ad@edge2.partners.org.mail>
|
56310
|
+
Subject: Reset password instructions
|
56311
|
+
Mime-Version: 1.0
|
56312
|
+
Content-Type: text/html;
|
56313
|
+
charset=UTF-8
|
56314
|
+
Content-Transfer-Encoding: 7bit
|
56315
|
+
|
56316
|
+
<p>Hello valid@example.com!</p>
|
56317
|
+
|
56318
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
56319
|
+
|
56320
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=btdx5ugTfeNmdiyFxo3G">Change my password</a></p>
|
56321
|
+
|
56322
|
+
<p>If you didn't request this, please ignore this email.</p>
|
56323
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
56324
|
+
|
56325
|
+
Redirected to http://test.host/users/login
|
56326
|
+
Completed 302 Found in 238ms (ActiveRecord: 0.0ms)
|
56327
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
56328
|
+
-----------------------------------------------------------------------------
|
56329
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
56330
|
+
-----------------------------------------------------------------------------
|
56331
|
+
[1m[35m (0.2ms)[0m begin transaction
|
56332
|
+
Processing by Contour::PasswordsController#new as HTML
|
56333
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.4ms)
|
56334
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (21.2ms)
|
56335
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (28.0ms)
|
56336
|
+
Completed 200 OK in 77ms (Views: 75.2ms | ActiveRecord: 0.0ms)
|
56337
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56338
|
+
----------------------------------------------------------------------
|
56339
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
56340
|
+
----------------------------------------------------------------------
|
56341
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56342
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56343
|
+
Processing by Contour::SessionsController#create as JSON
|
56344
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
56345
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
56346
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56347
|
+
[1m[35mSQL (0.9ms)[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", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00]]
|
56348
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56349
|
+
Completed 200 OK in 321ms (Views: 0.8ms | ActiveRecord: 1.5ms)
|
56350
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
56351
|
+
--------------------------------------------------------------------------
|
56352
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
56353
|
+
--------------------------------------------------------------------------
|
56354
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56355
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56356
|
+
Processing by Contour::SessionsController#create as HTML
|
56357
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
56358
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
56359
|
+
[1m[35m (0.3ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
|
56360
|
+
Redirected to http://test.host/auth/ldap
|
56361
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
|
56362
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
56363
|
+
-----------------------------------------------------
|
56364
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
56365
|
+
-----------------------------------------------------
|
56366
|
+
[1m[35m (0.2ms)[0m begin transaction
|
56367
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
56368
|
+
---------------------------------------------------------------------
|
56369
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
56370
|
+
---------------------------------------------------------------------
|
56371
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56372
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56373
|
+
-----------------------
|
56374
|
+
ContourTest: test_truth
|
56375
|
+
-----------------------
|
56376
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56377
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56378
|
+
--------------------------------------------------------------------
|
56379
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
56380
|
+
--------------------------------------------------------------------
|
56381
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56382
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56383
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
56384
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
56385
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
|
56386
|
+
Processing by WelcomeController#logged_in_page as HTML
|
56387
|
+
Completed 401 Unauthorized in 33ms
|
56388
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56389
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
56390
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
56391
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$h/ZKszmG04iZMEKo021qeubAE4/q3z5W4f4VmzFNHkWDV57p8FnKa"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00]]
|
56392
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56393
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
56394
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
56395
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
56396
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56397
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
56398
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
56399
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
|
56400
|
+
Processing by Contour::SessionsController#create as HTML
|
56401
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
56402
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
56403
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56404
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56405
|
+
Completed 401 Unauthorized in 18ms
|
56406
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
|
56407
|
+
Processing by Contour::SessionsController#new as HTML
|
56408
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
|
56409
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (6.3ms)
|
56410
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.6ms)
|
56411
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.6ms)
|
56412
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.2ms)
|
56413
|
+
Completed 200 OK in 114ms (Views: 111.6ms | ActiveRecord: 0.0ms)
|
56414
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
56415
|
+
--------------------------------------------------------
|
56416
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
56417
|
+
--------------------------------------------------------
|
56418
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56419
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56420
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
56421
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
56422
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
|
56423
|
+
Processing by WelcomeController#logged_in_page as HTML
|
56424
|
+
Completed 401 Unauthorized in 2ms
|
56425
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56426
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
56427
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
56428
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$EGgi6Qo0M1ZOLGORoSOPPuxTplF2mTBLg/zfv93.py9OJPSHu8xNa"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00]]
|
56429
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56430
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56431
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
56432
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
56433
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56434
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
56435
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
56436
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
|
56437
|
+
Processing by Contour::SessionsController#create as HTML
|
56438
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
56439
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
56440
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56441
|
+
[1m[35mSQL (0.7ms)[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", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:28:11 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", Thu, 07 Mar 2013 15:28:11 UTC +00:00]]
|
56442
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56443
|
+
Redirected to http://www.example.com/logged_in_page
|
56444
|
+
Completed 302 Found in 24ms (ActiveRecord: 0.0ms)
|
56445
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
|
56446
|
+
Processing by WelcomeController#logged_in_page as HTML
|
56447
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
|
56448
|
+
Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 0.2ms)
|
56449
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
56450
|
+
--------------------------------------------------------------------
|
56451
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
56452
|
+
--------------------------------------------------------------------
|
56453
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56454
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56455
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
56456
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
56457
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
|
56458
|
+
Processing by WelcomeController#logged_in_page as HTML
|
56459
|
+
Completed 401 Unauthorized in 2ms
|
56460
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56461
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
56462
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
56463
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$ngpRzphO9Dzidn5S1Smi.e2FuBVO24IMeZuO4zm3vCo3aFtqL86OO"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00]]
|
56464
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56465
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
56466
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
56467
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
56468
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56469
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
56470
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
56471
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
|
56472
|
+
Processing by Contour::SessionsController#create as HTML
|
56473
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
56474
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
56475
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56476
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56477
|
+
Completed 401 Unauthorized in 14ms
|
56478
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
|
56479
|
+
Processing by Contour::SessionsController#new as HTML
|
56480
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
|
56481
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.6ms)
|
56482
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
56483
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.1ms)
|
56484
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.0ms)
|
56485
|
+
Completed 200 OK in 38ms (Views: 36.0ms | ActiveRecord: 0.0ms)
|
56486
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
56487
|
+
-------------------------------------------------------------
|
56488
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
56489
|
+
-------------------------------------------------------------
|
56490
|
+
[1m[35m (0.2ms)[0m begin transaction
|
56491
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56492
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
56493
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
56494
|
+
Started GET "/" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
|
56495
|
+
Processing by WelcomeController#index as HTML
|
56496
|
+
Completed 401 Unauthorized in 3ms
|
56497
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56498
|
+
-------------------------------------------------------------------------
|
56499
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
56500
|
+
-------------------------------------------------------------------------
|
56501
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56502
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56503
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
56504
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
56505
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
|
56506
|
+
Processing by WelcomeController#logged_in_page as JSON
|
56507
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
56508
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56509
|
+
[1m[36mSQL (0.8ms)[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", Thu, 07 Mar 2013 15:28:12 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:28:12 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:28:12 UTC +00:00]]
|
56510
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56511
|
+
Completed 200 OK in 330ms (Views: 0.3ms | ActiveRecord: 1.2ms)
|
56512
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
56513
|
+
------------------------------------------------------------------------------------------------
|
56514
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
56515
|
+
------------------------------------------------------------------------------------------------
|
56516
|
+
[1m[35m (0.2ms)[0m begin transaction
|
56517
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56518
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
56519
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
56520
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:28:12 -0500
|
56521
|
+
Processing by WelcomeController#logged_in_page as JSON
|
56522
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
56523
|
+
Completed 401 Unauthorized in 314ms
|
56524
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56525
|
+
------------------------------------
|
56526
|
+
UserTest: test_should_apply_omniauth
|
56527
|
+
------------------------------------
|
56528
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56529
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56530
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56531
|
+
--------------------------------------
|
56532
|
+
UserTest: test_should_get_reverse_name
|
56533
|
+
--------------------------------------
|
56534
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56535
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56536
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
56537
|
+
-------------------------------------------------
|
56538
|
+
AuthenticationTest: test_should_get_provider_name
|
56539
|
+
-------------------------------------------------
|
56540
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
56541
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "authentications"
|
56542
|
+
[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-07 15:29:59', '2013-03-07 15:29:59', 949717663, 201799169)[0m
|
56543
|
+
[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-07 15:29:59', '2013-03-07 15:29:59', 876923740, 201799169)
|
56544
|
+
[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-07 15:29:59', '2013-03-07 15:29:59', 864673665, 201799169)[0m
|
56545
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
56546
|
+
[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-07 15:29:59', '2013-03-07 15:29:59', 201799169)[0m
|
56547
|
+
[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-07 15:29:59', '2013-03-07 15:29:59', 999914115)
|
56548
|
+
[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-07 15:29:59', '2013-03-07 15:29:59', 725306934)[0m
|
56549
|
+
[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-07 15:29:59', '2013-03-07 15:29:59', 349534908)
|
56550
|
+
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
56551
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56552
|
+
[1m[36mAuthentication Load (0.4ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
56553
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
56554
|
+
--------------------------------------------------------------------------------
|
56555
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
56556
|
+
--------------------------------------------------------------------------------
|
56557
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56558
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
56559
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
56560
|
+
-------------------------------------------------------------------------
|
56561
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
56562
|
+
-------------------------------------------------------------------------
|
56563
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56564
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56565
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
56566
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
56567
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
56568
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:29:59 UTC", "updated_at"=>"2013-03-07 15:29:59 UTC"}}
|
56569
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
56570
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
56571
|
+
Logged in user found, creating associated authentication.
|
56572
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
56573
|
+
[1m[36mSQL (3.7ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:29:59 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:29:59 UTC +00:00], ["user_id", 201799169]]
|
56574
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56575
|
+
Redirected to http://test.host/authentications
|
56576
|
+
Completed 302 Found in 57ms (ActiveRecord: 4.5ms)
|
56577
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
56578
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
56579
|
+
--------------------------------------------------------------------------
|
56580
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
56581
|
+
--------------------------------------------------------------------------
|
56582
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56583
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56584
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
56585
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "authentications"
|
56586
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
56587
|
+
Parameters: {"id"=>"949717663"}
|
56588
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
56589
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
56590
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56591
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
56592
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56593
|
+
Redirected to http://test.host/authentications
|
56594
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
|
56595
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
56596
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
56597
|
+
-------------------------------------------------------------
|
56598
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
56599
|
+
-------------------------------------------------------------
|
56600
|
+
[1m[35m (0.2ms)[0m begin transaction
|
56601
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56602
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
56603
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
56604
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
56605
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
56606
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
56607
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (31.0ms)
|
56608
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.5ms)
|
56609
|
+
Completed 200 OK in 304ms (Views: 300.1ms | ActiveRecord: 0.7ms)
|
56610
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
56611
|
+
-----------------------------------------------------------------------------
|
56612
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
56613
|
+
-----------------------------------------------------------------------------
|
56614
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56615
|
+
Processing by Contour::PasswordsController#create as HTML
|
56616
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
56617
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
56618
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'JJgw9stahxBxxg7jyGAd' LIMIT 1[0m
|
56619
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56620
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "JJgw9stahxBxxg7jyGAd"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:30:00 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:30:00 UTC +00:00]]
|
56621
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56622
|
+
|
56623
|
+
Sent mail to valid@example.com (99.8ms)
|
56624
|
+
Date: Thu, 07 Mar 2013 10:30:00 -0500
|
56625
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
56626
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
56627
|
+
To: valid@example.com
|
56628
|
+
Message-ID: <5138b27864c43_12b603fdd58835ad4338a7@edge2.partners.org.mail>
|
56629
|
+
Subject: Reset password instructions
|
56630
|
+
Mime-Version: 1.0
|
56631
|
+
Content-Type: text/html;
|
56632
|
+
charset=UTF-8
|
56633
|
+
Content-Transfer-Encoding: 7bit
|
56634
|
+
|
56635
|
+
<p>Hello valid@example.com!</p>
|
56636
|
+
|
56637
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
56638
|
+
|
56639
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=JJgw9stahxBxxg7jyGAd">Change my password</a></p>
|
56640
|
+
|
56641
|
+
<p>If you didn't request this, please ignore this email.</p>
|
56642
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
56643
|
+
|
56644
|
+
Redirected to http://test.host/users/login
|
56645
|
+
Completed 302 Found in 241ms (ActiveRecord: 0.0ms)
|
56646
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
56647
|
+
-----------------------------------------------------------------------------
|
56648
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
56649
|
+
-----------------------------------------------------------------------------
|
56650
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56651
|
+
Processing by Contour::PasswordsController#new as HTML
|
56652
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.4ms)
|
56653
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (22.4ms)
|
56654
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (33.7ms)
|
56655
|
+
Completed 200 OK in 80ms (Views: 79.1ms | ActiveRecord: 0.0ms)
|
56656
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56657
|
+
----------------------------------------------------------------------
|
56658
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
56659
|
+
----------------------------------------------------------------------
|
56660
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56661
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56662
|
+
Processing by Contour::SessionsController#create as JSON
|
56663
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
56664
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
56665
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56666
|
+
[1m[35mSQL (0.8ms)[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", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00]]
|
56667
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56668
|
+
Completed 200 OK in 325ms (Views: 0.8ms | ActiveRecord: 1.4ms)
|
56669
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
56670
|
+
----------------------------------------------------------------------------------------------------
|
56671
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_invalid_credentials
|
56672
|
+
----------------------------------------------------------------------------------------------------
|
56673
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
56674
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56675
|
+
Processing by Contour::SessionsController#create as HTML
|
56676
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
56677
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
56678
|
+
[1m[35m (0.2ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
|
56679
|
+
Redirected to http://test.host/auth/ldap
|
56680
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
|
56681
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56682
|
+
--------------------------------------------------------------------------
|
56683
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
56684
|
+
--------------------------------------------------------------------------
|
56685
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56686
|
+
Processing by Contour::SessionsController#create as HTML
|
56687
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
56688
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
56689
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
|
56690
|
+
Completed 401 Unauthorized in 7ms
|
56691
|
+
Processing by Contour::SessionsController#new as HTML
|
56692
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
56693
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.4ms)
|
56694
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.3ms)
|
56695
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.1ms)
|
56696
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.9ms)
|
56697
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.5ms)
|
56698
|
+
Completed 200 OK in 57ms (Views: 54.3ms | ActiveRecord: 0.0ms)
|
56699
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
56700
|
+
-----------------------------------------------------
|
56701
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
56702
|
+
-----------------------------------------------------
|
56703
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56704
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56705
|
+
---------------------------------------------------------------------
|
56706
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
56707
|
+
---------------------------------------------------------------------
|
56708
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56709
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56710
|
+
-----------------------
|
56711
|
+
ContourTest: test_truth
|
56712
|
+
-----------------------
|
56713
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56714
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56715
|
+
--------------------------------------------------------------------
|
56716
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
56717
|
+
--------------------------------------------------------------------
|
56718
|
+
[1m[35m (0.2ms)[0m begin transaction
|
56719
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56720
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
56721
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
56722
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
|
56723
|
+
Processing by WelcomeController#logged_in_page as HTML
|
56724
|
+
Completed 401 Unauthorized in 33ms
|
56725
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56726
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
56727
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
56728
|
+
[1m[35mSQL (47.4ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$ywKkX9fyD.97PaGvwSffWO1b3N9dOQUSDCzryCfb9GnwdHEPdwYoe"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00]]
|
56729
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56730
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56731
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
56732
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
56733
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56734
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
56735
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
56736
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
|
56737
|
+
Processing by Contour::SessionsController#create as HTML
|
56738
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
56739
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
56740
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56741
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56742
|
+
Completed 401 Unauthorized in 18ms
|
56743
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
|
56744
|
+
Processing by Contour::SessionsController#new as HTML
|
56745
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
|
56746
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.5ms)
|
56747
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
56748
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.6ms)
|
56749
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.4ms)
|
56750
|
+
Completed 200 OK in 39ms (Views: 36.5ms | ActiveRecord: 0.0ms)
|
56751
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
56752
|
+
--------------------------------------------------------
|
56753
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
56754
|
+
--------------------------------------------------------
|
56755
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56756
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56757
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
56758
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
56759
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
|
56760
|
+
Processing by WelcomeController#logged_in_page as HTML
|
56761
|
+
Completed 401 Unauthorized in 2ms
|
56762
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56763
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
56764
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
56765
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$NmwgoVMVM4Y0NAkb3TuSNerc/T3VapYRm57C1OGrexm4.hYhGfrJ."], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00]]
|
56766
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56767
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56768
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
56769
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
56770
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56771
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
56772
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
56773
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
|
56774
|
+
Processing by Contour::SessionsController#create as HTML
|
56775
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
56776
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
56777
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56778
|
+
[1m[35mSQL (0.5ms)[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", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:30:01 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", Thu, 07 Mar 2013 15:30:01 UTC +00:00]]
|
56779
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56780
|
+
Redirected to http://www.example.com/logged_in_page
|
56781
|
+
Completed 302 Found in 23ms (ActiveRecord: 0.0ms)
|
56782
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
|
56783
|
+
Processing by WelcomeController#logged_in_page as HTML
|
56784
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
|
56785
|
+
Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 0.2ms)
|
56786
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
56787
|
+
--------------------------------------------------------------------
|
56788
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
56789
|
+
--------------------------------------------------------------------
|
56790
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56791
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56792
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
56793
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
56794
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
|
56795
|
+
Processing by WelcomeController#logged_in_page as HTML
|
56796
|
+
Completed 401 Unauthorized in 2ms
|
56797
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56798
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
56799
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
56800
|
+
[1m[35mSQL (16.0ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$G9ovwC6Jw7xNcuTmyKSNLOUv/eCaDfshr90QrdMbyjZUp3kicl5B2"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00]]
|
56801
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56802
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56803
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
56804
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
56805
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56806
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
56807
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
56808
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
|
56809
|
+
Processing by Contour::SessionsController#create as HTML
|
56810
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
56811
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
56812
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56813
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56814
|
+
Completed 401 Unauthorized in 14ms
|
56815
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
|
56816
|
+
Processing by Contour::SessionsController#new as HTML
|
56817
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
|
56818
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.1ms)
|
56819
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
56820
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.8ms)
|
56821
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.5ms)
|
56822
|
+
Completed 200 OK in 38ms (Views: 35.1ms | ActiveRecord: 0.0ms)
|
56823
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
56824
|
+
-------------------------------------------------------------
|
56825
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
56826
|
+
-------------------------------------------------------------
|
56827
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56828
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56829
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
56830
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
56831
|
+
Started GET "/" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
|
56832
|
+
Processing by WelcomeController#index as HTML
|
56833
|
+
Completed 401 Unauthorized in 2ms
|
56834
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
56835
|
+
-------------------------------------------------------------------------
|
56836
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
56837
|
+
-------------------------------------------------------------------------
|
56838
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56839
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56840
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
56841
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
56842
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
|
56843
|
+
Processing by WelcomeController#logged_in_page as JSON
|
56844
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
56845
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56846
|
+
[1m[36mSQL (0.8ms)[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", Thu, 07 Mar 2013 15:30:02 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:30:02 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:30:02 UTC +00:00]]
|
56847
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56848
|
+
Completed 200 OK in 366ms (Views: 0.3ms | ActiveRecord: 1.3ms)
|
56849
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
56850
|
+
------------------------------------------------------------------------------------------------
|
56851
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
56852
|
+
------------------------------------------------------------------------------------------------
|
56853
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56854
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56855
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
56856
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
56857
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:30:02 -0500
|
56858
|
+
Processing by WelcomeController#logged_in_page as JSON
|
56859
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
56860
|
+
Completed 401 Unauthorized in 319ms
|
56861
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
56862
|
+
------------------------------------
|
56863
|
+
UserTest: test_should_apply_omniauth
|
56864
|
+
------------------------------------
|
56865
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56866
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56867
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56868
|
+
--------------------------------------
|
56869
|
+
UserTest: test_should_get_reverse_name
|
56870
|
+
--------------------------------------
|
56871
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56872
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56873
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56874
|
+
-------------------------------------------------
|
56875
|
+
AuthenticationTest: test_should_get_provider_name
|
56876
|
+
-------------------------------------------------
|
56877
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
56878
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "authentications"
|
56879
|
+
[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-07 15:31:43', '2013-03-07 15:31:43', 949717663, 201799169)[0m
|
56880
|
+
[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-07 15:31:43', '2013-03-07 15:31:43', 876923740, 201799169)
|
56881
|
+
[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-07 15:31:43', '2013-03-07 15:31:43', 864673665, 201799169)[0m
|
56882
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
56883
|
+
[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-07 15:31:43', '2013-03-07 15:31:43', 201799169)[0m
|
56884
|
+
[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-07 15:31:43', '2013-03-07 15:31:43', 999914115)
|
56885
|
+
[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-07 15:31:43', '2013-03-07 15:31:43', 725306934)[0m
|
56886
|
+
[1m[35mFixture Insert (0.2ms)[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-07 15:31:43', '2013-03-07 15:31:43', 349534908)
|
56887
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
56888
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56889
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
56890
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56891
|
+
--------------------------------------------------------------------------------
|
56892
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
56893
|
+
--------------------------------------------------------------------------------
|
56894
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56895
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
56896
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56897
|
+
-------------------------------------------------------------------------
|
56898
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
56899
|
+
-------------------------------------------------------------------------
|
56900
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56901
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56902
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
56903
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
56904
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
56905
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:31:43 UTC", "updated_at"=>"2013-03-07 15:31:43 UTC"}}
|
56906
|
+
[1m[35mAuthentication Load (0.5ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
56907
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
56908
|
+
Logged in user found, creating associated authentication.
|
56909
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
56910
|
+
[1m[36mSQL (3.4ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:31:43 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:31:43 UTC +00:00], ["user_id", 201799169]]
|
56911
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56912
|
+
Redirected to http://test.host/authentications
|
56913
|
+
Completed 302 Found in 59ms (ActiveRecord: 4.3ms)
|
56914
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
56915
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
56916
|
+
--------------------------------------------------------------------------
|
56917
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
56918
|
+
--------------------------------------------------------------------------
|
56919
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56920
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
56921
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
56922
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "authentications"
|
56923
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
56924
|
+
Parameters: {"id"=>"949717663"}
|
56925
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
56926
|
+
[1m[35mAuthentication Load (0.3ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
56927
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
56928
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
56929
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
56930
|
+
Redirected to http://test.host/authentications
|
56931
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.2ms)
|
56932
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
56933
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
56934
|
+
-------------------------------------------------------------
|
56935
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
56936
|
+
-------------------------------------------------------------
|
56937
|
+
[1m[35m (0.1ms)[0m begin transaction
|
56938
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56939
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
56940
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
56941
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
56942
|
+
[1m[35mAuthentication Exists (0.3ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
56943
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
56944
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (31.6ms)
|
56945
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.1ms)
|
56946
|
+
Completed 200 OK in 282ms (Views: 278.4ms | ActiveRecord: 0.7ms)
|
56947
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56948
|
+
-----------------------------------------------------------------------------
|
56949
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
56950
|
+
-----------------------------------------------------------------------------
|
56951
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
56952
|
+
Processing by Contour::PasswordsController#create as HTML
|
56953
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
56954
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
56955
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'ydgGS4yNq9VuErrpQHzH' LIMIT 1[0m
|
56956
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
56957
|
+
[1m[36mSQL (21.0ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "ydgGS4yNq9VuErrpQHzH"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:31:43 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:31:43 UTC +00:00]]
|
56958
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
56959
|
+
|
56960
|
+
Sent mail to valid@example.com (97.3ms)
|
56961
|
+
Date: Thu, 07 Mar 2013 10:31:44 -0500
|
56962
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
56963
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
56964
|
+
To: valid@example.com
|
56965
|
+
Message-ID: <5138b2e0eaf_12ba23fdc1d435ad816699@edge2.partners.org.mail>
|
56966
|
+
Subject: Reset password instructions
|
56967
|
+
Mime-Version: 1.0
|
56968
|
+
Content-Type: text/html;
|
56969
|
+
charset=UTF-8
|
56970
|
+
Content-Transfer-Encoding: 7bit
|
56971
|
+
|
56972
|
+
<p>Hello valid@example.com!</p>
|
56973
|
+
|
56974
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
56975
|
+
|
56976
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=ydgGS4yNq9VuErrpQHzH">Change my password</a></p>
|
56977
|
+
|
56978
|
+
<p>If you didn't request this, please ignore this email.</p>
|
56979
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
56980
|
+
|
56981
|
+
Redirected to http://test.host/users/login
|
56982
|
+
Completed 302 Found in 255ms (ActiveRecord: 0.0ms)
|
56983
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
56984
|
+
-----------------------------------------------------------------------------
|
56985
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
56986
|
+
-----------------------------------------------------------------------------
|
56987
|
+
[1m[35m (0.2ms)[0m begin transaction
|
56988
|
+
Processing by Contour::PasswordsController#new as HTML
|
56989
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (4.8ms)
|
56990
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (24.7ms)
|
56991
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (30.4ms)
|
56992
|
+
Completed 200 OK in 77ms (Views: 75.5ms | ActiveRecord: 0.0ms)
|
56993
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
56994
|
+
----------------------------------------------------------------------
|
56995
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
56996
|
+
----------------------------------------------------------------------
|
56997
|
+
[1m[35m (0.2ms)[0m begin transaction
|
56998
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
56999
|
+
Processing by Contour::SessionsController#create as JSON
|
57000
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
57001
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
57002
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
57003
|
+
[1m[35mSQL (0.8ms)[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", Thu, 07 Mar 2013 15:31:44 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:31:44 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:31:44 UTC +00:00]]
|
57004
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57005
|
+
Completed 200 OK in 323ms (Views: 0.7ms | ActiveRecord: 1.5ms)
|
57006
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
57007
|
+
----------------------------------------------------------------------------------------------------
|
57008
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_invalid_credentials
|
57009
|
+
----------------------------------------------------------------------------------------------------
|
57010
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57011
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57012
|
+
Processing by Contour::SessionsController#create as HTML
|
57013
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
57014
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
57015
|
+
[1m[35m (0.3ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
|
57016
|
+
Redirected to http://test.host/auth/ldap
|
57017
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
|
57018
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57019
|
+
--------------------------------------------------------------------------
|
57020
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
57021
|
+
--------------------------------------------------------------------------
|
57022
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57023
|
+
Processing by Contour::SessionsController#create as HTML
|
57024
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
57025
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
57026
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
|
57027
|
+
Completed 401 Unauthorized in 7ms
|
57028
|
+
Processing by Contour::SessionsController#new as HTML
|
57029
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
57030
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
|
57031
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (6.2ms)
|
57032
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.1ms)
|
57033
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.6ms)
|
57034
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.2ms)
|
57035
|
+
Completed 200 OK in 60ms (Views: 57.5ms | ActiveRecord: 0.0ms)
|
57036
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
57037
|
+
-----------------------------------------------------
|
57038
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
57039
|
+
-----------------------------------------------------
|
57040
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57041
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57042
|
+
---------------------------------------------------------------------
|
57043
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
57044
|
+
---------------------------------------------------------------------
|
57045
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57046
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57047
|
+
-----------------------
|
57048
|
+
ContourTest: test_truth
|
57049
|
+
-----------------------
|
57050
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57051
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
57052
|
+
--------------------------------------------------------------------
|
57053
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
57054
|
+
--------------------------------------------------------------------
|
57055
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57056
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57057
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57058
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57059
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:31:44 -0500
|
57060
|
+
Processing by WelcomeController#logged_in_page as HTML
|
57061
|
+
Completed 401 Unauthorized in 34ms
|
57062
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57063
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
57064
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
57065
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:31:44 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$zrOiU1PkQr0eE65601emke7U.bp3nSNXeDJk68zpuo5aREDGgrB4a"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:31:44 UTC +00:00]]
|
57066
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57067
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57068
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
57069
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
57070
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57071
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
57072
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
57073
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:31:44 -0500
|
57074
|
+
Processing by Contour::SessionsController#create as HTML
|
57075
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
57076
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
57077
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
57078
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
57079
|
+
Completed 401 Unauthorized in 17ms
|
57080
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
|
57081
|
+
Processing by Contour::SessionsController#new as HTML
|
57082
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
|
57083
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.4ms)
|
57084
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
57085
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.9ms)
|
57086
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.7ms)
|
57087
|
+
Completed 200 OK in 38ms (Views: 35.7ms | ActiveRecord: 0.0ms)
|
57088
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
57089
|
+
--------------------------------------------------------
|
57090
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
57091
|
+
--------------------------------------------------------
|
57092
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57093
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57094
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57095
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57096
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
|
57097
|
+
Processing by WelcomeController#logged_in_page as HTML
|
57098
|
+
Completed 401 Unauthorized in 2ms
|
57099
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
57100
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
57101
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
57102
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$Vg9lZjNIXLFt0dOWzLtt5u9Jq1oDWoBjHXwluC/1wlvzJkiewJ1xm"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00]]
|
57103
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57104
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57105
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
57106
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
57107
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57108
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
57109
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
57110
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
|
57111
|
+
Processing by Contour::SessionsController#create as HTML
|
57112
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
57113
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
57114
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
57115
|
+
[1m[35mSQL (0.6ms)[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", Thu, 07 Mar 2013 15:31:45 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:31: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", Thu, 07 Mar 2013 15:31:45 UTC +00:00]]
|
57116
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57117
|
+
Redirected to http://www.example.com/logged_in_page
|
57118
|
+
Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
|
57119
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
|
57120
|
+
Processing by WelcomeController#logged_in_page as HTML
|
57121
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
|
57122
|
+
Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 0.2ms)
|
57123
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
57124
|
+
--------------------------------------------------------------------
|
57125
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
57126
|
+
--------------------------------------------------------------------
|
57127
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57128
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57129
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57130
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57131
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
|
57132
|
+
Processing by WelcomeController#logged_in_page as HTML
|
57133
|
+
Completed 401 Unauthorized in 3ms
|
57134
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57135
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
57136
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
57137
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$/KABjQvj1ACLpWH4kSve/u5aSy3V8.shDgzDXO52CraF6d55PkSzm"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00]]
|
57138
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57139
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57140
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
57141
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
57142
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57143
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
57144
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
57145
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
|
57146
|
+
Processing by Contour::SessionsController#create as HTML
|
57147
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
57148
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
57149
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
57150
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
57151
|
+
Completed 401 Unauthorized in 15ms
|
57152
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
|
57153
|
+
Processing by Contour::SessionsController#new as HTML
|
57154
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.1ms)
|
57155
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.2ms)
|
57156
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
57157
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.3ms)
|
57158
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.6ms)
|
57159
|
+
Completed 200 OK in 42ms (Views: 39.2ms | ActiveRecord: 0.0ms)
|
57160
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
57161
|
+
-------------------------------------------------------------
|
57162
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
57163
|
+
-------------------------------------------------------------
|
57164
|
+
[1m[35m (0.2ms)[0m begin transaction
|
57165
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57166
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57167
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57168
|
+
Started GET "/" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
|
57169
|
+
Processing by WelcomeController#index as HTML
|
57170
|
+
Completed 401 Unauthorized in 3ms
|
57171
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
57172
|
+
-------------------------------------------------------------------------
|
57173
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
57174
|
+
-------------------------------------------------------------------------
|
57175
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57176
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57177
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
57178
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
57179
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
|
57180
|
+
Processing by WelcomeController#logged_in_page as JSON
|
57181
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
57182
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57183
|
+
[1m[36mSQL (0.7ms)[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", Thu, 07 Mar 2013 15:31:45 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00]]
|
57184
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
57185
|
+
Completed 200 OK in 369ms (Views: 0.3ms | ActiveRecord: 1.1ms)
|
57186
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
57187
|
+
------------------------------------------------------------------------------------------------
|
57188
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
57189
|
+
------------------------------------------------------------------------------------------------
|
57190
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57191
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57192
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57193
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57194
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
|
57195
|
+
Processing by WelcomeController#logged_in_page as JSON
|
57196
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
57197
|
+
Completed 401 Unauthorized in 313ms
|
57198
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57199
|
+
------------------------------------
|
57200
|
+
UserTest: test_should_apply_omniauth
|
57201
|
+
------------------------------------
|
57202
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57203
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57204
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
57205
|
+
--------------------------------------
|
57206
|
+
UserTest: test_should_get_reverse_name
|
57207
|
+
--------------------------------------
|
57208
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57209
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57210
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57211
|
+
-------------------------------------------------
|
57212
|
+
AuthenticationTest: test_should_get_provider_name
|
57213
|
+
-------------------------------------------------
|
57214
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
57215
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "authentications"
|
57216
|
+
[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-07 15:32:28', '2013-03-07 15:32:28', 949717663, 201799169)[0m
|
57217
|
+
[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-07 15:32:28', '2013-03-07 15:32:28', 876923740, 201799169)
|
57218
|
+
[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-07 15:32:28', '2013-03-07 15:32:28', 864673665, 201799169)[0m
|
57219
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
57220
|
+
[1m[36mFixture Insert (0.2ms)[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-07 15:32:28', '2013-03-07 15:32:28', 201799169)[0m
|
57221
|
+
[1m[35mFixture Insert (0.2ms)[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-07 15:32:28', '2013-03-07 15:32:28', 999914115)
|
57222
|
+
[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-07 15:32:28', '2013-03-07 15:32:28', 725306934)[0m
|
57223
|
+
[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-07 15:32:28', '2013-03-07 15:32:28', 349534908)
|
57224
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
57225
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57226
|
+
[1m[36mAuthentication Load (0.4ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
57227
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
57228
|
+
--------------------------------------------------------------------------------
|
57229
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
57230
|
+
--------------------------------------------------------------------------------
|
57231
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57232
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
57233
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57234
|
+
-------------------------------------------------------------------------
|
57235
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
57236
|
+
-------------------------------------------------------------------------
|
57237
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57238
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57239
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
57240
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
57241
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
57242
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:32:28 UTC", "updated_at"=>"2013-03-07 15:32:28 UTC"}}
|
57243
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
57244
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
57245
|
+
Logged in user found, creating associated authentication.
|
57246
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57247
|
+
[1m[36mSQL (3.6ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:32:29 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:32:29 UTC +00:00], ["user_id", 201799169]]
|
57248
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
57249
|
+
Redirected to http://test.host/authentications
|
57250
|
+
Completed 302 Found in 57ms (ActiveRecord: 4.2ms)
|
57251
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
57252
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
57253
|
+
--------------------------------------------------------------------------
|
57254
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
57255
|
+
--------------------------------------------------------------------------
|
57256
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57257
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57258
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
57259
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "authentications"
|
57260
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
57261
|
+
Parameters: {"id"=>"949717663"}
|
57262
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
57263
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
57264
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
57265
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
57266
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57267
|
+
Redirected to http://test.host/authentications
|
57268
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
|
57269
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
57270
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
57271
|
+
-------------------------------------------------------------
|
57272
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
57273
|
+
-------------------------------------------------------------
|
57274
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57275
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57276
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
57277
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
57278
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
57279
|
+
[1m[35mAuthentication Exists (0.3ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
57280
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
57281
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (35.4ms)
|
57282
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.2ms)
|
57283
|
+
Completed 200 OK in 288ms (Views: 283.4ms | ActiveRecord: 0.8ms)
|
57284
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
57285
|
+
-----------------------------------------------------------------------------
|
57286
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
57287
|
+
-----------------------------------------------------------------------------
|
57288
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57289
|
+
Processing by Contour::PasswordsController#create as HTML
|
57290
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
57291
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
57292
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'pgsBQqsRfXV4zqrDAGu7' LIMIT 1[0m
|
57293
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57294
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "pgsBQqsRfXV4zqrDAGu7"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:32:29 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:32:29 UTC +00:00]]
|
57295
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
57296
|
+
|
57297
|
+
Sent mail to valid@example.com (102.3ms)
|
57298
|
+
Date: Thu, 07 Mar 2013 10:32:29 -0500
|
57299
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
57300
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
57301
|
+
To: valid@example.com
|
57302
|
+
Message-ID: <5138b30dc750f_12bc03fd881835ad88621c@edge2.partners.org.mail>
|
57303
|
+
Subject: Reset password instructions
|
57304
|
+
Mime-Version: 1.0
|
57305
|
+
Content-Type: text/html;
|
57306
|
+
charset=UTF-8
|
57307
|
+
Content-Transfer-Encoding: 7bit
|
57308
|
+
|
57309
|
+
<p>Hello valid@example.com!</p>
|
57310
|
+
|
57311
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
57312
|
+
|
57313
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=pgsBQqsRfXV4zqrDAGu7">Change my password</a></p>
|
57314
|
+
|
57315
|
+
<p>If you didn't request this, please ignore this email.</p>
|
57316
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
57317
|
+
|
57318
|
+
Redirected to http://test.host/users/login
|
57319
|
+
Completed 302 Found in 270ms (ActiveRecord: 0.0ms)
|
57320
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
57321
|
+
-----------------------------------------------------------------------------
|
57322
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
57323
|
+
-----------------------------------------------------------------------------
|
57324
|
+
[1m[35m (0.2ms)[0m begin transaction
|
57325
|
+
Processing by Contour::PasswordsController#new as HTML
|
57326
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.8ms)
|
57327
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (22.7ms)
|
57328
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (28.6ms)
|
57329
|
+
Completed 200 OK in 77ms (Views: 74.5ms | ActiveRecord: 0.0ms)
|
57330
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
57331
|
+
----------------------------------------------------------------------
|
57332
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
57333
|
+
----------------------------------------------------------------------
|
57334
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57335
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57336
|
+
Processing by Contour::SessionsController#create as JSON
|
57337
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
57338
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
57339
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
57340
|
+
[1m[35mSQL (1.0ms)[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", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00]]
|
57341
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57342
|
+
Completed 200 OK in 326ms (Views: 0.8ms | ActiveRecord: 1.7ms)
|
57343
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
57344
|
+
----------------------------------------------------------------------------------------------------
|
57345
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_invalid_credentials
|
57346
|
+
----------------------------------------------------------------------------------------------------
|
57347
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57348
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57349
|
+
Processing by Contour::SessionsController#create as HTML
|
57350
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
57351
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
57352
|
+
[1m[35m (0.2ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
|
57353
|
+
Redirected to http://test.host/auth/ldap
|
57354
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
|
57355
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57356
|
+
--------------------------------------------------------------------------
|
57357
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
57358
|
+
--------------------------------------------------------------------------
|
57359
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57360
|
+
Processing by Contour::SessionsController#create as HTML
|
57361
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
57362
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
57363
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
|
57364
|
+
Completed 401 Unauthorized in 7ms
|
57365
|
+
Processing by Contour::SessionsController#new as HTML
|
57366
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
57367
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
|
57368
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.9ms)
|
57369
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.2ms)
|
57370
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.2ms)
|
57371
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.8ms)
|
57372
|
+
Completed 200 OK in 57ms (Views: 53.9ms | ActiveRecord: 0.0ms)
|
57373
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
57374
|
+
-----------------------------------------------------
|
57375
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
57376
|
+
-----------------------------------------------------
|
57377
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57378
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
57379
|
+
---------------------------------------------------------------------
|
57380
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
57381
|
+
---------------------------------------------------------------------
|
57382
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57383
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57384
|
+
-----------------------
|
57385
|
+
ContourTest: test_truth
|
57386
|
+
-----------------------
|
57387
|
+
[1m[35m (0.2ms)[0m begin transaction
|
57388
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
57389
|
+
--------------------------------------------------------------------
|
57390
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
57391
|
+
--------------------------------------------------------------------
|
57392
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57393
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57394
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57395
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57396
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
|
57397
|
+
Processing by WelcomeController#logged_in_page as HTML
|
57398
|
+
Completed 401 Unauthorized in 31ms
|
57399
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
57400
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
57401
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
57402
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$.C8yvPbn7vUtxMF1A5qv7ORp3WXX1.lBq3ZpICuS0PPekpCLQ6A8."], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00]]
|
57403
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57404
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57405
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
57406
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
57407
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57408
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
57409
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
57410
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
|
57411
|
+
Processing by Contour::SessionsController#create as HTML
|
57412
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
57413
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
57414
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
57415
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
57416
|
+
Completed 401 Unauthorized in 17ms
|
57417
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
|
57418
|
+
Processing by Contour::SessionsController#new as HTML
|
57419
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.1ms)
|
57420
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.7ms)
|
57421
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
57422
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.0ms)
|
57423
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.6ms)
|
57424
|
+
Completed 200 OK in 37ms (Views: 34.2ms | ActiveRecord: 0.0ms)
|
57425
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
57426
|
+
--------------------------------------------------------
|
57427
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
57428
|
+
--------------------------------------------------------
|
57429
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57430
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57431
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57432
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57433
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
|
57434
|
+
Processing by WelcomeController#logged_in_page as HTML
|
57435
|
+
Completed 401 Unauthorized in 2ms
|
57436
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57437
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
57438
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
57439
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$.X08QtxyTVgOUadwO2XRReNXDgCCaJNHlDqrDq8fpMzV9PmRqex7q"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00]]
|
57440
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57441
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57442
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
57443
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
57444
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57445
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
57446
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
57447
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
|
57448
|
+
Processing by Contour::SessionsController#create as HTML
|
57449
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
57450
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
57451
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
57452
|
+
[1m[35mSQL (0.6ms)[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", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:32:30 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", Thu, 07 Mar 2013 15:32:30 UTC +00:00]]
|
57453
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57454
|
+
Redirected to http://www.example.com/logged_in_page
|
57455
|
+
Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
|
57456
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
|
57457
|
+
Processing by WelcomeController#logged_in_page as HTML
|
57458
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
|
57459
|
+
Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.2ms)
|
57460
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
57461
|
+
--------------------------------------------------------------------
|
57462
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
57463
|
+
--------------------------------------------------------------------
|
57464
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57465
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57466
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57467
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57468
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
|
57469
|
+
Processing by WelcomeController#logged_in_page as HTML
|
57470
|
+
Completed 401 Unauthorized in 2ms
|
57471
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57472
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
57473
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
57474
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$4h/nfz9PYy4xO0PRq9aTgOOm2hwvaT3mxF..BKI.NBbRVmDElaORm"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00]]
|
57475
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57476
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57477
|
+
[1m[36mAuthentication Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
57478
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
57479
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57480
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
57481
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
57482
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
|
57483
|
+
Processing by Contour::SessionsController#create as HTML
|
57484
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
57485
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
57486
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
57487
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
57488
|
+
Completed 401 Unauthorized in 16ms
|
57489
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:32:31 -0500
|
57490
|
+
Processing by Contour::SessionsController#new as HTML
|
57491
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.2ms)
|
57492
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.8ms)
|
57493
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
57494
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.2ms)
|
57495
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (10.4ms)
|
57496
|
+
Completed 200 OK in 42ms (Views: 39.6ms | ActiveRecord: 0.0ms)
|
57497
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
57498
|
+
-------------------------------------------------------------
|
57499
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
57500
|
+
-------------------------------------------------------------
|
57501
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57502
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57503
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57504
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57505
|
+
Started GET "/" for 127.0.0.1 at 2013-03-07 10:32:31 -0500
|
57506
|
+
Processing by WelcomeController#index as HTML
|
57507
|
+
Completed 401 Unauthorized in 2ms
|
57508
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
57509
|
+
-------------------------------------------------------------------------
|
57510
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
57511
|
+
-------------------------------------------------------------------------
|
57512
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57513
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57514
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
57515
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
57516
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:32:31 -0500
|
57517
|
+
Processing by WelcomeController#logged_in_page as JSON
|
57518
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
57519
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57520
|
+
[1m[36mSQL (0.7ms)[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", Thu, 07 Mar 2013 15:32:31 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:32:31 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:32:31 UTC +00:00]]
|
57521
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
57522
|
+
Completed 200 OK in 367ms (Views: 0.5ms | ActiveRecord: 1.2ms)
|
57523
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
57524
|
+
------------------------------------------------------------------------------------------------
|
57525
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
57526
|
+
------------------------------------------------------------------------------------------------
|
57527
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57528
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57529
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57530
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57531
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:32:31 -0500
|
57532
|
+
Processing by WelcomeController#logged_in_page as JSON
|
57533
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
57534
|
+
Completed 401 Unauthorized in 321ms
|
57535
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57536
|
+
------------------------------------
|
57537
|
+
UserTest: test_should_apply_omniauth
|
57538
|
+
------------------------------------
|
57539
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57540
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57541
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
57542
|
+
--------------------------------------
|
57543
|
+
UserTest: test_should_get_reverse_name
|
57544
|
+
--------------------------------------
|
57545
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57546
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57547
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
57548
|
+
-------------------------------------------------
|
57549
|
+
AuthenticationTest: test_should_get_provider_name
|
57550
|
+
-------------------------------------------------
|
57551
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
57552
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "authentications"
|
57553
|
+
[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-07 15:34:56', '2013-03-07 15:34:56', 949717663, 201799169)[0m
|
57554
|
+
[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-07 15:34:56', '2013-03-07 15:34:56', 876923740, 201799169)
|
57555
|
+
[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-07 15:34:56', '2013-03-07 15:34:56', 864673665, 201799169)[0m
|
57556
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
57557
|
+
[1m[36mFixture Insert (0.2ms)[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-07 15:34:56', '2013-03-07 15:34:56', 201799169)[0m
|
57558
|
+
[1m[35mFixture Insert (0.2ms)[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-07 15:34:56', '2013-03-07 15:34:56', 999914115)
|
57559
|
+
[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-07 15:34:56', '2013-03-07 15:34:56', 725306934)[0m
|
57560
|
+
[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-07 15:34:56', '2013-03-07 15:34:56', 349534908)
|
57561
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
57562
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57563
|
+
[1m[36mAuthentication Load (0.4ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
57564
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
57565
|
+
--------------------------------------------------------------------------------
|
57566
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
57567
|
+
--------------------------------------------------------------------------------
|
57568
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57569
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
57570
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
57571
|
+
-------------------------------------------------------------------------
|
57572
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
57573
|
+
-------------------------------------------------------------------------
|
57574
|
+
[1m[35m (0.2ms)[0m begin transaction
|
57575
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57576
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
57577
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
57578
|
+
Processing by Contour::AuthenticationsController#create as HTML
|
57579
|
+
Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:34:56 UTC", "updated_at"=>"2013-03-07 15:34:56 UTC"}}
|
57580
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
57581
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
57582
|
+
Logged in user found, creating associated authentication.
|
57583
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57584
|
+
[1m[36mSQL (3.7ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Thu, 07 Mar 2013 15:34:56 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:34:56 UTC +00:00], ["user_id", 201799169]]
|
57585
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
57586
|
+
Redirected to http://test.host/authentications
|
57587
|
+
Completed 302 Found in 57ms (ActiveRecord: 4.4ms)
|
57588
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
57589
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
57590
|
+
--------------------------------------------------------------------------
|
57591
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
57592
|
+
--------------------------------------------------------------------------
|
57593
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57594
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57595
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
57596
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "authentications"
|
57597
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
57598
|
+
Parameters: {"id"=>"949717663"}
|
57599
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
57600
|
+
[1m[35mAuthentication Load (0.3ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
57601
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
57602
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
57603
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57604
|
+
Redirected to http://test.host/authentications
|
57605
|
+
Completed 302 Found in 10ms (ActiveRecord: 1.3ms)
|
57606
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
57607
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
57608
|
+
-------------------------------------------------------------
|
57609
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
57610
|
+
-------------------------------------------------------------
|
57611
|
+
[1m[35m (0.2ms)[0m begin transaction
|
57612
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57613
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
57614
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
57615
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
57616
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
57617
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["user_id", 201799169]]
|
57618
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (32.1ms)
|
57619
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.3ms)
|
57620
|
+
Completed 200 OK in 291ms (Views: 286.2ms | ActiveRecord: 0.7ms)
|
57621
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
57622
|
+
-----------------------------------------------------------------------------
|
57623
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
57624
|
+
-----------------------------------------------------------------------------
|
57625
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57626
|
+
Processing by Contour::PasswordsController#create as HTML
|
57627
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
57628
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
57629
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'RtxcC3srywQsByNcDseN' LIMIT 1[0m
|
57630
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57631
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["reset_password_token", "RtxcC3srywQsByNcDseN"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:34:56 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:34:56 UTC +00:00]]
|
57632
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
57633
|
+
|
57634
|
+
Sent mail to valid@example.com (97.5ms)
|
57635
|
+
Date: Thu, 07 Mar 2013 10:34:57 -0500
|
57636
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
57637
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
57638
|
+
To: valid@example.com
|
57639
|
+
Message-ID: <5138b3a118785_12c183fca69435ad04705b@edge2.partners.org.mail>
|
57640
|
+
Subject: Reset password instructions
|
57641
|
+
Mime-Version: 1.0
|
57642
|
+
Content-Type: text/html;
|
57643
|
+
charset=UTF-8
|
57644
|
+
Content-Transfer-Encoding: 7bit
|
57645
|
+
|
57646
|
+
<p>Hello valid@example.com!</p>
|
57647
|
+
|
57648
|
+
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
57649
|
+
|
57650
|
+
<p><a href="http://localhost:3000/users/password/edit?reset_password_token=RtxcC3srywQsByNcDseN">Change my password</a></p>
|
57651
|
+
|
57652
|
+
<p>If you didn't request this, please ignore this email.</p>
|
57653
|
+
<p>Your password won't change until you access the link above and create a new one.</p>
|
57654
|
+
|
57655
|
+
Redirected to http://test.host/users/login
|
57656
|
+
Completed 302 Found in 240ms (ActiveRecord: 0.0ms)
|
57657
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
57658
|
+
-----------------------------------------------------------------------------
|
57659
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
57660
|
+
-----------------------------------------------------------------------------
|
57661
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57662
|
+
Processing by Contour::PasswordsController#new as HTML
|
57663
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (4.4ms)
|
57664
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (23.7ms)
|
57665
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (29.2ms)
|
57666
|
+
Completed 200 OK in 75ms (Views: 73.4ms | ActiveRecord: 0.0ms)
|
57667
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57668
|
+
----------------------------------------------------------------------
|
57669
|
+
Contour::SessionsControllerTest: test_return_user_json_object_on_login
|
57670
|
+
----------------------------------------------------------------------
|
57671
|
+
[1m[35m (0.3ms)[0m begin transaction
|
57672
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57673
|
+
Processing by Contour::SessionsController#create as JSON
|
57674
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
57675
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
57676
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
57677
|
+
[1m[35mSQL (0.8ms)[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", Thu, 07 Mar 2013 15:34:57 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:34:57 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:34:57 UTC +00:00]]
|
57678
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57679
|
+
Completed 200 OK in 325ms (Views: 0.7ms | ActiveRecord: 1.3ms)
|
57680
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
57681
|
+
----------------------------------------------------------------------------------------------------------
|
57682
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
|
57683
|
+
----------------------------------------------------------------------------------------------------------
|
57684
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57685
|
+
Processing by Contour::SessionsController#create as HTML
|
57686
|
+
Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
|
57687
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
|
57688
|
+
[1m[36m (0.2ms)[0m [1mSELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'[0m
|
57689
|
+
Redirected to http://test.host/auth/google_apps
|
57690
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
57691
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
57692
|
+
----------------------------------------------------------------------------------------------
|
57693
|
+
Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
|
57694
|
+
----------------------------------------------------------------------------------------------
|
57695
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57696
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57697
|
+
Processing by Contour::SessionsController#create as HTML
|
57698
|
+
Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
|
57699
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
57700
|
+
[1m[35m (0.2ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
|
57701
|
+
Redirected to http://test.host/auth/ldap
|
57702
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
|
57703
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57704
|
+
--------------------------------------------------------------------------
|
57705
|
+
Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
|
57706
|
+
--------------------------------------------------------------------------
|
57707
|
+
[1m[35m (0.2ms)[0m begin transaction
|
57708
|
+
Processing by Contour::SessionsController#create as HTML
|
57709
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
57710
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1[0m
|
57711
|
+
[1m[35m (0.1ms)[0m SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
|
57712
|
+
Completed 401 Unauthorized in 8ms
|
57713
|
+
Processing by Contour::SessionsController#new as HTML
|
57714
|
+
Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
|
57715
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
|
57716
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.4ms)
|
57717
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.2ms)
|
57718
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.3ms)
|
57719
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (10.2ms)
|
57720
|
+
Completed 200 OK in 60ms (Views: 58.4ms | ActiveRecord: 0.0ms)
|
57721
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57722
|
+
-----------------------------------------------------
|
57723
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
57724
|
+
-----------------------------------------------------
|
57725
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57726
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
57727
|
+
---------------------------------------------------------------------
|
57728
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
57729
|
+
---------------------------------------------------------------------
|
57730
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57731
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
57732
|
+
-----------------------
|
57733
|
+
ContourTest: test_truth
|
57734
|
+
-----------------------
|
57735
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57736
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57737
|
+
--------------------------------------------------------------------
|
57738
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
57739
|
+
--------------------------------------------------------------------
|
57740
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57741
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57742
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57743
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57744
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:34:57 -0500
|
57745
|
+
Processing by WelcomeController#logged_in_page as HTML
|
57746
|
+
Completed 401 Unauthorized in 33ms
|
57747
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57748
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
57749
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
57750
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$V4P7lkBSRtjrK1JQWdVkeOs0w7lD4YOcI3Tzu1S8XiG20EVLIIKDG"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00]]
|
57751
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57752
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57753
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
57754
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
57755
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57756
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
57757
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
57758
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
|
57759
|
+
Processing by Contour::SessionsController#create as HTML
|
57760
|
+
Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
|
57761
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
57762
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
57763
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
57764
|
+
Completed 401 Unauthorized in 18ms
|
57765
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
|
57766
|
+
Processing by Contour::SessionsController#new as HTML
|
57767
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.1ms)
|
57768
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.1ms)
|
57769
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
57770
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.4ms)
|
57771
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.7ms)
|
57772
|
+
Completed 200 OK in 42ms (Views: 39.9ms | ActiveRecord: 0.0ms)
|
57773
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
57774
|
+
--------------------------------------------------------
|
57775
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
57776
|
+
--------------------------------------------------------
|
57777
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57778
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57779
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57780
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57781
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
|
57782
|
+
Processing by WelcomeController#logged_in_page as HTML
|
57783
|
+
Completed 401 Unauthorized in 2ms
|
57784
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
57785
|
+
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
57786
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
57787
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$xKbdQMhLX8wiANbclM/G8eKG3FoXR4R5fyQZDaouIvmIJ44tfJp36"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00]]
|
57788
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57789
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
57790
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
57791
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
57792
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57793
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
57794
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
57795
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
|
57796
|
+
Processing by Contour::SessionsController#create as HTML
|
57797
|
+
Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
|
57798
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
57799
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
57800
|
+
[1m[35mSQL (0.8ms)[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", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:34:58 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", Thu, 07 Mar 2013 15:34:58 UTC +00:00]]
|
57801
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57802
|
+
Redirected to http://www.example.com/logged_in_page
|
57803
|
+
Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
|
57804
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
|
57805
|
+
Processing by WelcomeController#logged_in_page as HTML
|
57806
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
|
57807
|
+
Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 0.2ms)
|
57808
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
57809
|
+
--------------------------------------------------------------------
|
57810
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
57811
|
+
--------------------------------------------------------------------
|
57812
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57813
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57814
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57815
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57816
|
+
Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
|
57817
|
+
Processing by WelcomeController#logged_in_page as HTML
|
57818
|
+
Completed 401 Unauthorized in 3ms
|
57819
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57820
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
57821
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
57822
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$Tq4yy9Xi0jgq040PmLZ8y.XjUAbkIyGbx8M/Nw7pCzLENaWsfPut6"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00]]
|
57823
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57824
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57825
|
+
[1m[36mAuthentication Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
57826
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
57827
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57828
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
57829
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
57830
|
+
Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
|
57831
|
+
Processing by Contour::SessionsController#create as HTML
|
57832
|
+
Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
|
57833
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
57834
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
57835
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
57836
|
+
Completed 401 Unauthorized in 14ms
|
57837
|
+
Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
|
57838
|
+
Processing by Contour::SessionsController#new as HTML
|
57839
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
|
57840
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.2ms)
|
57841
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
|
57842
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.7ms)
|
57843
|
+
Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.3ms)
|
57844
|
+
Completed 200 OK in 38ms (Views: 35.0ms | ActiveRecord: 0.0ms)
|
57845
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
57846
|
+
-------------------------------------------------------------
|
57847
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
57848
|
+
-------------------------------------------------------------
|
57849
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57850
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57851
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57852
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57853
|
+
Started GET "/" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
|
57854
|
+
Processing by WelcomeController#index as HTML
|
57855
|
+
Completed 401 Unauthorized in 2ms
|
57856
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
57857
|
+
-------------------------------------------------------------------------
|
57858
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
57859
|
+
-------------------------------------------------------------------------
|
57860
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57861
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57862
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
57863
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
|
57864
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
|
57865
|
+
Processing by WelcomeController#logged_in_page as JSON
|
57866
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
57867
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
57868
|
+
[1m[36mSQL (0.7ms)[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", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00]]
|
57869
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
57870
|
+
Completed 200 OK in 361ms (Views: 0.4ms | ActiveRecord: 1.1ms)
|
57871
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
57872
|
+
------------------------------------------------------------------------------------------------
|
57873
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
57874
|
+
------------------------------------------------------------------------------------------------
|
57875
|
+
[1m[35m (0.2ms)[0m begin transaction
|
57876
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57877
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
57878
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 725306934]]
|
57879
|
+
Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
|
57880
|
+
Processing by WelcomeController#logged_in_page as JSON
|
57881
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
57882
|
+
Completed 401 Unauthorized in 319ms
|
57883
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57884
|
+
------------------------------------
|
57885
|
+
UserTest: test_should_apply_omniauth
|
57886
|
+
------------------------------------
|
57887
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57888
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
57889
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
57890
|
+
--------------------------------------
|
57891
|
+
UserTest: test_should_get_reverse_name
|
57892
|
+
--------------------------------------
|
57893
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57894
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
57895
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|