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