contour 2.0.0.beta.1 → 2.0.0.beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDJhYTFmMzI2ZjY4MzA5YjRjYTA4MTFmY2VkMTY1YTgyZTc3ZWExYw==
4
+ ZDk3MDAwMmM4ZjEyMDYyYzk5NzJhYTdmMjNmZGQ1NzBjM2U3OTE1Mg==
5
5
  data.tar.gz: !binary |-
6
- MTI5ZmNlODk1NjM3NmVjMTNlOWY1OTI4NDNjN2RmZTVhMjNhOTAwNw==
6
+ MDRmYzdiMjEwYmEwZGZkNzk3ZTkxYTBjMDQwNDY0OTYxZmJhNjNlYg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NmQxZjZlNWNlOGNiNjgyMGRjOTE1NzhjODQzMWNkMDJiNjc4ZDI4NDIxMjgz
10
- YzEzOTE4ZmZmMGE2ZGJiNjgzYjg1MjBkYjY5OTA5ZjY4ODFlOWQzZDc2MjEw
11
- MjA5ZDQ3NmVmZjdiMTcyZmRjYWNlNDdiMjhhOWM0MzMzZGE3NTA=
9
+ NGRhY2ZkYmY2M2IyOWRmZTMyMjU4YjRlNWU0ZmMyZGMyNjcwYWI5N2E2ZmUx
10
+ MzJiYWRjN2VjZGY5YzMxYWViYTNjMzc4M2M3M2NjNTgxYzMxZTc4M2UyYWVh
11
+ MjQ3NjFhMTU5ODVkOWY2OGYyOGQyMzc2NGRkNDJmOTM0Zjk4MzA=
12
12
  data.tar.gz: !binary |-
13
- YjUyOTRhYTRiZmQ5ZTM2ZWNhN2IxOTE0YTQzZDdmMmI2MGY3MTU1MzBhYWQ4
14
- YTkwZTY2N2QzZTY5MDRlMmI1ZjE4M2I0ZTU1ZjA0NzZmMjQ2NDM0YTRhMzdi
15
- NDY2MDNmNGVmNjI4MmVjMDEwZmIwYjJlNjg5YmNkMGZiYTQ3ZDE=
13
+ NzFjNjI1Njg1NDljMjI1M2NhMzFlNzE5YTY1NDdjZDBmM2M4Y2M2MWRhN2Ri
14
+ ZWRlZDYxZmFlNTBhOTU1YjQxYzFiOWQ5ZmRmZGUxMjE0NWRiNjdiNjhiZDFj
15
+ YTEyZjgzMjM4NDE5YzkyYTk1ZGQ4YmVjMzEwMzFiNGQ3YTdhYjA=
@@ -31,7 +31,7 @@ class Contour::SessionsController < Devise::SessionsController
31
31
 
32
32
  respond_to do |format|
33
33
  format.html { respond_with resource, location: after_sign_in_path_for(resource) }
34
- format.json { render json: { success: true, user: resource.as_json( only: [:id, :email, :first_name, :last_name, :authentication_token ] ) } }
34
+ format.json { render json: { success: true, resource_name => { id: resource.id, email: resource.email, first_name: resource.first_name, last_name: resource.last_name, authentication_token: (resource.respond_to?(:authentication_token) ? resource.authentication_token : nil) } } }
35
35
  end
36
36
  else
37
37
  resource = resource_name.to_s.titleize.constantize.find_by_email(params[resource_name][:email])
@@ -3,7 +3,7 @@ module Contour
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
5
  TINY = 0
6
- BUILD = "beta.1" # nil, "pre", "rc", "rc2"
6
+ BUILD = "beta.2" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
@@ -0,0 +1,42 @@
1
+ require 'test_helper'
2
+
3
+ class Contour::SessionsControllerTest < ActionController::TestCase
4
+
5
+ setup do
6
+ request.env["devise.mapping"] = Devise.mappings[:user]
7
+ end
8
+
9
+ test "return user json object on login" do
10
+ post :create, user: { email: users(:valid).email, password: 'password' }, format: 'json'
11
+
12
+ object = JSON.parse(@response.body)
13
+ assert_equal true, object['success']
14
+ assert_equal users(:valid).id, object['user']['id']
15
+ assert_equal 'FirstName', object['user']['first_name']
16
+ assert_equal 'LastName', object['user']['last_name']
17
+ assert_equal 'valid@example.com', object['user']['email']
18
+ assert object['user'].keys.include?('authentication_token')
19
+
20
+
21
+ assert_response :success
22
+ end
23
+
24
+ test "should do a graceful redirect to ldap with primary email" do
25
+ post :create, user: { email: users(:valid).email, password: '' }
26
+
27
+ assert_redirected_to '/auth/ldap'
28
+ end
29
+
30
+ test "should do a graceful redirect to google_apps through secondary email" do
31
+ post :create, user: { email: 'test@gmail.com', password: '' }
32
+
33
+ assert_redirected_to '/auth/google_apps'
34
+ end
35
+
36
+ test "should not login invalid credentials" do
37
+ post :create, user: { email: '', password: '' }
38
+
39
+ assert_response :success
40
+ end
41
+
42
+ end
Binary file
@@ -54068,3 +54068,3828 @@ UserTest: test_should_get_reverse_name
54068
54068
   (0.1ms) begin transaction
54069
54069
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54070
54070
   (0.1ms) rollback transaction
54071
+ -------------------------------------------------
54072
+ AuthenticationTest: test_should_get_provider_name
54073
+ -------------------------------------------------
54074
+  (0.5ms) begin transaction
54075
+ Fixture Delete (0.4ms) DELETE FROM "authentications"
54076
+ Fixture Insert (0.3ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:11:54', '2013-03-07 15:11:54', 949717663, 201799169)
54077
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:11:54', '2013-03-07 15:11:54', 876923740, 201799169)
54078
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-07 15:11:54', '2013-03-07 15:11:54', 864673665, 201799169)
54079
+ Fixture Delete (0.2ms) DELETE FROM "users"
54080
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:11:54', '2013-03-07 15:11:54', 201799169)
54081
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:11:54', '2013-03-07 15:11:54', 999914115)
54082
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:11:54', '2013-03-07 15:11:54', 725306934)
54083
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:11:54', '2013-03-07 15:11:54', 349534908)
54084
+  (1.8ms) commit transaction
54085
+  (0.1ms) begin transaction
54086
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
54087
+  (0.1ms) rollback transaction
54088
+ --------------------------------------------------------------------------------
54089
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
54090
+ --------------------------------------------------------------------------------
54091
+  (0.1ms) begin transaction
54092
+ Authentication Load (0.5ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
54093
+  (0.1ms) rollback transaction
54094
+ -------------------------------------------------------------------------
54095
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
54096
+ -------------------------------------------------------------------------
54097
+  (0.1ms) begin transaction
54098
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54099
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
54100
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
54101
+ Processing by Contour::AuthenticationsController#create as HTML
54102
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:11:54 UTC", "updated_at"=>"2013-03-07 15:11:54 UTC"}}
54103
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
54104
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
54105
+ Logged in user found, creating associated authentication.
54106
+  (0.1ms) SAVEPOINT active_record_1
54107
+ SQL (27.6ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:11:55 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:11:55 UTC +00:00], ["user_id", 201799169]]
54108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54109
+ Redirected to http://test.host/authentications
54110
+ Completed 302 Found in 98ms (ActiveRecord: 28.3ms)
54111
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
54112
+  (0.8ms) rollback transaction
54113
+ --------------------------------------------------------------------------
54114
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
54115
+ --------------------------------------------------------------------------
54116
+  (0.1ms) begin transaction
54117
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54118
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
54119
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
54120
+ Processing by Contour::AuthenticationsController#destroy as HTML
54121
+ Parameters: {"id"=>"949717663"}
54122
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
54123
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
54124
+  (0.1ms) SAVEPOINT active_record_1
54125
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
54126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54127
+ Redirected to http://test.host/authentications
54128
+ Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
54129
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
54130
+  (0.5ms) rollback transaction
54131
+ -------------------------------------------------------------
54132
+ Contour::AuthenticationsControllerTest: test_should_get_index
54133
+ -------------------------------------------------------------
54134
+  (0.1ms) begin transaction
54135
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54136
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
54137
+ Processing by Contour::AuthenticationsController#index as HTML
54138
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
54139
+ Authentication Exists (0.3ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
54140
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
54141
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (34.3ms)
54142
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.5ms)
54143
+ Completed 200 OK in 373ms (Views: 368.6ms | ActiveRecord: 0.7ms)
54144
+  (0.1ms) rollback transaction
54145
+ -----------------------------------------------------------------------------
54146
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
54147
+ -----------------------------------------------------------------------------
54148
+  (0.1ms) begin transaction
54149
+ Processing by Contour::PasswordsController#create as HTML
54150
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
54151
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
54152
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'rzWHHbeBzM81itKQxZcm' LIMIT 1
54153
+  (0.1ms) SAVEPOINT active_record_1
54154
+ SQL (1.2ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "rzWHHbeBzM81itKQxZcm"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:11:55 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:11:55 UTC +00:00]]
54155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54156
+
54157
+ Sent mail to valid@example.com (93.7ms)
54158
+ Date: Thu, 07 Mar 2013 10:11:55 -0500
54159
+ From: please-change-me-at-config-initializers-devise@example.com
54160
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
54161
+ To: valid@example.com
54162
+ Message-ID: <5138ae3baa378_1280f3fd5bdc35adc858bc@edge2.partners.org.mail>
54163
+ Subject: Reset password instructions
54164
+ Mime-Version: 1.0
54165
+ Content-Type: text/html;
54166
+ charset=UTF-8
54167
+ Content-Transfer-Encoding: 7bit
54168
+
54169
+ <p>Hello valid@example.com!</p>
54170
+
54171
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
54172
+
54173
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=rzWHHbeBzM81itKQxZcm">Change my password</a></p>
54174
+
54175
+ <p>If you didn't request this, please ignore this email.</p>
54176
+ <p>Your password won't change until you access the link above and create a new one.</p>
54177
+
54178
+ Redirected to http://test.host/users/login
54179
+ Completed 302 Found in 288ms (ActiveRecord: 0.0ms)
54180
+  (0.7ms) rollback transaction
54181
+ -----------------------------------------------------------------------------
54182
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
54183
+ -----------------------------------------------------------------------------
54184
+  (0.1ms) begin transaction
54185
+ Processing by Contour::PasswordsController#new as HTML
54186
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.6ms)
54187
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (20.1ms)
54188
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (25.6ms)
54189
+ Completed 200 OK in 90ms (Views: 89.1ms | ActiveRecord: 0.0ms)
54190
+  (0.2ms) rollback transaction
54191
+ -----------------------------------------------------
54192
+ ContourHelperTest: test_should_show_sort_field_helper
54193
+ -----------------------------------------------------
54194
+  (0.1ms) begin transaction
54195
+  (0.1ms) rollback transaction
54196
+ ---------------------------------------------------------------------
54197
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
54198
+ ---------------------------------------------------------------------
54199
+  (0.1ms) begin transaction
54200
+  (0.1ms) rollback transaction
54201
+ -----------------------
54202
+ ContourTest: test_truth
54203
+ -----------------------
54204
+  (0.1ms) begin transaction
54205
+  (0.1ms) rollback transaction
54206
+ --------------------------------------------------------------------
54207
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
54208
+ --------------------------------------------------------------------
54209
+  (0.1ms) begin transaction
54210
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54211
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54212
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54213
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:11:55 -0500
54214
+ Processing by WelcomeController#logged_in_page as HTML
54215
+ Completed 401 Unauthorized in 53ms
54216
+  (0.1ms) SAVEPOINT active_record_1
54217
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
54218
+ Binary data inserted for `string` type on column `encrypted_password`
54219
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$1KREo7I3blrWUGTfTTRR6uFKiNi86ZBm6jXI1jOPGjZ0p9LbG8rcG"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00]]
54220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54221
+  (0.1ms) SAVEPOINT active_record_1
54222
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54223
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54225
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
54226
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
54227
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
54228
+ Processing by Contour::SessionsController#create as HTML
54229
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
54230
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
54231
+  (0.1ms) SAVEPOINT active_record_1
54232
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54233
+ Completed 401 Unauthorized in 18ms
54234
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
54235
+ Processing by Contour::SessionsController#new as HTML
54236
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.9ms)
54237
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.9ms)
54238
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.2ms)
54239
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.7ms)
54240
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.4ms)
54241
+ Completed 200 OK in 67ms (Views: 65.0ms | ActiveRecord: 0.0ms)
54242
+  (0.8ms) rollback transaction
54243
+ --------------------------------------------------------
54244
+ NavigationTest: test_friendly_url_forwarding_after_login
54245
+ --------------------------------------------------------
54246
+  (0.1ms) begin transaction
54247
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54248
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54249
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54250
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
54251
+ Processing by WelcomeController#logged_in_page as HTML
54252
+ Completed 401 Unauthorized in 2ms
54253
+  (0.1ms) SAVEPOINT active_record_1
54254
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
54255
+ Binary data inserted for `string` type on column `encrypted_password`
54256
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$IhNy9iMMzD0pcxpoAgvh/ObZth1JQAEMhWaQ1hFPILnx3w8vy1nJ2"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00]]
54257
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54258
+  (0.1ms) SAVEPOINT active_record_1
54259
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54260
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54261
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54262
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
54263
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
54264
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
54265
+ Processing by Contour::SessionsController#create as HTML
54266
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
54267
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
54268
+  (0.1ms) SAVEPOINT active_record_1
54269
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00]]
54270
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54271
+ Redirected to http://www.example.com/logged_in_page
54272
+ Completed 302 Found in 23ms (ActiveRecord: 0.0ms)
54273
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
54274
+ Processing by WelcomeController#logged_in_page as HTML
54275
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
54276
+ Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 0.2ms)
54277
+  (0.9ms) rollback transaction
54278
+ --------------------------------------------------------------------
54279
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
54280
+ --------------------------------------------------------------------
54281
+  (0.2ms) begin transaction
54282
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54283
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54284
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54285
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
54286
+ Processing by WelcomeController#logged_in_page as HTML
54287
+ Completed 401 Unauthorized in 2ms
54288
+  (0.1ms) SAVEPOINT active_record_1
54289
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
54290
+ Binary data inserted for `string` type on column `encrypted_password`
54291
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$FLB4udjPGqk2Smt6biH2I.ZeVSGstve3s8H9ndPJOqGLc0Lkrfb9a"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:11:56 UTC +00:00]]
54292
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54293
+  (0.1ms) SAVEPOINT active_record_1
54294
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54295
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54297
+ SQL (0.5ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
54298
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
54299
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
54300
+ Processing by Contour::SessionsController#create as HTML
54301
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
54302
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
54303
+  (0.1ms) SAVEPOINT active_record_1
54304
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54305
+ Completed 401 Unauthorized in 14ms
54306
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
54307
+ Processing by Contour::SessionsController#new as HTML
54308
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.2ms)
54309
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.0ms)
54310
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.2ms)
54311
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.3ms)
54312
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.2ms)
54313
+ Completed 200 OK in 37ms (Views: 34.5ms | ActiveRecord: 0.0ms)
54314
+  (0.8ms) rollback transaction
54315
+ -------------------------------------------------------------
54316
+ NavigationTest: test_root_navigation_redirected_to_login_page
54317
+ -------------------------------------------------------------
54318
+  (0.2ms) begin transaction
54319
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54320
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54321
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54322
+ Started GET "/" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
54323
+ Processing by WelcomeController#index as HTML
54324
+ Completed 401 Unauthorized in 2ms
54325
+  (0.1ms) rollback transaction
54326
+ -------------------------------------------------------------------------
54327
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
54328
+ -------------------------------------------------------------------------
54329
+  (0.1ms) begin transaction
54330
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54331
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54332
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54333
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:11:56 -0500
54334
+ Processing by WelcomeController#logged_in_page as JSON
54335
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
54336
+  (0.2ms) SAVEPOINT active_record_1
54337
+ SQL (0.9ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:11:57 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:11:57 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:11:57 UTC +00:00]]
54338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54339
+ Completed 200 OK in 363ms (Views: 1.0ms | ActiveRecord: 1.6ms)
54340
+  (0.6ms) rollback transaction
54341
+ ------------------------------------------------------------------------------------------------
54342
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
54343
+ ------------------------------------------------------------------------------------------------
54344
+  (0.2ms) begin transaction
54345
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54346
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54347
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54348
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:11:57 -0500
54349
+ Processing by WelcomeController#logged_in_page as JSON
54350
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
54351
+ Completed 401 Unauthorized in 373ms
54352
+  (0.1ms) rollback transaction
54353
+ ------------------------------------
54354
+ UserTest: test_should_apply_omniauth
54355
+ ------------------------------------
54356
+  (0.1ms) begin transaction
54357
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54358
+  (0.2ms) rollback transaction
54359
+ --------------------------------------
54360
+ UserTest: test_should_get_reverse_name
54361
+ --------------------------------------
54362
+  (0.1ms) begin transaction
54363
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54364
+  (0.1ms) rollback transaction
54365
+ -------------------------------------------------
54366
+ AuthenticationTest: test_should_get_provider_name
54367
+ -------------------------------------------------
54368
+  (0.6ms) begin transaction
54369
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
54370
+ Fixture Insert (0.4ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:18:42', '2013-03-07 15:18:42', 949717663, 201799169)
54371
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:18:42', '2013-03-07 15:18:42', 876923740, 201799169)
54372
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-07 15:18:42', '2013-03-07 15:18:42', 864673665, 201799169)
54373
+ Fixture Delete (0.2ms) DELETE FROM "users"
54374
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:18:43', '2013-03-07 15:18:43', 201799169)
54375
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:18:43', '2013-03-07 15:18:43', 999914115)
54376
+ Fixture Insert (0.3ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:18:43', '2013-03-07 15:18:43', 725306934)
54377
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:18:43', '2013-03-07 15:18:43', 349534908)
54378
+  (1.9ms) commit transaction
54379
+  (0.1ms) begin transaction
54380
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
54381
+  (0.2ms) rollback transaction
54382
+ --------------------------------------------------------------------------------
54383
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
54384
+ --------------------------------------------------------------------------------
54385
+  (0.2ms) begin transaction
54386
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
54387
+  (0.1ms) rollback transaction
54388
+ -------------------------------------------------------------------------
54389
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
54390
+ -------------------------------------------------------------------------
54391
+  (0.1ms) begin transaction
54392
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54393
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
54394
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
54395
+ Processing by Contour::AuthenticationsController#create as HTML
54396
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:18:42 UTC", "updated_at"=>"2013-03-07 15:18:42 UTC"}}
54397
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
54398
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
54399
+ Logged in user found, creating associated authentication.
54400
+  (0.1ms) SAVEPOINT active_record_1
54401
+ SQL (4.1ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:18:43 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:18:43 UTC +00:00], ["user_id", 201799169]]
54402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54403
+ Redirected to http://test.host/authentications
54404
+ Completed 302 Found in 57ms (ActiveRecord: 4.7ms)
54405
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
54406
+  (0.5ms) rollback transaction
54407
+ --------------------------------------------------------------------------
54408
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
54409
+ --------------------------------------------------------------------------
54410
+  (0.1ms) begin transaction
54411
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54412
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
54413
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
54414
+ Processing by Contour::AuthenticationsController#destroy as HTML
54415
+ Parameters: {"id"=>"949717663"}
54416
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
54417
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
54418
+  (0.1ms) SAVEPOINT active_record_1
54419
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
54420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54421
+ Redirected to http://test.host/authentications
54422
+ Completed 302 Found in 9ms (ActiveRecord: 1.0ms)
54423
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
54424
+  (0.8ms) rollback transaction
54425
+ -------------------------------------------------------------
54426
+ Contour::AuthenticationsControllerTest: test_should_get_index
54427
+ -------------------------------------------------------------
54428
+  (0.1ms) begin transaction
54429
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54430
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
54431
+ Processing by Contour::AuthenticationsController#index as HTML
54432
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
54433
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
54434
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
54435
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (34.7ms)
54436
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.0ms)
54437
+ Completed 200 OK in 324ms (Views: 319.8ms | ActiveRecord: 0.6ms)
54438
+  (0.1ms) rollback transaction
54439
+ -----------------------------------------------------------------------------
54440
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
54441
+ -----------------------------------------------------------------------------
54442
+  (0.1ms) begin transaction
54443
+ Processing by Contour::PasswordsController#create as HTML
54444
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
54445
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
54446
+ User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'xLqtpnSjF2U8243Vdqxs' LIMIT 1
54447
+  (0.1ms) SAVEPOINT active_record_1
54448
+ SQL (0.8ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "xLqtpnSjF2U8243Vdqxs"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:18:43 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:18:43 UTC +00:00]]
54449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54450
+
54451
+ Sent mail to valid@example.com (91.8ms)
54452
+ Date: Thu, 07 Mar 2013 10:18:43 -0500
54453
+ From: please-change-me-at-config-initializers-devise@example.com
54454
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
54455
+ To: valid@example.com
54456
+ Message-ID: <5138afd3ca9ae_129273fe88a035ae079765@edge2.partners.org.mail>
54457
+ Subject: Reset password instructions
54458
+ Mime-Version: 1.0
54459
+ Content-Type: text/html;
54460
+ charset=UTF-8
54461
+ Content-Transfer-Encoding: 7bit
54462
+
54463
+ <p>Hello valid@example.com!</p>
54464
+
54465
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
54466
+
54467
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=xLqtpnSjF2U8243Vdqxs">Change my password</a></p>
54468
+
54469
+ <p>If you didn't request this, please ignore this email.</p>
54470
+ <p>Your password won't change until you access the link above and create a new one.</p>
54471
+
54472
+ Redirected to http://test.host/users/login
54473
+ Completed 302 Found in 259ms (ActiveRecord: 0.0ms)
54474
+  (0.8ms) rollback transaction
54475
+ -----------------------------------------------------------------------------
54476
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
54477
+ -----------------------------------------------------------------------------
54478
+  (0.1ms) begin transaction
54479
+ Processing by Contour::PasswordsController#new as HTML
54480
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.0ms)
54481
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (23.8ms)
54482
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (29.5ms)
54483
+ Completed 200 OK in 73ms (Views: 71.9ms | ActiveRecord: 0.0ms)
54484
+  (0.1ms) rollback transaction
54485
+ ----------------------------------------------------------------------
54486
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
54487
+ ----------------------------------------------------------------------
54488
+  (0.2ms) begin transaction
54489
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54490
+ Processing by Contour::SessionsController#create as JSON
54491
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
54492
+ [Devise] Could not find devise mapping for path "/users/login.json?user%5Bemail%5D=valid%40example.com&user%5Bpassword%5D=password".
54493
+ This may happen for two reasons:
54494
+
54495
+ 1) You forgot to wrap your route inside the scope block. For example:
54496
+
54497
+ devise_scope :user do
54498
+ get "/some/route" => "some_devise_controller"
54499
+ end
54500
+
54501
+ 2) You are testing a Devise controller bypassing the router.
54502
+ If so, you can explicitly tell Devise which mapping to use:
54503
+
54504
+ @request.env["devise.mapping"] = Devise.mappings[:user]
54505
+
54506
+
54507
+ Completed 404 Not Found in 1ms
54508
+  (0.1ms) rollback transaction
54509
+ -----------------------------------------------------
54510
+ ContourHelperTest: test_should_show_sort_field_helper
54511
+ -----------------------------------------------------
54512
+  (0.1ms) begin transaction
54513
+  (0.1ms) rollback transaction
54514
+ ---------------------------------------------------------------------
54515
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
54516
+ ---------------------------------------------------------------------
54517
+  (0.1ms) begin transaction
54518
+  (0.1ms) rollback transaction
54519
+ -----------------------
54520
+ ContourTest: test_truth
54521
+ -----------------------
54522
+  (0.1ms) begin transaction
54523
+  (0.1ms) rollback transaction
54524
+ --------------------------------------------------------------------
54525
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
54526
+ --------------------------------------------------------------------
54527
+  (0.1ms) begin transaction
54528
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54529
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54530
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54531
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
54532
+ Processing by WelcomeController#logged_in_page as HTML
54533
+ Completed 401 Unauthorized in 32ms
54534
+  (0.1ms) SAVEPOINT active_record_1
54535
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
54536
+ Binary data inserted for `string` type on column `encrypted_password`
54537
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$xdha/tO4aMud4vAYCaJtQujyowpZJAjufHX9x.m/0MM5V0VYj2z3i"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00]]
54538
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54539
+  (0.1ms) SAVEPOINT active_record_1
54540
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54541
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54542
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54543
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
54544
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
54545
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
54546
+ Processing by Contour::SessionsController#create as HTML
54547
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
54548
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
54549
+  (0.1ms) SAVEPOINT active_record_1
54550
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54551
+ Completed 401 Unauthorized in 18ms
54552
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
54553
+ Processing by Contour::SessionsController#new as HTML
54554
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
54555
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.1ms)
54556
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.3ms)
54557
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.5ms)
54558
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.4ms)
54559
+ Completed 200 OK in 104ms (Views: 102.1ms | ActiveRecord: 0.0ms)
54560
+  (0.8ms) rollback transaction
54561
+ --------------------------------------------------------
54562
+ NavigationTest: test_friendly_url_forwarding_after_login
54563
+ --------------------------------------------------------
54564
+  (0.1ms) begin transaction
54565
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54566
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54567
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54568
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
54569
+ Processing by WelcomeController#logged_in_page as HTML
54570
+ Completed 401 Unauthorized in 2ms
54571
+  (0.2ms) SAVEPOINT active_record_1
54572
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
54573
+ Binary data inserted for `string` type on column `encrypted_password`
54574
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$fPTn0QGIzjXL6C86qXrTRejG6F6Iv8bGmv.mETT8FxPa7s22oeEca"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00]]
54575
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54576
+  (0.1ms) SAVEPOINT active_record_1
54577
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54578
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54579
+  (0.2ms) RELEASE SAVEPOINT active_record_1
54580
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
54581
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
54582
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
54583
+ Processing by Contour::SessionsController#create as HTML
54584
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
54585
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
54586
+  (0.1ms) SAVEPOINT active_record_1
54587
+ SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00]]
54588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54589
+ Redirected to http://www.example.com/logged_in_page
54590
+ Completed 302 Found in 23ms (ActiveRecord: 0.0ms)
54591
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
54592
+ Processing by WelcomeController#logged_in_page as HTML
54593
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
54594
+ Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 0.2ms)
54595
+  (0.8ms) rollback transaction
54596
+ --------------------------------------------------------------------
54597
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
54598
+ --------------------------------------------------------------------
54599
+  (0.1ms) begin transaction
54600
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54601
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54602
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54603
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
54604
+ Processing by WelcomeController#logged_in_page as HTML
54605
+ Completed 401 Unauthorized in 2ms
54606
+  (0.1ms) SAVEPOINT active_record_1
54607
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
54608
+ Binary data inserted for `string` type on column `encrypted_password`
54609
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$rXiS3o4hmoFWz7hDQP5EEOG7zN4djedkvNc/pE/lHNEdbUezN/Eeu"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:18:44 UTC +00:00]]
54610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54611
+  (0.1ms) SAVEPOINT active_record_1
54612
+ Authentication Exists (0.6ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54613
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54614
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54615
+ SQL (0.6ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
54616
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
54617
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
54618
+ Processing by Contour::SessionsController#create as HTML
54619
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
54620
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
54621
+  (0.1ms) SAVEPOINT active_record_1
54622
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54623
+ Completed 401 Unauthorized in 14ms
54624
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
54625
+ Processing by Contour::SessionsController#new as HTML
54626
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
54627
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.0ms)
54628
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.2ms)
54629
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.6ms)
54630
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.3ms)
54631
+ Completed 200 OK in 37ms (Views: 35.1ms | ActiveRecord: 0.0ms)
54632
+  (1.0ms) rollback transaction
54633
+ -------------------------------------------------------------
54634
+ NavigationTest: test_root_navigation_redirected_to_login_page
54635
+ -------------------------------------------------------------
54636
+  (0.1ms) begin transaction
54637
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54638
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54639
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54640
+ Started GET "/" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
54641
+ Processing by WelcomeController#index as HTML
54642
+ Completed 401 Unauthorized in 2ms
54643
+  (0.1ms) rollback transaction
54644
+ -------------------------------------------------------------------------
54645
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
54646
+ -------------------------------------------------------------------------
54647
+  (0.1ms) begin transaction
54648
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54649
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54650
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54651
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:18:44 -0500
54652
+ Processing by WelcomeController#logged_in_page as JSON
54653
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
54654
+  (0.1ms) SAVEPOINT active_record_1
54655
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:18:45 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:18:45 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:18:45 UTC +00:00]]
54656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54657
+ Completed 200 OK in 326ms (Views: 0.5ms | ActiveRecord: 1.3ms)
54658
+  (14.4ms) rollback transaction
54659
+ ------------------------------------------------------------------------------------------------
54660
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
54661
+ ------------------------------------------------------------------------------------------------
54662
+  (0.1ms) begin transaction
54663
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54664
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54665
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54666
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:18:45 -0500
54667
+ Processing by WelcomeController#logged_in_page as JSON
54668
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
54669
+ Completed 401 Unauthorized in 316ms
54670
+  (0.2ms) rollback transaction
54671
+ ------------------------------------
54672
+ UserTest: test_should_apply_omniauth
54673
+ ------------------------------------
54674
+  (0.1ms) begin transaction
54675
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54676
+  (0.1ms) rollback transaction
54677
+ --------------------------------------
54678
+ UserTest: test_should_get_reverse_name
54679
+ --------------------------------------
54680
+  (0.1ms) begin transaction
54681
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54682
+  (0.1ms) rollback transaction
54683
+ -------------------------------------------------
54684
+ AuthenticationTest: test_should_get_provider_name
54685
+ -------------------------------------------------
54686
+  (0.6ms) begin transaction
54687
+ Fixture Delete (19.8ms) DELETE FROM "authentications"
54688
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:21:01', '2013-03-07 15:21:01', 949717663, 201799169)
54689
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:21:01', '2013-03-07 15:21:01', 876923740, 201799169)
54690
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-07 15:21:01', '2013-03-07 15:21:01', 864673665, 201799169)
54691
+ Fixture Delete (0.2ms) DELETE FROM "users"
54692
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:21:01', '2013-03-07 15:21:01', 201799169)
54693
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:21:01', '2013-03-07 15:21:01', 999914115)
54694
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:21:01', '2013-03-07 15:21:01', 725306934)
54695
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:21:01', '2013-03-07 15:21:01', 349534908)
54696
+  (1.7ms) commit transaction
54697
+  (0.1ms) begin transaction
54698
+ Authentication Load (0.5ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
54699
+  (0.2ms) rollback transaction
54700
+ --------------------------------------------------------------------------------
54701
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
54702
+ --------------------------------------------------------------------------------
54703
+  (0.1ms) begin transaction
54704
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
54705
+  (0.1ms) rollback transaction
54706
+ -------------------------------------------------------------------------
54707
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
54708
+ -------------------------------------------------------------------------
54709
+  (0.1ms) begin transaction
54710
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54711
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
54712
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
54713
+ Processing by Contour::AuthenticationsController#create as HTML
54714
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:21:01 UTC", "updated_at"=>"2013-03-07 15:21:01 UTC"}}
54715
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
54716
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
54717
+ Logged in user found, creating associated authentication.
54718
+  (0.2ms) SAVEPOINT active_record_1
54719
+ SQL (3.7ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:21:02 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:21:02 UTC +00:00], ["user_id", 201799169]]
54720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54721
+ Redirected to http://test.host/authentications
54722
+ Completed 302 Found in 57ms (ActiveRecord: 4.4ms)
54723
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
54724
+  (0.8ms) rollback transaction
54725
+ --------------------------------------------------------------------------
54726
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
54727
+ --------------------------------------------------------------------------
54728
+  (0.1ms) begin transaction
54729
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54730
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
54731
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
54732
+ Processing by Contour::AuthenticationsController#destroy as HTML
54733
+ Parameters: {"id"=>"949717663"}
54734
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
54735
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
54736
+  (0.1ms) SAVEPOINT active_record_1
54737
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
54738
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54739
+ Redirected to http://test.host/authentications
54740
+ Completed 302 Found in 9ms (ActiveRecord: 1.1ms)
54741
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
54742
+  (0.7ms) rollback transaction
54743
+ -------------------------------------------------------------
54744
+ Contour::AuthenticationsControllerTest: test_should_get_index
54745
+ -------------------------------------------------------------
54746
+  (0.1ms) begin transaction
54747
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54748
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
54749
+ Processing by Contour::AuthenticationsController#index as HTML
54750
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
54751
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
54752
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
54753
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (32.7ms)
54754
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (6.6ms)
54755
+ Completed 200 OK in 288ms (Views: 283.5ms | ActiveRecord: 0.7ms)
54756
+  (0.1ms) rollback transaction
54757
+ -----------------------------------------------------------------------------
54758
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
54759
+ -----------------------------------------------------------------------------
54760
+  (0.1ms) begin transaction
54761
+ Processing by Contour::PasswordsController#create as HTML
54762
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
54763
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
54764
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'RU9oioyzpMzqVtzkJow8' LIMIT 1
54765
+  (0.1ms) SAVEPOINT active_record_1
54766
+ SQL (0.8ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "RU9oioyzpMzqVtzkJow8"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:21:02 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:21:02 UTC +00:00]]
54767
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54768
+
54769
+ Sent mail to valid@example.com (99.0ms)
54770
+ Date: Thu, 07 Mar 2013 10:21:02 -0500
54771
+ From: please-change-me-at-config-initializers-devise@example.com
54772
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
54773
+ To: valid@example.com
54774
+ Message-ID: <5138b05eb409f_1298c3fd535035ad03127f@edge2.partners.org.mail>
54775
+ Subject: Reset password instructions
54776
+ Mime-Version: 1.0
54777
+ Content-Type: text/html;
54778
+ charset=UTF-8
54779
+ Content-Transfer-Encoding: 7bit
54780
+
54781
+ <p>Hello valid@example.com!</p>
54782
+
54783
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
54784
+
54785
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=RU9oioyzpMzqVtzkJow8">Change my password</a></p>
54786
+
54787
+ <p>If you didn't request this, please ignore this email.</p>
54788
+ <p>Your password won't change until you access the link above and create a new one.</p>
54789
+
54790
+ Redirected to http://test.host/users/login
54791
+ Completed 302 Found in 236ms (ActiveRecord: 0.0ms)
54792
+  (0.6ms) rollback transaction
54793
+ -----------------------------------------------------------------------------
54794
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
54795
+ -----------------------------------------------------------------------------
54796
+  (0.2ms) begin transaction
54797
+ Processing by Contour::PasswordsController#new as HTML
54798
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (4.5ms)
54799
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (21.6ms)
54800
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (27.2ms)
54801
+ Completed 200 OK in 76ms (Views: 74.5ms | ActiveRecord: 0.0ms)
54802
+  (0.1ms) rollback transaction
54803
+ ----------------------------------------------------------------------
54804
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
54805
+ ----------------------------------------------------------------------
54806
+  (0.1ms) begin transaction
54807
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54808
+ Processing by Contour::SessionsController#create as JSON
54809
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
54810
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
54811
+  (0.1ms) SAVEPOINT active_record_1
54812
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00]]
54813
+  (0.2ms) RELEASE SAVEPOINT active_record_1
54814
+ Completed 500 Internal Server Error in 325ms
54815
+  (0.8ms) rollback transaction
54816
+ -----------------------------------------------------
54817
+ ContourHelperTest: test_should_show_sort_field_helper
54818
+ -----------------------------------------------------
54819
+  (0.1ms) begin transaction
54820
+  (0.1ms) rollback transaction
54821
+ ---------------------------------------------------------------------
54822
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
54823
+ ---------------------------------------------------------------------
54824
+  (0.1ms) begin transaction
54825
+  (0.2ms) rollback transaction
54826
+ -----------------------
54827
+ ContourTest: test_truth
54828
+ -----------------------
54829
+  (0.1ms) begin transaction
54830
+  (0.1ms) rollback transaction
54831
+ --------------------------------------------------------------------
54832
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
54833
+ --------------------------------------------------------------------
54834
+  (0.1ms) begin transaction
54835
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54836
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54837
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54838
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
54839
+ Processing by WelcomeController#logged_in_page as HTML
54840
+ Completed 401 Unauthorized in 34ms
54841
+  (0.1ms) SAVEPOINT active_record_1
54842
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
54843
+ Binary data inserted for `string` type on column `encrypted_password`
54844
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$9GyRCpiiSGLQtjGueR.UY.61z8sHEmWTSglE1ffaD3PlNRI4l8zhG"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00]]
54845
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54846
+  (0.1ms) SAVEPOINT active_record_1
54847
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54848
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54850
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
54851
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
54852
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
54853
+ Processing by Contour::SessionsController#create as HTML
54854
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
54855
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
54856
+  (0.1ms) SAVEPOINT active_record_1
54857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54858
+ Completed 401 Unauthorized in 18ms
54859
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
54860
+ Processing by Contour::SessionsController#new as HTML
54861
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.0ms)
54862
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.1ms)
54863
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.2ms)
54864
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.9ms)
54865
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.7ms)
54866
+ Completed 200 OK in 106ms (Views: 103.1ms | ActiveRecord: 0.0ms)
54867
+  (0.9ms) rollback transaction
54868
+ --------------------------------------------------------
54869
+ NavigationTest: test_friendly_url_forwarding_after_login
54870
+ --------------------------------------------------------
54871
+  (0.3ms) begin transaction
54872
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54873
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54874
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54875
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
54876
+ Processing by WelcomeController#logged_in_page as HTML
54877
+ Completed 401 Unauthorized in 2ms
54878
+  (0.1ms) SAVEPOINT active_record_1
54879
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
54880
+ Binary data inserted for `string` type on column `encrypted_password`
54881
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$DPEf8xf/sF6X7QlY8/69gONLUgk5DKNzU.l8nZOEkdgg69./wQrdq"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00]]
54882
+  (0.2ms) RELEASE SAVEPOINT active_record_1
54883
+  (0.1ms) SAVEPOINT active_record_1
54884
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54885
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54886
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54887
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
54888
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
54889
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
54890
+ Processing by Contour::SessionsController#create as HTML
54891
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
54892
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
54893
+  (0.1ms) SAVEPOINT active_record_1
54894
+ SQL (0.7ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00]]
54895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54896
+ Redirected to http://www.example.com/logged_in_page
54897
+ Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
54898
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
54899
+ Processing by WelcomeController#logged_in_page as HTML
54900
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
54901
+ Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.2ms)
54902
+  (0.8ms) rollback transaction
54903
+ --------------------------------------------------------------------
54904
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
54905
+ --------------------------------------------------------------------
54906
+  (0.1ms) begin transaction
54907
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54908
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54909
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54910
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
54911
+ Processing by WelcomeController#logged_in_page as HTML
54912
+ Completed 401 Unauthorized in 2ms
54913
+  (0.1ms) SAVEPOINT active_record_1
54914
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
54915
+ Binary data inserted for `string` type on column `encrypted_password`
54916
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$6z1WD2m4mVFjQVCUijqrheY5zwFpQlQ0vhl/QxH0xq0Tp.bdkhYYe"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:21:03 UTC +00:00]]
54917
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54918
+  (0.1ms) SAVEPOINT active_record_1
54919
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54920
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54922
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
54923
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
54924
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
54925
+ Processing by Contour::SessionsController#create as HTML
54926
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
54927
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
54928
+  (0.1ms) SAVEPOINT active_record_1
54929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54930
+ Completed 401 Unauthorized in 13ms
54931
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
54932
+ Processing by Contour::SessionsController#new as HTML
54933
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
54934
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.3ms)
54935
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
54936
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.1ms)
54937
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.2ms)
54938
+ Completed 200 OK in 39ms (Views: 36.7ms | ActiveRecord: 0.0ms)
54939
+  (0.8ms) rollback transaction
54940
+ -------------------------------------------------------------
54941
+ NavigationTest: test_root_navigation_redirected_to_login_page
54942
+ -------------------------------------------------------------
54943
+  (0.2ms) begin transaction
54944
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54945
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54946
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54947
+ Started GET "/" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
54948
+ Processing by WelcomeController#index as HTML
54949
+ Completed 401 Unauthorized in 3ms
54950
+  (0.1ms) rollback transaction
54951
+ -------------------------------------------------------------------------
54952
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
54953
+ -------------------------------------------------------------------------
54954
+  (0.1ms) begin transaction
54955
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54956
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54957
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54958
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:21:03 -0500
54959
+ Processing by WelcomeController#logged_in_page as JSON
54960
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
54961
+  (0.1ms) SAVEPOINT active_record_1
54962
+ SQL (0.7ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:21:04 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:21:04 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:21:04 UTC +00:00]]
54963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54964
+ Completed 200 OK in 326ms (Views: 0.4ms | ActiveRecord: 1.3ms)
54965
+  (40.1ms) rollback transaction
54966
+ ------------------------------------------------------------------------------------------------
54967
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
54968
+ ------------------------------------------------------------------------------------------------
54969
+  (0.2ms) begin transaction
54970
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54971
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54972
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54973
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:21:04 -0500
54974
+ Processing by WelcomeController#logged_in_page as JSON
54975
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
54976
+ Completed 401 Unauthorized in 318ms
54977
+  (0.2ms) rollback transaction
54978
+ ------------------------------------
54979
+ UserTest: test_should_apply_omniauth
54980
+ ------------------------------------
54981
+  (0.1ms) begin transaction
54982
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54983
+  (0.1ms) rollback transaction
54984
+ --------------------------------------
54985
+ UserTest: test_should_get_reverse_name
54986
+ --------------------------------------
54987
+  (0.1ms) begin transaction
54988
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54989
+  (0.1ms) rollback transaction
54990
+ -------------------------------------------------
54991
+ AuthenticationTest: test_should_get_provider_name
54992
+ -------------------------------------------------
54993
+  (0.5ms) begin transaction
54994
+ Fixture Delete (0.4ms) DELETE FROM "authentications"
54995
+ Fixture Insert (0.3ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:23:24', '2013-03-07 15:23:24', 949717663, 201799169)
54996
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:23:24', '2013-03-07 15:23:24', 876923740, 201799169)
54997
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-07 15:23:24', '2013-03-07 15:23:24', 864673665, 201799169)
54998
+ Fixture Delete (0.2ms) DELETE FROM "users"
54999
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:23:24', '2013-03-07 15:23:24', 201799169)
55000
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:23:24', '2013-03-07 15:23:24', 999914115)
55001
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:23:24', '2013-03-07 15:23:24', 725306934)
55002
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:23:24', '2013-03-07 15:23:24', 349534908)
55003
+  (1.8ms) commit transaction
55004
+  (0.1ms) begin transaction
55005
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
55006
+  (0.2ms) rollback transaction
55007
+ --------------------------------------------------------------------------------
55008
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
55009
+ --------------------------------------------------------------------------------
55010
+  (0.1ms) begin transaction
55011
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55012
+  (0.1ms) rollback transaction
55013
+ -------------------------------------------------------------------------
55014
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
55015
+ -------------------------------------------------------------------------
55016
+  (0.1ms) begin transaction
55017
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55018
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55019
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
55020
+ Processing by Contour::AuthenticationsController#create as HTML
55021
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:23:24 UTC", "updated_at"=>"2013-03-07 15:23:24 UTC"}}
55022
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
55023
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
55024
+ Logged in user found, creating associated authentication.
55025
+  (0.1ms) SAVEPOINT active_record_1
55026
+ SQL (29.3ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:23:24 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:23:24 UTC +00:00], ["user_id", 201799169]]
55027
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55028
+ Redirected to http://test.host/authentications
55029
+ Completed 302 Found in 81ms (ActiveRecord: 29.9ms)
55030
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
55031
+  (0.6ms) rollback transaction
55032
+ --------------------------------------------------------------------------
55033
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
55034
+ --------------------------------------------------------------------------
55035
+  (0.1ms) begin transaction
55036
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55037
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55038
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
55039
+ Processing by Contour::AuthenticationsController#destroy as HTML
55040
+ Parameters: {"id"=>"949717663"}
55041
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
55042
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
55043
+  (0.1ms) SAVEPOINT active_record_1
55044
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
55045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55046
+ Redirected to http://test.host/authentications
55047
+ Completed 302 Found in 9ms (ActiveRecord: 1.0ms)
55048
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
55049
+  (14.7ms) rollback transaction
55050
+ -------------------------------------------------------------
55051
+ Contour::AuthenticationsControllerTest: test_should_get_index
55052
+ -------------------------------------------------------------
55053
+  (0.2ms) begin transaction
55054
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55055
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55056
+ Processing by Contour::AuthenticationsController#index as HTML
55057
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
55058
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
55059
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
55060
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (31.4ms)
55061
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.9ms)
55062
+ Completed 200 OK in 338ms (Views: 333.3ms | ActiveRecord: 0.6ms)
55063
+  (0.2ms) rollback transaction
55064
+ -----------------------------------------------------------------------------
55065
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
55066
+ -----------------------------------------------------------------------------
55067
+  (0.2ms) begin transaction
55068
+ Processing by Contour::PasswordsController#create as HTML
55069
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
55070
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55071
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '67rrgYiVGCBbKdezcopS' LIMIT 1
55072
+  (0.1ms) SAVEPOINT active_record_1
55073
+ SQL (0.7ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "67rrgYiVGCBbKdezcopS"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:23:25 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:23:25 UTC +00:00]]
55074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55075
+
55076
+ Sent mail to valid@example.com (102.5ms)
55077
+ Date: Thu, 07 Mar 2013 10:23:25 -0500
55078
+ From: please-change-me-at-config-initializers-devise@example.com
55079
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
55080
+ To: valid@example.com
55081
+ Message-ID: <5138b0ed7f028_12a053fd7c5835ae073671@edge2.partners.org.mail>
55082
+ Subject: Reset password instructions
55083
+ Mime-Version: 1.0
55084
+ Content-Type: text/html;
55085
+ charset=UTF-8
55086
+ Content-Transfer-Encoding: 7bit
55087
+
55088
+ <p>Hello valid@example.com!</p>
55089
+
55090
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
55091
+
55092
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=67rrgYiVGCBbKdezcopS">Change my password</a></p>
55093
+
55094
+ <p>If you didn't request this, please ignore this email.</p>
55095
+ <p>Your password won't change until you access the link above and create a new one.</p>
55096
+
55097
+ Redirected to http://test.host/users/login
55098
+ Completed 302 Found in 276ms (ActiveRecord: 0.0ms)
55099
+  (1.0ms) rollback transaction
55100
+ -----------------------------------------------------------------------------
55101
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
55102
+ -----------------------------------------------------------------------------
55103
+  (0.2ms) begin transaction
55104
+ Processing by Contour::PasswordsController#new as HTML
55105
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (4.3ms)
55106
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (22.0ms)
55107
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (29.1ms)
55108
+ Completed 200 OK in 72ms (Views: 70.9ms | ActiveRecord: 0.0ms)
55109
+  (0.1ms) rollback transaction
55110
+ ----------------------------------------------------------------------
55111
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
55112
+ ----------------------------------------------------------------------
55113
+  (0.1ms) begin transaction
55114
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55115
+ Processing by Contour::SessionsController#create as JSON
55116
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
55117
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55118
+  (0.2ms) SAVEPOINT active_record_1
55119
+ SQL (1.0ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00]]
55120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55121
+ Completed 200 OK in 326ms (Views: 1.1ms | ActiveRecord: 1.7ms)
55122
+  (0.6ms) rollback transaction
55123
+ -----------------------------------------------------
55124
+ ContourHelperTest: test_should_show_sort_field_helper
55125
+ -----------------------------------------------------
55126
+  (0.1ms) begin transaction
55127
+  (0.2ms) rollback transaction
55128
+ ---------------------------------------------------------------------
55129
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
55130
+ ---------------------------------------------------------------------
55131
+  (0.2ms) begin transaction
55132
+  (0.1ms) rollback transaction
55133
+ -----------------------
55134
+ ContourTest: test_truth
55135
+ -----------------------
55136
+  (0.1ms) begin transaction
55137
+  (0.1ms) rollback transaction
55138
+ --------------------------------------------------------------------
55139
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
55140
+ --------------------------------------------------------------------
55141
+  (0.1ms) begin transaction
55142
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55143
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55144
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55145
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
55146
+ Processing by WelcomeController#logged_in_page as HTML
55147
+ Completed 401 Unauthorized in 34ms
55148
+  (0.1ms) SAVEPOINT active_record_1
55149
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
55150
+ Binary data inserted for `string` type on column `encrypted_password`
55151
+ SQL (1.1ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$Kvz2U15QDXS7gq9KmQWrzu8K2Yy7l/Bl3b/5ENywdOrcr0AhgBM0a"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00]]
55152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55153
+  (0.1ms) SAVEPOINT active_record_1
55154
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55155
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55157
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
55158
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
55159
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
55160
+ Processing by Contour::SessionsController#create as HTML
55161
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
55162
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
55163
+  (0.3ms) SAVEPOINT active_record_1
55164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55165
+ Completed 401 Unauthorized in 18ms
55166
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
55167
+ Processing by Contour::SessionsController#new as HTML
55168
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.7ms)
55169
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (7.0ms)
55170
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.3ms)
55171
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.1ms)
55172
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.6ms)
55173
+ Completed 200 OK in 113ms (Views: 110.6ms | ActiveRecord: 0.0ms)
55174
+  (0.9ms) rollback transaction
55175
+ --------------------------------------------------------
55176
+ NavigationTest: test_friendly_url_forwarding_after_login
55177
+ --------------------------------------------------------
55178
+  (0.1ms) begin transaction
55179
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55180
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55181
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55182
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
55183
+ Processing by WelcomeController#logged_in_page as HTML
55184
+ Completed 401 Unauthorized in 2ms
55185
+  (0.2ms) SAVEPOINT active_record_1
55186
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
55187
+ Binary data inserted for `string` type on column `encrypted_password`
55188
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$g3/wh7Gr8xhTUU0Cs1QRpueHKF6fEk4txcKNK4cf5lfcqr50kg/CW"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00]]
55189
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55190
+  (0.1ms) SAVEPOINT active_record_1
55191
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55192
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55193
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55194
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
55195
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
55196
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
55197
+ Processing by Contour::SessionsController#create as HTML
55198
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
55199
+ User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
55200
+  (0.1ms) SAVEPOINT active_record_1
55201
+ SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00]]
55202
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55203
+ Redirected to http://www.example.com/logged_in_page
55204
+ Completed 302 Found in 23ms (ActiveRecord: 0.0ms)
55205
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
55206
+ Processing by WelcomeController#logged_in_page as HTML
55207
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
55208
+ Completed 200 OK in 9ms (Views: 4.2ms | ActiveRecord: 0.2ms)
55209
+  (0.8ms) rollback transaction
55210
+ --------------------------------------------------------------------
55211
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
55212
+ --------------------------------------------------------------------
55213
+  (0.1ms) begin transaction
55214
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55215
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55216
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55217
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
55218
+ Processing by WelcomeController#logged_in_page as HTML
55219
+ Completed 401 Unauthorized in 3ms
55220
+  (0.1ms) SAVEPOINT active_record_1
55221
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
55222
+ Binary data inserted for `string` type on column `encrypted_password`
55223
+ SQL (1.1ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$YHR3yD5DRyN7B3JssMxDNOrxS0fXG7FGDjlA2q1JP93P8SGZSq/He"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:23:26 UTC +00:00]]
55224
+  (0.2ms) RELEASE SAVEPOINT active_record_1
55225
+  (0.1ms) SAVEPOINT active_record_1
55226
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55227
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55228
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55229
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
55230
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
55231
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
55232
+ Processing by Contour::SessionsController#create as HTML
55233
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
55234
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
55235
+  (0.1ms) SAVEPOINT active_record_1
55236
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55237
+ Completed 401 Unauthorized in 15ms
55238
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
55239
+ Processing by Contour::SessionsController#new as HTML
55240
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
55241
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.8ms)
55242
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
55243
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.5ms)
55244
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.4ms)
55245
+ Completed 200 OK in 39ms (Views: 36.5ms | ActiveRecord: 0.0ms)
55246
+  (0.8ms) rollback transaction
55247
+ -------------------------------------------------------------
55248
+ NavigationTest: test_root_navigation_redirected_to_login_page
55249
+ -------------------------------------------------------------
55250
+  (0.1ms) begin transaction
55251
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55252
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55253
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55254
+ Started GET "/" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
55255
+ Processing by WelcomeController#index as HTML
55256
+ Completed 401 Unauthorized in 2ms
55257
+  (0.2ms) rollback transaction
55258
+ -------------------------------------------------------------------------
55259
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
55260
+ -------------------------------------------------------------------------
55261
+  (0.1ms) begin transaction
55262
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55263
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55264
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55265
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:23:26 -0500
55266
+ Processing by WelcomeController#logged_in_page as JSON
55267
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55268
+  (0.2ms) SAVEPOINT active_record_1
55269
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:23:27 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:23:27 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:23:27 UTC +00:00]]
55270
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55271
+ Completed 200 OK in 332ms (Views: 0.4ms | ActiveRecord: 1.5ms)
55272
+  (0.7ms) rollback transaction
55273
+ ------------------------------------------------------------------------------------------------
55274
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
55275
+ ------------------------------------------------------------------------------------------------
55276
+  (0.1ms) begin transaction
55277
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55278
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55279
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55280
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:23:27 -0500
55281
+ Processing by WelcomeController#logged_in_page as JSON
55282
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55283
+ Completed 401 Unauthorized in 316ms
55284
+  (0.2ms) rollback transaction
55285
+ ------------------------------------
55286
+ UserTest: test_should_apply_omniauth
55287
+ ------------------------------------
55288
+  (0.1ms) begin transaction
55289
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55290
+  (0.1ms) rollback transaction
55291
+ --------------------------------------
55292
+ UserTest: test_should_get_reverse_name
55293
+ --------------------------------------
55294
+  (0.1ms) begin transaction
55295
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55296
+  (0.1ms) rollback transaction
55297
+ -------------------------------------------------
55298
+ AuthenticationTest: test_should_get_provider_name
55299
+ -------------------------------------------------
55300
+  (0.5ms) begin transaction
55301
+ Fixture Delete (0.4ms) DELETE FROM "authentications"
55302
+ Fixture Insert (0.3ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:24:42', '2013-03-07 15:24:42', 949717663, 201799169)
55303
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:24:42', '2013-03-07 15:24:42', 876923740, 201799169)
55304
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-07 15:24:42', '2013-03-07 15:24:42', 864673665, 201799169)
55305
+ Fixture Delete (0.3ms) DELETE FROM "users"
55306
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:24:42', '2013-03-07 15:24:42', 201799169)
55307
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:24:42', '2013-03-07 15:24:42', 999914115)
55308
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:24:42', '2013-03-07 15:24:42', 725306934)
55309
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:24:42', '2013-03-07 15:24:42', 349534908)
55310
+  (26.0ms) commit transaction
55311
+  (0.2ms) begin transaction
55312
+ Authentication Load (0.5ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
55313
+  (0.4ms) rollback transaction
55314
+ --------------------------------------------------------------------------------
55315
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
55316
+ --------------------------------------------------------------------------------
55317
+  (0.1ms) begin transaction
55318
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55319
+  (0.2ms) rollback transaction
55320
+ -------------------------------------------------------------------------
55321
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
55322
+ -------------------------------------------------------------------------
55323
+  (0.2ms) begin transaction
55324
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55325
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55326
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
55327
+ Processing by Contour::AuthenticationsController#create as HTML
55328
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:24:42 UTC", "updated_at"=>"2013-03-07 15:24:42 UTC"}}
55329
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
55330
+ User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
55331
+ Logged in user found, creating associated authentication.
55332
+  (0.1ms) SAVEPOINT active_record_1
55333
+ SQL (5.2ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:24:43 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:24:43 UTC +00:00], ["user_id", 201799169]]
55334
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55335
+ Redirected to http://test.host/authentications
55336
+ Completed 302 Found in 65ms (ActiveRecord: 6.4ms)
55337
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
55338
+  (0.8ms) rollback transaction
55339
+ --------------------------------------------------------------------------
55340
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
55341
+ --------------------------------------------------------------------------
55342
+  (0.1ms) begin transaction
55343
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55344
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55345
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
55346
+ Processing by Contour::AuthenticationsController#destroy as HTML
55347
+ Parameters: {"id"=>"949717663"}
55348
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
55349
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
55350
+  (0.1ms) SAVEPOINT active_record_1
55351
+ SQL (0.5ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
55352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55353
+ Redirected to http://test.host/authentications
55354
+ Completed 302 Found in 9ms (ActiveRecord: 1.2ms)
55355
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
55356
+  (0.8ms) rollback transaction
55357
+ -------------------------------------------------------------
55358
+ Contour::AuthenticationsControllerTest: test_should_get_index
55359
+ -------------------------------------------------------------
55360
+  (0.1ms) begin transaction
55361
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55362
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55363
+ Processing by Contour::AuthenticationsController#index as HTML
55364
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
55365
+ Authentication Exists (0.4ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
55366
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
55367
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (39.0ms)
55368
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.9ms)
55369
+ Completed 200 OK in 294ms (Views: 288.7ms | ActiveRecord: 0.8ms)
55370
+  (0.1ms) rollback transaction
55371
+ -----------------------------------------------------------------------------
55372
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
55373
+ -----------------------------------------------------------------------------
55374
+  (0.1ms) begin transaction
55375
+ Processing by Contour::PasswordsController#create as HTML
55376
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
55377
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55378
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'Hw4Nb7oXowtWapWHkHma' LIMIT 1
55379
+  (0.1ms) SAVEPOINT active_record_1
55380
+ SQL (0.7ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "Hw4Nb7oXowtWapWHkHma"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:24:43 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:24:43 UTC +00:00]]
55381
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55382
+
55383
+ Sent mail to valid@example.com (97.1ms)
55384
+ Date: Thu, 07 Mar 2013 10:24:43 -0500
55385
+ From: please-change-me-at-config-initializers-devise@example.com
55386
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
55387
+ To: valid@example.com
55388
+ Message-ID: <5138b13bd0d4a_12a403fe716035ad8502a9@edge2.partners.org.mail>
55389
+ Subject: Reset password instructions
55390
+ Mime-Version: 1.0
55391
+ Content-Type: text/html;
55392
+ charset=UTF-8
55393
+ Content-Transfer-Encoding: 7bit
55394
+
55395
+ <p>Hello valid@example.com!</p>
55396
+
55397
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
55398
+
55399
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=Hw4Nb7oXowtWapWHkHma">Change my password</a></p>
55400
+
55401
+ <p>If you didn't request this, please ignore this email.</p>
55402
+ <p>Your password won't change until you access the link above and create a new one.</p>
55403
+
55404
+ Redirected to http://test.host/users/login
55405
+ Completed 302 Found in 234ms (ActiveRecord: 0.0ms)
55406
+  (0.8ms) rollback transaction
55407
+ -----------------------------------------------------------------------------
55408
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
55409
+ -----------------------------------------------------------------------------
55410
+  (0.1ms) begin transaction
55411
+ Processing by Contour::PasswordsController#new as HTML
55412
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (4.5ms)
55413
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (22.6ms)
55414
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (29.3ms)
55415
+ Completed 200 OK in 78ms (Views: 76.5ms | ActiveRecord: 0.0ms)
55416
+  (0.2ms) rollback transaction
55417
+ ----------------------------------------------------------------------
55418
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
55419
+ ----------------------------------------------------------------------
55420
+  (0.1ms) begin transaction
55421
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55422
+ Processing by Contour::SessionsController#create as JSON
55423
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
55424
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55425
+  (0.1ms) SAVEPOINT active_record_1
55426
+ SQL (0.9ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:24:44 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:24:44 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:24:44 UTC +00:00]]
55427
+  (0.2ms) RELEASE SAVEPOINT active_record_1
55428
+ Completed 200 OK in 324ms (Views: 0.8ms | ActiveRecord: 1.4ms)
55429
+  (0.8ms) rollback transaction
55430
+ -----------------------------------------------------
55431
+ ContourHelperTest: test_should_show_sort_field_helper
55432
+ -----------------------------------------------------
55433
+  (0.5ms) begin transaction
55434
+  (0.1ms) rollback transaction
55435
+ ---------------------------------------------------------------------
55436
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
55437
+ ---------------------------------------------------------------------
55438
+  (0.1ms) begin transaction
55439
+  (0.1ms) rollback transaction
55440
+ -----------------------
55441
+ ContourTest: test_truth
55442
+ -----------------------
55443
+  (0.2ms) begin transaction
55444
+  (0.1ms) rollback transaction
55445
+ --------------------------------------------------------------------
55446
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
55447
+ --------------------------------------------------------------------
55448
+  (0.2ms) begin transaction
55449
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55450
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55451
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55452
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:24:44 -0500
55453
+ Processing by WelcomeController#logged_in_page as HTML
55454
+ Completed 401 Unauthorized in 40ms
55455
+  (0.2ms) SAVEPOINT active_record_1
55456
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
55457
+ Binary data inserted for `string` type on column `encrypted_password`
55458
+ SQL (1.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:24:44 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$DRsIdOnHBVBiDbIrqF2IoOtrKOf/icZ2uwU.A/HQiueT6.7vMlE.u"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:24:44 UTC +00:00]]
55459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55460
+  (0.1ms) SAVEPOINT active_record_1
55461
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55462
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55463
+  (0.2ms) RELEASE SAVEPOINT active_record_1
55464
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
55465
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
55466
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:24:44 -0500
55467
+ Processing by Contour::SessionsController#create as HTML
55468
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
55469
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
55470
+  (0.2ms) SAVEPOINT active_record_1
55471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55472
+ Completed 401 Unauthorized in 21ms
55473
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:24:44 -0500
55474
+ Processing by Contour::SessionsController#new as HTML
55475
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.8ms)
55476
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.5ms)
55477
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.3ms)
55478
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.8ms)
55479
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (10.3ms)
55480
+ Completed 200 OK in 126ms (Views: 123.4ms | ActiveRecord: 0.0ms)
55481
+  (29.4ms) rollback transaction
55482
+ --------------------------------------------------------
55483
+ NavigationTest: test_friendly_url_forwarding_after_login
55484
+ --------------------------------------------------------
55485
+  (0.1ms) begin transaction
55486
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55487
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55488
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55489
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
55490
+ Processing by WelcomeController#logged_in_page as HTML
55491
+ Completed 401 Unauthorized in 2ms
55492
+  (0.2ms) SAVEPOINT active_record_1
55493
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
55494
+ Binary data inserted for `string` type on column `encrypted_password`
55495
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$iB8HXtORdn/OapKdQkHjGOt9.ZYclXdQTnfcaXzPzbQVuYqwVV9/O"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00]]
55496
+  (0.2ms) RELEASE SAVEPOINT active_record_1
55497
+  (0.1ms) SAVEPOINT active_record_1
55498
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55499
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55500
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55501
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
55502
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
55503
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
55504
+ Processing by Contour::SessionsController#create as HTML
55505
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
55506
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
55507
+  (0.1ms) SAVEPOINT active_record_1
55508
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00]]
55509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55510
+ Redirected to http://www.example.com/logged_in_page
55511
+ Completed 302 Found in 24ms (ActiveRecord: 0.0ms)
55512
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
55513
+ Processing by WelcomeController#logged_in_page as HTML
55514
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
55515
+ Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 0.2ms)
55516
+  (0.7ms) rollback transaction
55517
+ --------------------------------------------------------------------
55518
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
55519
+ --------------------------------------------------------------------
55520
+  (0.1ms) begin transaction
55521
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55522
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55523
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55524
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
55525
+ Processing by WelcomeController#logged_in_page as HTML
55526
+ Completed 401 Unauthorized in 2ms
55527
+  (0.1ms) SAVEPOINT active_record_1
55528
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
55529
+ Binary data inserted for `string` type on column `encrypted_password`
55530
+ SQL (16.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$e0r87irUALmT5eD2ji.Tl.CEb9HD1YfKnk.4Wf9lwLn0lod8swYn6"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00]]
55531
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55532
+  (0.1ms) SAVEPOINT active_record_1
55533
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55534
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55536
+ SQL (0.4ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
55537
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
55538
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
55539
+ Processing by Contour::SessionsController#create as HTML
55540
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
55541
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
55542
+  (0.1ms) SAVEPOINT active_record_1
55543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55544
+ Completed 401 Unauthorized in 15ms
55545
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
55546
+ Processing by Contour::SessionsController#new as HTML
55547
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.1ms)
55548
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.2ms)
55549
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
55550
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.4ms)
55551
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.8ms)
55552
+ Completed 200 OK in 42ms (Views: 38.9ms | ActiveRecord: 0.0ms)
55553
+  (0.9ms) rollback transaction
55554
+ -------------------------------------------------------------
55555
+ NavigationTest: test_root_navigation_redirected_to_login_page
55556
+ -------------------------------------------------------------
55557
+  (0.2ms) begin transaction
55558
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55559
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55560
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55561
+ Started GET "/" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
55562
+ Processing by WelcomeController#index as HTML
55563
+ Completed 401 Unauthorized in 4ms
55564
+  (0.2ms) rollback transaction
55565
+ -------------------------------------------------------------------------
55566
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
55567
+ -------------------------------------------------------------------------
55568
+  (0.1ms) begin transaction
55569
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55570
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55571
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55572
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
55573
+ Processing by WelcomeController#logged_in_page as JSON
55574
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55575
+  (0.1ms) SAVEPOINT active_record_1
55576
+ SQL (0.7ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:24:45 UTC +00:00]]
55577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55578
+ Completed 200 OK in 324ms (Views: 0.7ms | ActiveRecord: 1.3ms)
55579
+  (0.7ms) rollback transaction
55580
+ ------------------------------------------------------------------------------------------------
55581
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
55582
+ ------------------------------------------------------------------------------------------------
55583
+  (0.1ms) begin transaction
55584
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55585
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55586
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55587
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:24:45 -0500
55588
+ Processing by WelcomeController#logged_in_page as JSON
55589
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55590
+ Completed 401 Unauthorized in 314ms
55591
+  (0.1ms) rollback transaction
55592
+ ------------------------------------
55593
+ UserTest: test_should_apply_omniauth
55594
+ ------------------------------------
55595
+  (0.1ms) begin transaction
55596
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55597
+  (0.1ms) rollback transaction
55598
+ --------------------------------------
55599
+ UserTest: test_should_get_reverse_name
55600
+ --------------------------------------
55601
+  (0.2ms) begin transaction
55602
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55603
+  (0.1ms) rollback transaction
55604
+ -------------------------------------------------
55605
+ AuthenticationTest: test_should_get_provider_name
55606
+ -------------------------------------------------
55607
+  (19.6ms) begin transaction
55608
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
55609
+ Fixture Insert (0.3ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:25:25', '2013-03-07 15:25:25', 949717663, 201799169)
55610
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:25:25', '2013-03-07 15:25:25', 876923740, 201799169)
55611
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-07 15:25:25', '2013-03-07 15:25:25', 864673665, 201799169)
55612
+ Fixture Delete (0.3ms) DELETE FROM "users"
55613
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:25:25', '2013-03-07 15:25:25', 201799169)
55614
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:25:25', '2013-03-07 15:25:25', 999914115)
55615
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:25:25', '2013-03-07 15:25:25', 725306934)
55616
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:25:25', '2013-03-07 15:25:25', 349534908)
55617
+  (1.7ms) commit transaction
55618
+  (0.1ms) begin transaction
55619
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
55620
+  (0.2ms) rollback transaction
55621
+ --------------------------------------------------------------------------------
55622
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
55623
+ --------------------------------------------------------------------------------
55624
+  (0.1ms) begin transaction
55625
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55626
+  (0.1ms) rollback transaction
55627
+ -------------------------------------------------------------------------
55628
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
55629
+ -------------------------------------------------------------------------
55630
+  (0.1ms) begin transaction
55631
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55632
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55633
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
55634
+ Processing by Contour::AuthenticationsController#create as HTML
55635
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:25:25 UTC", "updated_at"=>"2013-03-07 15:25:25 UTC"}}
55636
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
55637
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
55638
+ Logged in user found, creating associated authentication.
55639
+  (0.2ms) SAVEPOINT active_record_1
55640
+ SQL (3.3ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:25:25 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:25:25 UTC +00:00], ["user_id", 201799169]]
55641
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55642
+ Redirected to http://test.host/authentications
55643
+ Completed 302 Found in 56ms (ActiveRecord: 4.0ms)
55644
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
55645
+  (0.8ms) rollback transaction
55646
+ --------------------------------------------------------------------------
55647
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
55648
+ --------------------------------------------------------------------------
55649
+  (0.1ms) begin transaction
55650
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55651
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55652
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
55653
+ Processing by Contour::AuthenticationsController#destroy as HTML
55654
+ Parameters: {"id"=>"949717663"}
55655
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
55656
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
55657
+  (0.1ms) SAVEPOINT active_record_1
55658
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
55659
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55660
+ Redirected to http://test.host/authentications
55661
+ Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
55662
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
55663
+  (0.7ms) rollback transaction
55664
+ -------------------------------------------------------------
55665
+ Contour::AuthenticationsControllerTest: test_should_get_index
55666
+ -------------------------------------------------------------
55667
+  (0.1ms) begin transaction
55668
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55669
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55670
+ Processing by Contour::AuthenticationsController#index as HTML
55671
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
55672
+ Authentication Exists (0.3ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
55673
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
55674
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (31.2ms)
55675
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.2ms)
55676
+ Completed 200 OK in 279ms (Views: 273.3ms | ActiveRecord: 0.8ms)
55677
+  (0.1ms) rollback transaction
55678
+ -----------------------------------------------------------------------------
55679
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
55680
+ -----------------------------------------------------------------------------
55681
+  (0.1ms) begin transaction
55682
+ Processing by Contour::PasswordsController#create as HTML
55683
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
55684
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55685
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'k7GxYqyiLHycfQEoqBEA' LIMIT 1
55686
+  (0.2ms) SAVEPOINT active_record_1
55687
+ SQL (0.7ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "k7GxYqyiLHycfQEoqBEA"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:25:25 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:25:25 UTC +00:00]]
55688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55689
+
55690
+ Sent mail to valid@example.com (100.0ms)
55691
+ Date: Thu, 07 Mar 2013 10:25:25 -0500
55692
+ From: please-change-me-at-config-initializers-devise@example.com
55693
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
55694
+ To: valid@example.com
55695
+ Message-ID: <5138b165e5a12_12a613fef80c35adc988cc@edge2.partners.org.mail>
55696
+ Subject: Reset password instructions
55697
+ Mime-Version: 1.0
55698
+ Content-Type: text/html;
55699
+ charset=UTF-8
55700
+ Content-Transfer-Encoding: 7bit
55701
+
55702
+ <p>Hello valid@example.com!</p>
55703
+
55704
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
55705
+
55706
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=k7GxYqyiLHycfQEoqBEA">Change my password</a></p>
55707
+
55708
+ <p>If you didn't request this, please ignore this email.</p>
55709
+ <p>Your password won't change until you access the link above and create a new one.</p>
55710
+
55711
+ Redirected to http://test.host/users/login
55712
+ Completed 302 Found in 237ms (ActiveRecord: 0.0ms)
55713
+  (0.7ms) rollback transaction
55714
+ -----------------------------------------------------------------------------
55715
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
55716
+ -----------------------------------------------------------------------------
55717
+  (0.1ms) begin transaction
55718
+ Processing by Contour::PasswordsController#new as HTML
55719
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.3ms)
55720
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (23.1ms)
55721
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (28.8ms)
55722
+ Completed 200 OK in 78ms (Views: 76.9ms | ActiveRecord: 0.0ms)
55723
+  (0.2ms) rollback transaction
55724
+ ----------------------------------------------------------------------
55725
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
55726
+ ----------------------------------------------------------------------
55727
+  (0.2ms) begin transaction
55728
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55729
+ Processing by Contour::SessionsController#create as JSON
55730
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
55731
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55732
+  (0.1ms) SAVEPOINT active_record_1
55733
+ SQL (1.1ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00]]
55734
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55735
+ Completed 200 OK in 320ms (Views: 1.0ms | ActiveRecord: 1.6ms)
55736
+  (0.7ms) rollback transaction
55737
+ -----------------------------------------------------
55738
+ ContourHelperTest: test_should_show_sort_field_helper
55739
+ -----------------------------------------------------
55740
+  (0.1ms) begin transaction
55741
+  (0.2ms) rollback transaction
55742
+ ---------------------------------------------------------------------
55743
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
55744
+ ---------------------------------------------------------------------
55745
+  (0.1ms) begin transaction
55746
+  (0.1ms) rollback transaction
55747
+ -----------------------
55748
+ ContourTest: test_truth
55749
+ -----------------------
55750
+  (0.1ms) begin transaction
55751
+  (0.1ms) rollback transaction
55752
+ --------------------------------------------------------------------
55753
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
55754
+ --------------------------------------------------------------------
55755
+  (0.1ms) begin transaction
55756
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55757
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55758
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55759
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:25:26 -0500
55760
+ Processing by WelcomeController#logged_in_page as HTML
55761
+ Completed 401 Unauthorized in 34ms
55762
+  (0.2ms) SAVEPOINT active_record_1
55763
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
55764
+ Binary data inserted for `string` type on column `encrypted_password`
55765
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$CJJFkSx002EXRrbIPhuT0u6/Bp7iiCL/j0mZxJN7OoRyi1xfvMyxq"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00]]
55766
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55767
+  (0.1ms) SAVEPOINT active_record_1
55768
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55769
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55771
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
55772
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
55773
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:25:26 -0500
55774
+ Processing by Contour::SessionsController#create as HTML
55775
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
55776
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
55777
+  (0.1ms) SAVEPOINT active_record_1
55778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55779
+ Completed 401 Unauthorized in 18ms
55780
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:25:26 -0500
55781
+ Processing by Contour::SessionsController#new as HTML
55782
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
55783
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (7.1ms)
55784
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.3ms)
55785
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.7ms)
55786
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.7ms)
55787
+ Completed 200 OK in 112ms (Views: 108.5ms | ActiveRecord: 0.0ms)
55788
+  (36.2ms) rollback transaction
55789
+ --------------------------------------------------------
55790
+ NavigationTest: test_friendly_url_forwarding_after_login
55791
+ --------------------------------------------------------
55792
+  (0.2ms) begin transaction
55793
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55794
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55795
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55796
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:25:26 -0500
55797
+ Processing by WelcomeController#logged_in_page as HTML
55798
+ Completed 401 Unauthorized in 3ms
55799
+  (0.3ms) SAVEPOINT active_record_1
55800
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
55801
+ Binary data inserted for `string` type on column `encrypted_password`
55802
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$m74iW96gKS28oxGVb3Y7lONMySpTk0Qy28DufrOKioKi.ArJbtZNm"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:25:26 UTC +00:00]]
55803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55804
+  (0.1ms) SAVEPOINT active_record_1
55805
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55806
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55808
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
55809
+ SQL (0.3ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
55810
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
55811
+ Processing by Contour::SessionsController#create as HTML
55812
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
55813
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
55814
+  (0.1ms) SAVEPOINT active_record_1
55815
+ SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00]]
55816
+  (0.2ms) RELEASE SAVEPOINT active_record_1
55817
+ Redirected to http://www.example.com/logged_in_page
55818
+ Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
55819
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
55820
+ Processing by WelcomeController#logged_in_page as HTML
55821
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
55822
+ Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 0.2ms)
55823
+  (0.8ms) rollback transaction
55824
+ --------------------------------------------------------------------
55825
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
55826
+ --------------------------------------------------------------------
55827
+  (0.1ms) begin transaction
55828
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55829
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55830
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55831
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
55832
+ Processing by WelcomeController#logged_in_page as HTML
55833
+ Completed 401 Unauthorized in 2ms
55834
+  (0.2ms) SAVEPOINT active_record_1
55835
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
55836
+ Binary data inserted for `string` type on column `encrypted_password`
55837
+ SQL (1.1ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$SuoKejjUzCoSzaQRcOiuNOFphHsMRVO66eZQaD0RzxCBm.7ks.8La"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00]]
55838
+  (0.2ms) RELEASE SAVEPOINT active_record_1
55839
+  (0.2ms) SAVEPOINT active_record_1
55840
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55841
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
55842
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55843
+ SQL (0.7ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
55844
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
55845
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
55846
+ Processing by Contour::SessionsController#create as HTML
55847
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
55848
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
55849
+  (0.2ms) SAVEPOINT active_record_1
55850
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55851
+ Completed 401 Unauthorized in 15ms
55852
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
55853
+ Processing by Contour::SessionsController#new as HTML
55854
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.2ms)
55855
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.6ms)
55856
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
55857
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.1ms)
55858
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.1ms)
55859
+ Completed 200 OK in 42ms (Views: 39.5ms | ActiveRecord: 0.0ms)
55860
+  (0.7ms) rollback transaction
55861
+ -------------------------------------------------------------
55862
+ NavigationTest: test_root_navigation_redirected_to_login_page
55863
+ -------------------------------------------------------------
55864
+  (0.2ms) begin transaction
55865
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55866
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55867
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55868
+ Started GET "/" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
55869
+ Processing by WelcomeController#index as HTML
55870
+ Completed 401 Unauthorized in 2ms
55871
+  (0.1ms) rollback transaction
55872
+ -------------------------------------------------------------------------
55873
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
55874
+ -------------------------------------------------------------------------
55875
+  (0.1ms) begin transaction
55876
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55877
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55878
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55879
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
55880
+ Processing by WelcomeController#logged_in_page as JSON
55881
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55882
+  (0.2ms) SAVEPOINT active_record_1
55883
+ SQL (0.9ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:25:27 UTC +00:00]]
55884
+  (0.2ms) RELEASE SAVEPOINT active_record_1
55885
+ Completed 200 OK in 327ms (Views: 0.4ms | ActiveRecord: 1.5ms)
55886
+  (1.0ms) rollback transaction
55887
+ ------------------------------------------------------------------------------------------------
55888
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
55889
+ ------------------------------------------------------------------------------------------------
55890
+  (0.1ms) begin transaction
55891
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55892
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
55893
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
55894
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:25:27 -0500
55895
+ Processing by WelcomeController#logged_in_page as JSON
55896
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55897
+ Completed 401 Unauthorized in 319ms
55898
+  (0.1ms) rollback transaction
55899
+ ------------------------------------
55900
+ UserTest: test_should_apply_omniauth
55901
+ ------------------------------------
55902
+  (0.1ms) begin transaction
55903
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55904
+  (0.2ms) rollback transaction
55905
+ --------------------------------------
55906
+ UserTest: test_should_get_reverse_name
55907
+ --------------------------------------
55908
+  (0.1ms) begin transaction
55909
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55910
+  (0.1ms) rollback transaction
55911
+ -------------------------------------------------
55912
+ AuthenticationTest: test_should_get_provider_name
55913
+ -------------------------------------------------
55914
+  (0.5ms) begin transaction
55915
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
55916
+ Fixture Insert (0.3ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:26:10', '2013-03-07 15:26:10', 949717663, 201799169)
55917
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:26:10', '2013-03-07 15:26:10', 876923740, 201799169)
55918
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-07 15:26:10', '2013-03-07 15:26:10', 864673665, 201799169)
55919
+ Fixture Delete (0.2ms) DELETE FROM "users"
55920
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:26:10', '2013-03-07 15:26:10', 201799169)
55921
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:26:10', '2013-03-07 15:26:10', 999914115)
55922
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:26:10', '2013-03-07 15:26:10', 725306934)
55923
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:26:10', '2013-03-07 15:26:10', 349534908)
55924
+  (1.8ms) commit transaction
55925
+  (0.1ms) begin transaction
55926
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
55927
+  (0.1ms) rollback transaction
55928
+ --------------------------------------------------------------------------------
55929
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
55930
+ --------------------------------------------------------------------------------
55931
+  (0.1ms) begin transaction
55932
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55933
+  (0.1ms) rollback transaction
55934
+ -------------------------------------------------------------------------
55935
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
55936
+ -------------------------------------------------------------------------
55937
+  (0.2ms) begin transaction
55938
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55939
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55940
+  (0.4ms) SELECT COUNT(*) FROM "authentications"
55941
+ Processing by Contour::AuthenticationsController#create as HTML
55942
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:26:10 UTC", "updated_at"=>"2013-03-07 15:26:10 UTC"}}
55943
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
55944
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
55945
+ Logged in user found, creating associated authentication.
55946
+  (0.1ms) SAVEPOINT active_record_1
55947
+ SQL (3.8ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:26:10 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:26:10 UTC +00:00], ["user_id", 201799169]]
55948
+  (0.2ms) RELEASE SAVEPOINT active_record_1
55949
+ Redirected to http://test.host/authentications
55950
+ Completed 302 Found in 55ms (ActiveRecord: 4.5ms)
55951
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
55952
+  (0.8ms) rollback transaction
55953
+ --------------------------------------------------------------------------
55954
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
55955
+ --------------------------------------------------------------------------
55956
+  (0.1ms) begin transaction
55957
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55958
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55959
+  (0.3ms) SELECT COUNT(*) FROM "authentications"
55960
+ Processing by Contour::AuthenticationsController#destroy as HTML
55961
+ Parameters: {"id"=>"949717663"}
55962
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
55963
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
55964
+  (0.2ms) SAVEPOINT active_record_1
55965
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
55966
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55967
+ Redirected to http://test.host/authentications
55968
+ Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
55969
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
55970
+  (0.5ms) rollback transaction
55971
+ -------------------------------------------------------------
55972
+ Contour::AuthenticationsControllerTest: test_should_get_index
55973
+ -------------------------------------------------------------
55974
+  (0.1ms) begin transaction
55975
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
55976
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
55977
+ Processing by Contour::AuthenticationsController#index as HTML
55978
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
55979
+ Authentication Exists (0.3ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
55980
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
55981
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (34.7ms)
55982
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.4ms)
55983
+ Completed 200 OK in 282ms (Views: 277.7ms | ActiveRecord: 0.7ms)
55984
+  (0.2ms) rollback transaction
55985
+ -----------------------------------------------------------------------------
55986
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
55987
+ -----------------------------------------------------------------------------
55988
+  (0.1ms) begin transaction
55989
+ Processing by Contour::PasswordsController#create as HTML
55990
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
55991
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
55992
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'CijUz3ZeSijkcryqoqmf' LIMIT 1
55993
+  (0.1ms) SAVEPOINT active_record_1
55994
+ SQL (0.7ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "CijUz3ZeSijkcryqoqmf"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:26:10 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:26:10 UTC +00:00]]
55995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
55996
+
55997
+ Sent mail to valid@example.com (96.8ms)
55998
+ Date: Thu, 07 Mar 2013 10:26:10 -0500
55999
+ From: please-change-me-at-config-initializers-devise@example.com
56000
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
56001
+ To: valid@example.com
56002
+ Message-ID: <5138b192cad1c_12a923fd330c35ad08748@edge2.partners.org.mail>
56003
+ Subject: Reset password instructions
56004
+ Mime-Version: 1.0
56005
+ Content-Type: text/html;
56006
+ charset=UTF-8
56007
+ Content-Transfer-Encoding: 7bit
56008
+
56009
+ <p>Hello valid@example.com!</p>
56010
+
56011
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
56012
+
56013
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=CijUz3ZeSijkcryqoqmf">Change my password</a></p>
56014
+
56015
+ <p>If you didn't request this, please ignore this email.</p>
56016
+ <p>Your password won't change until you access the link above and create a new one.</p>
56017
+
56018
+ Redirected to http://test.host/users/login
56019
+ Completed 302 Found in 235ms (ActiveRecord: 0.0ms)
56020
+  (0.7ms) rollback transaction
56021
+ -----------------------------------------------------------------------------
56022
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
56023
+ -----------------------------------------------------------------------------
56024
+  (0.2ms) begin transaction
56025
+ Processing by Contour::PasswordsController#new as HTML
56026
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.1ms)
56027
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (20.5ms)
56028
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (26.4ms)
56029
+ Completed 200 OK in 73ms (Views: 71.5ms | ActiveRecord: 0.0ms)
56030
+  (0.1ms) rollback transaction
56031
+ ----------------------------------------------------------------------
56032
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
56033
+ ----------------------------------------------------------------------
56034
+  (0.2ms) begin transaction
56035
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56036
+ Processing by Contour::SessionsController#create as JSON
56037
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
56038
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56039
+  (0.1ms) SAVEPOINT active_record_1
56040
+ SQL (14.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:26:11 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:26:11 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:26:11 UTC +00:00]]
56041
+  (0.3ms) RELEASE SAVEPOINT active_record_1
56042
+ Completed 200 OK in 346ms (Views: 1.1ms | ActiveRecord: 15.4ms)
56043
+  (145.8ms) rollback transaction
56044
+ -----------------------------------------------------
56045
+ ContourHelperTest: test_should_show_sort_field_helper
56046
+ -----------------------------------------------------
56047
+  (0.1ms) begin transaction
56048
+  (0.1ms) rollback transaction
56049
+ ---------------------------------------------------------------------
56050
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
56051
+ ---------------------------------------------------------------------
56052
+  (0.1ms) begin transaction
56053
+  (0.2ms) rollback transaction
56054
+ -----------------------
56055
+ ContourTest: test_truth
56056
+ -----------------------
56057
+  (0.2ms) begin transaction
56058
+  (0.1ms) rollback transaction
56059
+ --------------------------------------------------------------------
56060
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
56061
+ --------------------------------------------------------------------
56062
+  (0.1ms) begin transaction
56063
+ User Load (16.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56064
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56065
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56066
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:26:11 -0500
56067
+ Processing by WelcomeController#logged_in_page as HTML
56068
+ Completed 401 Unauthorized in 116ms
56069
+  (0.1ms) SAVEPOINT active_record_1
56070
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
56071
+ Binary data inserted for `string` type on column `encrypted_password`
56072
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:26:11 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$HoOE2b7WgtgMe3gZBuaoIejHglQHWnCqAyDu9It.tJ2akxPxm.INu"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:26:11 UTC +00:00]]
56073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56074
+  (0.1ms) SAVEPOINT active_record_1
56075
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56076
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56078
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
56079
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
56080
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:26:11 -0500
56081
+ Processing by Contour::SessionsController#create as HTML
56082
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
56083
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
56084
+  (0.2ms) SAVEPOINT active_record_1
56085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56086
+ Completed 401 Unauthorized in 18ms
56087
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
56088
+ Processing by Contour::SessionsController#new as HTML
56089
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
56090
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (7.1ms)
56091
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.4ms)
56092
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.1ms)
56093
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.9ms)
56094
+ Completed 200 OK in 113ms (Views: 110.9ms | ActiveRecord: 0.0ms)
56095
+  (377.1ms) rollback transaction
56096
+ --------------------------------------------------------
56097
+ NavigationTest: test_friendly_url_forwarding_after_login
56098
+ --------------------------------------------------------
56099
+  (0.1ms) begin transaction
56100
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56101
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56102
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56103
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
56104
+ Processing by WelcomeController#logged_in_page as HTML
56105
+ Completed 401 Unauthorized in 2ms
56106
+  (0.1ms) SAVEPOINT active_record_1
56107
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
56108
+ Binary data inserted for `string` type on column `encrypted_password`
56109
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$23Sun5mlnlyG6tR6MGdfMOeqEohGCx1uv.1ZM.tutua4Mr86IOKQq"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00]]
56110
+  (0.2ms) RELEASE SAVEPOINT active_record_1
56111
+  (0.1ms) SAVEPOINT active_record_1
56112
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56113
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56114
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56115
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
56116
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
56117
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
56118
+ Processing by Contour::SessionsController#create as HTML
56119
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
56120
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
56121
+  (0.2ms) SAVEPOINT active_record_1
56122
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00]]
56123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56124
+ Redirected to http://www.example.com/logged_in_page
56125
+ Completed 302 Found in 25ms (ActiveRecord: 0.0ms)
56126
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
56127
+ Processing by WelcomeController#logged_in_page as HTML
56128
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
56129
+ Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.2ms)
56130
+  (1.2ms) rollback transaction
56131
+ --------------------------------------------------------------------
56132
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
56133
+ --------------------------------------------------------------------
56134
+  (0.1ms) begin transaction
56135
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56136
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56137
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56138
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
56139
+ Processing by WelcomeController#logged_in_page as HTML
56140
+ Completed 401 Unauthorized in 2ms
56141
+  (0.1ms) SAVEPOINT active_record_1
56142
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
56143
+ Binary data inserted for `string` type on column `encrypted_password`
56144
+ SQL (1.1ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$DD/woUWC6NruWeWPHs/U7.biQKZW31DzISlzYWdJ5yyxv7SFZvFxW"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:26:12 UTC +00:00]]
56145
+  (0.2ms) RELEASE SAVEPOINT active_record_1
56146
+  (0.2ms) SAVEPOINT active_record_1
56147
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56148
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56149
+  (0.2ms) RELEASE SAVEPOINT active_record_1
56150
+ SQL (0.6ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
56151
+ SQL (0.3ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
56152
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
56153
+ Processing by Contour::SessionsController#create as HTML
56154
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
56155
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
56156
+  (0.1ms) SAVEPOINT active_record_1
56157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56158
+ Completed 401 Unauthorized in 17ms
56159
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
56160
+ Processing by Contour::SessionsController#new as HTML
56161
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.8ms)
56162
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (6.1ms)
56163
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.2ms)
56164
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.0ms)
56165
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.9ms)
56166
+ Completed 200 OK in 53ms (Views: 50.0ms | ActiveRecord: 0.0ms)
56167
+  (0.9ms) rollback transaction
56168
+ -------------------------------------------------------------
56169
+ NavigationTest: test_root_navigation_redirected_to_login_page
56170
+ -------------------------------------------------------------
56171
+  (0.1ms) begin transaction
56172
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56173
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56174
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56175
+ Started GET "/" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
56176
+ Processing by WelcomeController#index as HTML
56177
+ Completed 401 Unauthorized in 2ms
56178
+  (0.2ms) rollback transaction
56179
+ -------------------------------------------------------------------------
56180
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
56181
+ -------------------------------------------------------------------------
56182
+  (0.2ms) begin transaction
56183
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56184
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56185
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56186
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:26:12 -0500
56187
+ Processing by WelcomeController#logged_in_page as JSON
56188
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56189
+  (0.2ms) SAVEPOINT active_record_1
56190
+ SQL (0.7ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:26:13 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:26:13 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:26:13 UTC +00:00]]
56191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56192
+ Completed 200 OK in 356ms (Views: 0.4ms | ActiveRecord: 1.3ms)
56193
+  (0.8ms) rollback transaction
56194
+ ------------------------------------------------------------------------------------------------
56195
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
56196
+ ------------------------------------------------------------------------------------------------
56197
+  (0.1ms) begin transaction
56198
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56199
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56200
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56201
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:26:13 -0500
56202
+ Processing by WelcomeController#logged_in_page as JSON
56203
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56204
+ Completed 401 Unauthorized in 320ms
56205
+  (0.1ms) rollback transaction
56206
+ ------------------------------------
56207
+ UserTest: test_should_apply_omniauth
56208
+ ------------------------------------
56209
+  (0.1ms) begin transaction
56210
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56211
+  (0.3ms) rollback transaction
56212
+ --------------------------------------
56213
+ UserTest: test_should_get_reverse_name
56214
+ --------------------------------------
56215
+  (0.1ms) begin transaction
56216
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56217
+  (0.1ms) rollback transaction
56218
+ -------------------------------------------------
56219
+ AuthenticationTest: test_should_get_provider_name
56220
+ -------------------------------------------------
56221
+  (0.6ms) begin transaction
56222
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
56223
+ Fixture Insert (0.3ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:28:09', '2013-03-07 15:28:09', 949717663, 201799169)
56224
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:28:09', '2013-03-07 15:28:09', 876923740, 201799169)
56225
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-07 15:28:09', '2013-03-07 15:28:09', 864673665, 201799169)
56226
+ Fixture Delete (0.2ms) DELETE FROM "users"
56227
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:28:09', '2013-03-07 15:28:09', 201799169)
56228
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:28:09', '2013-03-07 15:28:09', 999914115)
56229
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:28:09', '2013-03-07 15:28:09', 725306934)
56230
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:28:09', '2013-03-07 15:28:09', 349534908)
56231
+  (1.9ms) commit transaction
56232
+  (0.2ms) begin transaction
56233
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
56234
+  (0.2ms) rollback transaction
56235
+ --------------------------------------------------------------------------------
56236
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
56237
+ --------------------------------------------------------------------------------
56238
+  (0.1ms) begin transaction
56239
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
56240
+  (0.1ms) rollback transaction
56241
+ -------------------------------------------------------------------------
56242
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
56243
+ -------------------------------------------------------------------------
56244
+  (0.1ms) begin transaction
56245
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56246
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
56247
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
56248
+ Processing by Contour::AuthenticationsController#create as HTML
56249
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:28:09 UTC", "updated_at"=>"2013-03-07 15:28:09 UTC"}}
56250
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
56251
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
56252
+ Logged in user found, creating associated authentication.
56253
+  (0.1ms) SAVEPOINT active_record_1
56254
+ SQL (3.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:28:10 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:28:10 UTC +00:00], ["user_id", 201799169]]
56255
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56256
+ Redirected to http://test.host/authentications
56257
+ Completed 302 Found in 57ms (ActiveRecord: 4.2ms)
56258
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
56259
+  (0.8ms) rollback transaction
56260
+ --------------------------------------------------------------------------
56261
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
56262
+ --------------------------------------------------------------------------
56263
+  (0.1ms) begin transaction
56264
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56265
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
56266
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
56267
+ Processing by Contour::AuthenticationsController#destroy as HTML
56268
+ Parameters: {"id"=>"949717663"}
56269
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
56270
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
56271
+  (0.1ms) SAVEPOINT active_record_1
56272
+ SQL (0.5ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
56273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56274
+ Redirected to http://test.host/authentications
56275
+ Completed 302 Found in 9ms (ActiveRecord: 1.3ms)
56276
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
56277
+  (0.5ms) rollback transaction
56278
+ -------------------------------------------------------------
56279
+ Contour::AuthenticationsControllerTest: test_should_get_index
56280
+ -------------------------------------------------------------
56281
+  (0.1ms) begin transaction
56282
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56283
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
56284
+ Processing by Contour::AuthenticationsController#index as HTML
56285
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
56286
+ Authentication Exists (0.3ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
56287
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
56288
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (32.3ms)
56289
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (6.4ms)
56290
+ Completed 200 OK in 283ms (Views: 278.3ms | ActiveRecord: 0.8ms)
56291
+  (0.1ms) rollback transaction
56292
+ -----------------------------------------------------------------------------
56293
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
56294
+ -----------------------------------------------------------------------------
56295
+  (0.1ms) begin transaction
56296
+ Processing by Contour::PasswordsController#create as HTML
56297
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
56298
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56299
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'btdx5ugTfeNmdiyFxo3G' LIMIT 1
56300
+  (0.1ms) SAVEPOINT active_record_1
56301
+ SQL (0.8ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "btdx5ugTfeNmdiyFxo3G"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:28:10 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:28:10 UTC +00:00]]
56302
+  (0.2ms) RELEASE SAVEPOINT active_record_1
56303
+
56304
+ Sent mail to valid@example.com (100.0ms)
56305
+ Date: Thu, 07 Mar 2013 10:28:10 -0500
56306
+ From: please-change-me-at-config-initializers-devise@example.com
56307
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
56308
+ To: valid@example.com
56309
+ Message-ID: <5138b20a9e177_12b1c3ff8a9035ad4915ad@edge2.partners.org.mail>
56310
+ Subject: Reset password instructions
56311
+ Mime-Version: 1.0
56312
+ Content-Type: text/html;
56313
+ charset=UTF-8
56314
+ Content-Transfer-Encoding: 7bit
56315
+
56316
+ <p>Hello valid@example.com!</p>
56317
+
56318
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
56319
+
56320
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=btdx5ugTfeNmdiyFxo3G">Change my password</a></p>
56321
+
56322
+ <p>If you didn't request this, please ignore this email.</p>
56323
+ <p>Your password won't change until you access the link above and create a new one.</p>
56324
+
56325
+ Redirected to http://test.host/users/login
56326
+ Completed 302 Found in 238ms (ActiveRecord: 0.0ms)
56327
+  (0.7ms) rollback transaction
56328
+ -----------------------------------------------------------------------------
56329
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
56330
+ -----------------------------------------------------------------------------
56331
+  (0.2ms) begin transaction
56332
+ Processing by Contour::PasswordsController#new as HTML
56333
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.4ms)
56334
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (21.2ms)
56335
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (28.0ms)
56336
+ Completed 200 OK in 77ms (Views: 75.2ms | ActiveRecord: 0.0ms)
56337
+  (0.1ms) rollback transaction
56338
+ ----------------------------------------------------------------------
56339
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
56340
+ ----------------------------------------------------------------------
56341
+  (0.1ms) begin transaction
56342
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56343
+ Processing by Contour::SessionsController#create as JSON
56344
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
56345
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56346
+  (0.1ms) SAVEPOINT active_record_1
56347
+ SQL (0.9ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00]]
56348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56349
+ Completed 200 OK in 321ms (Views: 0.8ms | ActiveRecord: 1.5ms)
56350
+  (0.8ms) rollback transaction
56351
+ --------------------------------------------------------------------------
56352
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
56353
+ --------------------------------------------------------------------------
56354
+  (0.1ms) begin transaction
56355
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56356
+ Processing by Contour::SessionsController#create as HTML
56357
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
56358
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56359
+  (0.3ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
56360
+ Redirected to http://test.host/auth/ldap
56361
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
56362
+  (0.2ms) rollback transaction
56363
+ -----------------------------------------------------
56364
+ ContourHelperTest: test_should_show_sort_field_helper
56365
+ -----------------------------------------------------
56366
+  (0.2ms) begin transaction
56367
+  (0.2ms) rollback transaction
56368
+ ---------------------------------------------------------------------
56369
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
56370
+ ---------------------------------------------------------------------
56371
+  (0.1ms) begin transaction
56372
+  (0.1ms) rollback transaction
56373
+ -----------------------
56374
+ ContourTest: test_truth
56375
+ -----------------------
56376
+  (0.1ms) begin transaction
56377
+  (0.1ms) rollback transaction
56378
+ --------------------------------------------------------------------
56379
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
56380
+ --------------------------------------------------------------------
56381
+  (0.1ms) begin transaction
56382
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56383
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56384
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56385
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
56386
+ Processing by WelcomeController#logged_in_page as HTML
56387
+ Completed 401 Unauthorized in 33ms
56388
+  (0.1ms) SAVEPOINT active_record_1
56389
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
56390
+ Binary data inserted for `string` type on column `encrypted_password`
56391
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$h/ZKszmG04iZMEKo021qeubAE4/q3z5W4f4VmzFNHkWDV57p8FnKa"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00]]
56392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56393
+  (0.2ms) SAVEPOINT active_record_1
56394
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56395
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56397
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
56398
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
56399
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
56400
+ Processing by Contour::SessionsController#create as HTML
56401
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
56402
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
56403
+  (0.1ms) SAVEPOINT active_record_1
56404
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56405
+ Completed 401 Unauthorized in 18ms
56406
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
56407
+ Processing by Contour::SessionsController#new as HTML
56408
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
56409
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (6.3ms)
56410
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.6ms)
56411
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.6ms)
56412
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.2ms)
56413
+ Completed 200 OK in 114ms (Views: 111.6ms | ActiveRecord: 0.0ms)
56414
+  (0.8ms) rollback transaction
56415
+ --------------------------------------------------------
56416
+ NavigationTest: test_friendly_url_forwarding_after_login
56417
+ --------------------------------------------------------
56418
+  (0.1ms) begin transaction
56419
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56420
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56421
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56422
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
56423
+ Processing by WelcomeController#logged_in_page as HTML
56424
+ Completed 401 Unauthorized in 2ms
56425
+  (0.1ms) SAVEPOINT active_record_1
56426
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
56427
+ Binary data inserted for `string` type on column `encrypted_password`
56428
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$EGgi6Qo0M1ZOLGORoSOPPuxTplF2mTBLg/zfv93.py9OJPSHu8xNa"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00]]
56429
+  (0.2ms) RELEASE SAVEPOINT active_record_1
56430
+  (0.1ms) SAVEPOINT active_record_1
56431
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56432
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56434
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
56435
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
56436
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
56437
+ Processing by Contour::SessionsController#create as HTML
56438
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
56439
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
56440
+  (0.1ms) SAVEPOINT active_record_1
56441
+ SQL (0.7ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00]]
56442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56443
+ Redirected to http://www.example.com/logged_in_page
56444
+ Completed 302 Found in 24ms (ActiveRecord: 0.0ms)
56445
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
56446
+ Processing by WelcomeController#logged_in_page as HTML
56447
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
56448
+ Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 0.2ms)
56449
+  (0.7ms) rollback transaction
56450
+ --------------------------------------------------------------------
56451
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
56452
+ --------------------------------------------------------------------
56453
+  (0.1ms) begin transaction
56454
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56455
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56456
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56457
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
56458
+ Processing by WelcomeController#logged_in_page as HTML
56459
+ Completed 401 Unauthorized in 2ms
56460
+  (0.1ms) SAVEPOINT active_record_1
56461
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
56462
+ Binary data inserted for `string` type on column `encrypted_password`
56463
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$ngpRzphO9Dzidn5S1Smi.e2FuBVO24IMeZuO4zm3vCo3aFtqL86OO"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:28:11 UTC +00:00]]
56464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56465
+  (0.2ms) SAVEPOINT active_record_1
56466
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56467
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56469
+ SQL (0.4ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
56470
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
56471
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
56472
+ Processing by Contour::SessionsController#create as HTML
56473
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
56474
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
56475
+  (0.1ms) SAVEPOINT active_record_1
56476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56477
+ Completed 401 Unauthorized in 14ms
56478
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
56479
+ Processing by Contour::SessionsController#new as HTML
56480
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
56481
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.6ms)
56482
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
56483
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.1ms)
56484
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.0ms)
56485
+ Completed 200 OK in 38ms (Views: 36.0ms | ActiveRecord: 0.0ms)
56486
+  (0.7ms) rollback transaction
56487
+ -------------------------------------------------------------
56488
+ NavigationTest: test_root_navigation_redirected_to_login_page
56489
+ -------------------------------------------------------------
56490
+  (0.2ms) begin transaction
56491
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56492
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56493
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56494
+ Started GET "/" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
56495
+ Processing by WelcomeController#index as HTML
56496
+ Completed 401 Unauthorized in 3ms
56497
+  (0.1ms) rollback transaction
56498
+ -------------------------------------------------------------------------
56499
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
56500
+ -------------------------------------------------------------------------
56501
+  (0.1ms) begin transaction
56502
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56503
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56504
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56505
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:28:11 -0500
56506
+ Processing by WelcomeController#logged_in_page as JSON
56507
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56508
+  (0.1ms) SAVEPOINT active_record_1
56509
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:28:12 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:28:12 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:28:12 UTC +00:00]]
56510
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56511
+ Completed 200 OK in 330ms (Views: 0.3ms | ActiveRecord: 1.2ms)
56512
+  (0.9ms) rollback transaction
56513
+ ------------------------------------------------------------------------------------------------
56514
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
56515
+ ------------------------------------------------------------------------------------------------
56516
+  (0.2ms) begin transaction
56517
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56518
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56519
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56520
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:28:12 -0500
56521
+ Processing by WelcomeController#logged_in_page as JSON
56522
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56523
+ Completed 401 Unauthorized in 314ms
56524
+  (0.1ms) rollback transaction
56525
+ ------------------------------------
56526
+ UserTest: test_should_apply_omniauth
56527
+ ------------------------------------
56528
+  (0.1ms) begin transaction
56529
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56530
+  (0.1ms) rollback transaction
56531
+ --------------------------------------
56532
+ UserTest: test_should_get_reverse_name
56533
+ --------------------------------------
56534
+  (0.1ms) begin transaction
56535
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56536
+  (0.3ms) rollback transaction
56537
+ -------------------------------------------------
56538
+ AuthenticationTest: test_should_get_provider_name
56539
+ -------------------------------------------------
56540
+  (0.5ms) begin transaction
56541
+ Fixture Delete (0.5ms) DELETE FROM "authentications"
56542
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:29:59', '2013-03-07 15:29:59', 949717663, 201799169)
56543
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:29:59', '2013-03-07 15:29:59', 876923740, 201799169)
56544
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-07 15:29:59', '2013-03-07 15:29:59', 864673665, 201799169)
56545
+ Fixture Delete (0.2ms) DELETE FROM "users"
56546
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:29:59', '2013-03-07 15:29:59', 201799169)
56547
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:29:59', '2013-03-07 15:29:59', 999914115)
56548
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:29:59', '2013-03-07 15:29:59', 725306934)
56549
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:29:59', '2013-03-07 15:29:59', 349534908)
56550
+  (1.6ms) commit transaction
56551
+  (0.1ms) begin transaction
56552
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
56553
+  (0.2ms) rollback transaction
56554
+ --------------------------------------------------------------------------------
56555
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
56556
+ --------------------------------------------------------------------------------
56557
+  (0.1ms) begin transaction
56558
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
56559
+  (0.2ms) rollback transaction
56560
+ -------------------------------------------------------------------------
56561
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
56562
+ -------------------------------------------------------------------------
56563
+  (0.1ms) begin transaction
56564
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56565
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
56566
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
56567
+ Processing by Contour::AuthenticationsController#create as HTML
56568
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:29:59 UTC", "updated_at"=>"2013-03-07 15:29:59 UTC"}}
56569
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
56570
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
56571
+ Logged in user found, creating associated authentication.
56572
+  (0.2ms) SAVEPOINT active_record_1
56573
+ SQL (3.7ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:29:59 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:29:59 UTC +00:00], ["user_id", 201799169]]
56574
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56575
+ Redirected to http://test.host/authentications
56576
+ Completed 302 Found in 57ms (ActiveRecord: 4.5ms)
56577
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
56578
+  (0.7ms) rollback transaction
56579
+ --------------------------------------------------------------------------
56580
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
56581
+ --------------------------------------------------------------------------
56582
+  (0.1ms) begin transaction
56583
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56584
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
56585
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
56586
+ Processing by Contour::AuthenticationsController#destroy as HTML
56587
+ Parameters: {"id"=>"949717663"}
56588
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
56589
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
56590
+  (0.1ms) SAVEPOINT active_record_1
56591
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
56592
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56593
+ Redirected to http://test.host/authentications
56594
+ Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
56595
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
56596
+  (0.6ms) rollback transaction
56597
+ -------------------------------------------------------------
56598
+ Contour::AuthenticationsControllerTest: test_should_get_index
56599
+ -------------------------------------------------------------
56600
+  (0.2ms) begin transaction
56601
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56602
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
56603
+ Processing by Contour::AuthenticationsController#index as HTML
56604
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
56605
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
56606
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
56607
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (31.0ms)
56608
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.5ms)
56609
+ Completed 200 OK in 304ms (Views: 300.1ms | ActiveRecord: 0.7ms)
56610
+  (0.2ms) rollback transaction
56611
+ -----------------------------------------------------------------------------
56612
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
56613
+ -----------------------------------------------------------------------------
56614
+  (0.1ms) begin transaction
56615
+ Processing by Contour::PasswordsController#create as HTML
56616
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
56617
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56618
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'JJgw9stahxBxxg7jyGAd' LIMIT 1
56619
+  (0.1ms) SAVEPOINT active_record_1
56620
+ SQL (0.7ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "JJgw9stahxBxxg7jyGAd"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:30:00 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:30:00 UTC +00:00]]
56621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56622
+
56623
+ Sent mail to valid@example.com (99.8ms)
56624
+ Date: Thu, 07 Mar 2013 10:30:00 -0500
56625
+ From: please-change-me-at-config-initializers-devise@example.com
56626
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
56627
+ To: valid@example.com
56628
+ Message-ID: <5138b27864c43_12b603fdd58835ad4338a7@edge2.partners.org.mail>
56629
+ Subject: Reset password instructions
56630
+ Mime-Version: 1.0
56631
+ Content-Type: text/html;
56632
+ charset=UTF-8
56633
+ Content-Transfer-Encoding: 7bit
56634
+
56635
+ <p>Hello valid@example.com!</p>
56636
+
56637
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
56638
+
56639
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=JJgw9stahxBxxg7jyGAd">Change my password</a></p>
56640
+
56641
+ <p>If you didn't request this, please ignore this email.</p>
56642
+ <p>Your password won't change until you access the link above and create a new one.</p>
56643
+
56644
+ Redirected to http://test.host/users/login
56645
+ Completed 302 Found in 241ms (ActiveRecord: 0.0ms)
56646
+  (0.8ms) rollback transaction
56647
+ -----------------------------------------------------------------------------
56648
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
56649
+ -----------------------------------------------------------------------------
56650
+  (0.1ms) begin transaction
56651
+ Processing by Contour::PasswordsController#new as HTML
56652
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.4ms)
56653
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (22.4ms)
56654
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (33.7ms)
56655
+ Completed 200 OK in 80ms (Views: 79.1ms | ActiveRecord: 0.0ms)
56656
+  (0.1ms) rollback transaction
56657
+ ----------------------------------------------------------------------
56658
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
56659
+ ----------------------------------------------------------------------
56660
+  (0.1ms) begin transaction
56661
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56662
+ Processing by Contour::SessionsController#create as JSON
56663
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
56664
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56665
+  (0.1ms) SAVEPOINT active_record_1
56666
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00]]
56667
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56668
+ Completed 200 OK in 325ms (Views: 0.8ms | ActiveRecord: 1.4ms)
56669
+  (0.9ms) rollback transaction
56670
+ ----------------------------------------------------------------------------------------------------
56671
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_invalid_credentials
56672
+ ----------------------------------------------------------------------------------------------------
56673
+  (0.2ms) begin transaction
56674
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56675
+ Processing by Contour::SessionsController#create as HTML
56676
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
56677
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56678
+  (0.2ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
56679
+ Redirected to http://test.host/auth/ldap
56680
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
56681
+  (0.1ms) rollback transaction
56682
+ --------------------------------------------------------------------------
56683
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
56684
+ --------------------------------------------------------------------------
56685
+  (0.1ms) begin transaction
56686
+ Processing by Contour::SessionsController#create as HTML
56687
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
56688
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
56689
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
56690
+ Completed 401 Unauthorized in 7ms
56691
+ Processing by Contour::SessionsController#new as HTML
56692
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
56693
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.4ms)
56694
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.3ms)
56695
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.1ms)
56696
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.9ms)
56697
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.5ms)
56698
+ Completed 200 OK in 57ms (Views: 54.3ms | ActiveRecord: 0.0ms)
56699
+  (0.2ms) rollback transaction
56700
+ -----------------------------------------------------
56701
+ ContourHelperTest: test_should_show_sort_field_helper
56702
+ -----------------------------------------------------
56703
+  (0.1ms) begin transaction
56704
+  (0.1ms) rollback transaction
56705
+ ---------------------------------------------------------------------
56706
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
56707
+ ---------------------------------------------------------------------
56708
+  (0.1ms) begin transaction
56709
+  (0.1ms) rollback transaction
56710
+ -----------------------
56711
+ ContourTest: test_truth
56712
+ -----------------------
56713
+  (0.1ms) begin transaction
56714
+  (0.1ms) rollback transaction
56715
+ --------------------------------------------------------------------
56716
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
56717
+ --------------------------------------------------------------------
56718
+  (0.2ms) begin transaction
56719
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56720
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56721
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56722
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
56723
+ Processing by WelcomeController#logged_in_page as HTML
56724
+ Completed 401 Unauthorized in 33ms
56725
+  (0.1ms) SAVEPOINT active_record_1
56726
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
56727
+ Binary data inserted for `string` type on column `encrypted_password`
56728
+ SQL (47.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$ywKkX9fyD.97PaGvwSffWO1b3N9dOQUSDCzryCfb9GnwdHEPdwYoe"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00]]
56729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56730
+  (0.1ms) SAVEPOINT active_record_1
56731
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56732
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56734
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
56735
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
56736
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
56737
+ Processing by Contour::SessionsController#create as HTML
56738
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
56739
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
56740
+  (0.1ms) SAVEPOINT active_record_1
56741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56742
+ Completed 401 Unauthorized in 18ms
56743
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
56744
+ Processing by Contour::SessionsController#new as HTML
56745
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
56746
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.5ms)
56747
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
56748
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.6ms)
56749
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.4ms)
56750
+ Completed 200 OK in 39ms (Views: 36.5ms | ActiveRecord: 0.0ms)
56751
+  (1.1ms) rollback transaction
56752
+ --------------------------------------------------------
56753
+ NavigationTest: test_friendly_url_forwarding_after_login
56754
+ --------------------------------------------------------
56755
+  (0.1ms) begin transaction
56756
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56757
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56758
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56759
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
56760
+ Processing by WelcomeController#logged_in_page as HTML
56761
+ Completed 401 Unauthorized in 2ms
56762
+  (0.1ms) SAVEPOINT active_record_1
56763
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
56764
+ Binary data inserted for `string` type on column `encrypted_password`
56765
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$NmwgoVMVM4Y0NAkb3TuSNerc/T3VapYRm57C1OGrexm4.hYhGfrJ."], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00]]
56766
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56767
+  (0.1ms) SAVEPOINT active_record_1
56768
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56769
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56771
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
56772
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
56773
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
56774
+ Processing by Contour::SessionsController#create as HTML
56775
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
56776
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
56777
+  (0.1ms) SAVEPOINT active_record_1
56778
+ SQL (0.5ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00]]
56779
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56780
+ Redirected to http://www.example.com/logged_in_page
56781
+ Completed 302 Found in 23ms (ActiveRecord: 0.0ms)
56782
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
56783
+ Processing by WelcomeController#logged_in_page as HTML
56784
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
56785
+ Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 0.2ms)
56786
+  (0.9ms) rollback transaction
56787
+ --------------------------------------------------------------------
56788
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
56789
+ --------------------------------------------------------------------
56790
+  (0.1ms) begin transaction
56791
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56792
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56793
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56794
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
56795
+ Processing by WelcomeController#logged_in_page as HTML
56796
+ Completed 401 Unauthorized in 2ms
56797
+  (0.1ms) SAVEPOINT active_record_1
56798
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
56799
+ Binary data inserted for `string` type on column `encrypted_password`
56800
+ SQL (16.0ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$G9ovwC6Jw7xNcuTmyKSNLOUv/eCaDfshr90QrdMbyjZUp3kicl5B2"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:30:01 UTC +00:00]]
56801
+  (0.2ms) RELEASE SAVEPOINT active_record_1
56802
+  (0.1ms) SAVEPOINT active_record_1
56803
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56804
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
56805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56806
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
56807
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
56808
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
56809
+ Processing by Contour::SessionsController#create as HTML
56810
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
56811
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
56812
+  (0.1ms) SAVEPOINT active_record_1
56813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56814
+ Completed 401 Unauthorized in 14ms
56815
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
56816
+ Processing by Contour::SessionsController#new as HTML
56817
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
56818
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.1ms)
56819
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
56820
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.8ms)
56821
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.5ms)
56822
+ Completed 200 OK in 38ms (Views: 35.1ms | ActiveRecord: 0.0ms)
56823
+  (0.9ms) rollback transaction
56824
+ -------------------------------------------------------------
56825
+ NavigationTest: test_root_navigation_redirected_to_login_page
56826
+ -------------------------------------------------------------
56827
+  (0.1ms) begin transaction
56828
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56829
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56830
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56831
+ Started GET "/" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
56832
+ Processing by WelcomeController#index as HTML
56833
+ Completed 401 Unauthorized in 2ms
56834
+  (0.2ms) rollback transaction
56835
+ -------------------------------------------------------------------------
56836
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
56837
+ -------------------------------------------------------------------------
56838
+  (0.1ms) begin transaction
56839
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56840
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56841
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56842
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:30:01 -0500
56843
+ Processing by WelcomeController#logged_in_page as JSON
56844
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56845
+  (0.1ms) SAVEPOINT active_record_1
56846
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:30:02 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:30:02 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:30:02 UTC +00:00]]
56847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56848
+ Completed 200 OK in 366ms (Views: 0.3ms | ActiveRecord: 1.3ms)
56849
+  (0.6ms) rollback transaction
56850
+ ------------------------------------------------------------------------------------------------
56851
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
56852
+ ------------------------------------------------------------------------------------------------
56853
+  (0.1ms) begin transaction
56854
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56855
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
56856
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
56857
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:30:02 -0500
56858
+ Processing by WelcomeController#logged_in_page as JSON
56859
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56860
+ Completed 401 Unauthorized in 319ms
56861
+  (0.2ms) rollback transaction
56862
+ ------------------------------------
56863
+ UserTest: test_should_apply_omniauth
56864
+ ------------------------------------
56865
+  (0.1ms) begin transaction
56866
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56867
+  (0.1ms) rollback transaction
56868
+ --------------------------------------
56869
+ UserTest: test_should_get_reverse_name
56870
+ --------------------------------------
56871
+  (0.1ms) begin transaction
56872
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56873
+  (0.1ms) rollback transaction
56874
+ -------------------------------------------------
56875
+ AuthenticationTest: test_should_get_provider_name
56876
+ -------------------------------------------------
56877
+  (0.5ms) begin transaction
56878
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
56879
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:31:43', '2013-03-07 15:31:43', 949717663, 201799169)
56880
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:31:43', '2013-03-07 15:31:43', 876923740, 201799169)
56881
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-07 15:31:43', '2013-03-07 15:31:43', 864673665, 201799169)
56882
+ Fixture Delete (0.2ms) DELETE FROM "users"
56883
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:31:43', '2013-03-07 15:31:43', 201799169)
56884
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:31:43', '2013-03-07 15:31:43', 999914115)
56885
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:31:43', '2013-03-07 15:31:43', 725306934)
56886
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:31:43', '2013-03-07 15:31:43', 349534908)
56887
+  (2.0ms) commit transaction
56888
+  (0.1ms) begin transaction
56889
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
56890
+  (0.1ms) rollback transaction
56891
+ --------------------------------------------------------------------------------
56892
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
56893
+ --------------------------------------------------------------------------------
56894
+  (0.1ms) begin transaction
56895
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
56896
+  (0.1ms) rollback transaction
56897
+ -------------------------------------------------------------------------
56898
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
56899
+ -------------------------------------------------------------------------
56900
+  (0.1ms) begin transaction
56901
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56902
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
56903
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
56904
+ Processing by Contour::AuthenticationsController#create as HTML
56905
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:31:43 UTC", "updated_at"=>"2013-03-07 15:31:43 UTC"}}
56906
+ Authentication Load (0.5ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
56907
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
56908
+ Logged in user found, creating associated authentication.
56909
+  (0.2ms) SAVEPOINT active_record_1
56910
+ SQL (3.4ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:31:43 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:31:43 UTC +00:00], ["user_id", 201799169]]
56911
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56912
+ Redirected to http://test.host/authentications
56913
+ Completed 302 Found in 59ms (ActiveRecord: 4.3ms)
56914
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
56915
+  (0.7ms) rollback transaction
56916
+ --------------------------------------------------------------------------
56917
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
56918
+ --------------------------------------------------------------------------
56919
+  (0.1ms) begin transaction
56920
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56921
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
56922
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
56923
+ Processing by Contour::AuthenticationsController#destroy as HTML
56924
+ Parameters: {"id"=>"949717663"}
56925
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
56926
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
56927
+  (0.1ms) SAVEPOINT active_record_1
56928
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
56929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56930
+ Redirected to http://test.host/authentications
56931
+ Completed 302 Found in 8ms (ActiveRecord: 1.2ms)
56932
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
56933
+  (0.8ms) rollback transaction
56934
+ -------------------------------------------------------------
56935
+ Contour::AuthenticationsControllerTest: test_should_get_index
56936
+ -------------------------------------------------------------
56937
+  (0.1ms) begin transaction
56938
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56939
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
56940
+ Processing by Contour::AuthenticationsController#index as HTML
56941
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
56942
+ Authentication Exists (0.3ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
56943
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
56944
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (31.6ms)
56945
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.1ms)
56946
+ Completed 200 OK in 282ms (Views: 278.4ms | ActiveRecord: 0.7ms)
56947
+  (0.1ms) rollback transaction
56948
+ -----------------------------------------------------------------------------
56949
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
56950
+ -----------------------------------------------------------------------------
56951
+  (0.1ms) begin transaction
56952
+ Processing by Contour::PasswordsController#create as HTML
56953
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
56954
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
56955
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'ydgGS4yNq9VuErrpQHzH' LIMIT 1
56956
+  (0.1ms) SAVEPOINT active_record_1
56957
+ SQL (21.0ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "ydgGS4yNq9VuErrpQHzH"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:31:43 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:31:43 UTC +00:00]]
56958
+  (0.1ms) RELEASE SAVEPOINT active_record_1
56959
+
56960
+ Sent mail to valid@example.com (97.3ms)
56961
+ Date: Thu, 07 Mar 2013 10:31:44 -0500
56962
+ From: please-change-me-at-config-initializers-devise@example.com
56963
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
56964
+ To: valid@example.com
56965
+ Message-ID: <5138b2e0eaf_12ba23fdc1d435ad816699@edge2.partners.org.mail>
56966
+ Subject: Reset password instructions
56967
+ Mime-Version: 1.0
56968
+ Content-Type: text/html;
56969
+ charset=UTF-8
56970
+ Content-Transfer-Encoding: 7bit
56971
+
56972
+ <p>Hello valid@example.com!</p>
56973
+
56974
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
56975
+
56976
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=ydgGS4yNq9VuErrpQHzH">Change my password</a></p>
56977
+
56978
+ <p>If you didn't request this, please ignore this email.</p>
56979
+ <p>Your password won't change until you access the link above and create a new one.</p>
56980
+
56981
+ Redirected to http://test.host/users/login
56982
+ Completed 302 Found in 255ms (ActiveRecord: 0.0ms)
56983
+  (0.9ms) rollback transaction
56984
+ -----------------------------------------------------------------------------
56985
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
56986
+ -----------------------------------------------------------------------------
56987
+  (0.2ms) begin transaction
56988
+ Processing by Contour::PasswordsController#new as HTML
56989
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (4.8ms)
56990
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (24.7ms)
56991
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (30.4ms)
56992
+ Completed 200 OK in 77ms (Views: 75.5ms | ActiveRecord: 0.0ms)
56993
+  (0.1ms) rollback transaction
56994
+ ----------------------------------------------------------------------
56995
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
56996
+ ----------------------------------------------------------------------
56997
+  (0.2ms) begin transaction
56998
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
56999
+ Processing by Contour::SessionsController#create as JSON
57000
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
57001
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57002
+  (0.2ms) SAVEPOINT active_record_1
57003
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:31:44 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:31:44 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:31:44 UTC +00:00]]
57004
+  (0.2ms) RELEASE SAVEPOINT active_record_1
57005
+ Completed 200 OK in 323ms (Views: 0.7ms | ActiveRecord: 1.5ms)
57006
+  (0.6ms) rollback transaction
57007
+ ----------------------------------------------------------------------------------------------------
57008
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_invalid_credentials
57009
+ ----------------------------------------------------------------------------------------------------
57010
+  (0.1ms) begin transaction
57011
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57012
+ Processing by Contour::SessionsController#create as HTML
57013
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
57014
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57015
+  (0.3ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
57016
+ Redirected to http://test.host/auth/ldap
57017
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
57018
+  (0.1ms) rollback transaction
57019
+ --------------------------------------------------------------------------
57020
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
57021
+ --------------------------------------------------------------------------
57022
+  (0.1ms) begin transaction
57023
+ Processing by Contour::SessionsController#create as HTML
57024
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
57025
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
57026
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
57027
+ Completed 401 Unauthorized in 7ms
57028
+ Processing by Contour::SessionsController#new as HTML
57029
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
57030
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
57031
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (6.2ms)
57032
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.1ms)
57033
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.6ms)
57034
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.2ms)
57035
+ Completed 200 OK in 60ms (Views: 57.5ms | ActiveRecord: 0.0ms)
57036
+  (0.2ms) rollback transaction
57037
+ -----------------------------------------------------
57038
+ ContourHelperTest: test_should_show_sort_field_helper
57039
+ -----------------------------------------------------
57040
+  (0.1ms) begin transaction
57041
+  (0.1ms) rollback transaction
57042
+ ---------------------------------------------------------------------
57043
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
57044
+ ---------------------------------------------------------------------
57045
+  (0.1ms) begin transaction
57046
+  (0.1ms) rollback transaction
57047
+ -----------------------
57048
+ ContourTest: test_truth
57049
+ -----------------------
57050
+  (0.1ms) begin transaction
57051
+  (0.2ms) rollback transaction
57052
+ --------------------------------------------------------------------
57053
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
57054
+ --------------------------------------------------------------------
57055
+  (0.1ms) begin transaction
57056
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57057
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57058
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57059
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:31:44 -0500
57060
+ Processing by WelcomeController#logged_in_page as HTML
57061
+ Completed 401 Unauthorized in 34ms
57062
+  (0.1ms) SAVEPOINT active_record_1
57063
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
57064
+ Binary data inserted for `string` type on column `encrypted_password`
57065
+ SQL (1.1ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:31:44 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$zrOiU1PkQr0eE65601emke7U.bp3nSNXeDJk68zpuo5aREDGgrB4a"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:31:44 UTC +00:00]]
57066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57067
+  (0.1ms) SAVEPOINT active_record_1
57068
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57069
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57070
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57071
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
57072
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
57073
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:31:44 -0500
57074
+ Processing by Contour::SessionsController#create as HTML
57075
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
57076
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
57077
+  (0.1ms) SAVEPOINT active_record_1
57078
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57079
+ Completed 401 Unauthorized in 17ms
57080
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
57081
+ Processing by Contour::SessionsController#new as HTML
57082
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
57083
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.4ms)
57084
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
57085
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.9ms)
57086
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.7ms)
57087
+ Completed 200 OK in 38ms (Views: 35.7ms | ActiveRecord: 0.0ms)
57088
+  (0.9ms) rollback transaction
57089
+ --------------------------------------------------------
57090
+ NavigationTest: test_friendly_url_forwarding_after_login
57091
+ --------------------------------------------------------
57092
+  (0.1ms) begin transaction
57093
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57094
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57095
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57096
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
57097
+ Processing by WelcomeController#logged_in_page as HTML
57098
+ Completed 401 Unauthorized in 2ms
57099
+  (0.2ms) SAVEPOINT active_record_1
57100
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
57101
+ Binary data inserted for `string` type on column `encrypted_password`
57102
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$Vg9lZjNIXLFt0dOWzLtt5u9Jq1oDWoBjHXwluC/1wlvzJkiewJ1xm"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00]]
57103
+  (0.2ms) RELEASE SAVEPOINT active_record_1
57104
+  (0.1ms) SAVEPOINT active_record_1
57105
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57106
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57108
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
57109
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
57110
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
57111
+ Processing by Contour::SessionsController#create as HTML
57112
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
57113
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
57114
+  (0.2ms) SAVEPOINT active_record_1
57115
+ SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00]]
57116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57117
+ Redirected to http://www.example.com/logged_in_page
57118
+ Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
57119
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
57120
+ Processing by WelcomeController#logged_in_page as HTML
57121
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
57122
+ Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 0.2ms)
57123
+  (0.7ms) rollback transaction
57124
+ --------------------------------------------------------------------
57125
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
57126
+ --------------------------------------------------------------------
57127
+  (0.1ms) begin transaction
57128
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57129
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57130
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57131
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
57132
+ Processing by WelcomeController#logged_in_page as HTML
57133
+ Completed 401 Unauthorized in 3ms
57134
+  (0.1ms) SAVEPOINT active_record_1
57135
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
57136
+ Binary data inserted for `string` type on column `encrypted_password`
57137
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$/KABjQvj1ACLpWH4kSve/u5aSy3V8.shDgzDXO52CraF6d55PkSzm"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00]]
57138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57139
+  (0.1ms) SAVEPOINT active_record_1
57140
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57141
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57142
+  (0.2ms) RELEASE SAVEPOINT active_record_1
57143
+ SQL (0.5ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
57144
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
57145
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
57146
+ Processing by Contour::SessionsController#create as HTML
57147
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
57148
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
57149
+  (0.1ms) SAVEPOINT active_record_1
57150
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57151
+ Completed 401 Unauthorized in 15ms
57152
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
57153
+ Processing by Contour::SessionsController#new as HTML
57154
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.1ms)
57155
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.2ms)
57156
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
57157
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.3ms)
57158
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.6ms)
57159
+ Completed 200 OK in 42ms (Views: 39.2ms | ActiveRecord: 0.0ms)
57160
+  (0.7ms) rollback transaction
57161
+ -------------------------------------------------------------
57162
+ NavigationTest: test_root_navigation_redirected_to_login_page
57163
+ -------------------------------------------------------------
57164
+  (0.2ms) begin transaction
57165
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57166
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57167
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57168
+ Started GET "/" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
57169
+ Processing by WelcomeController#index as HTML
57170
+ Completed 401 Unauthorized in 3ms
57171
+  (0.2ms) rollback transaction
57172
+ -------------------------------------------------------------------------
57173
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
57174
+ -------------------------------------------------------------------------
57175
+  (0.1ms) begin transaction
57176
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57177
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57178
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57179
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
57180
+ Processing by WelcomeController#logged_in_page as JSON
57181
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57182
+  (0.1ms) SAVEPOINT active_record_1
57183
+ SQL (0.7ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:31:45 UTC +00:00]]
57184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57185
+ Completed 200 OK in 369ms (Views: 0.3ms | ActiveRecord: 1.1ms)
57186
+  (0.8ms) rollback transaction
57187
+ ------------------------------------------------------------------------------------------------
57188
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
57189
+ ------------------------------------------------------------------------------------------------
57190
+  (0.1ms) begin transaction
57191
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57192
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57193
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57194
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:31:45 -0500
57195
+ Processing by WelcomeController#logged_in_page as JSON
57196
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57197
+ Completed 401 Unauthorized in 313ms
57198
+  (0.1ms) rollback transaction
57199
+ ------------------------------------
57200
+ UserTest: test_should_apply_omniauth
57201
+ ------------------------------------
57202
+  (0.1ms) begin transaction
57203
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57204
+  (0.1ms) rollback transaction
57205
+ --------------------------------------
57206
+ UserTest: test_should_get_reverse_name
57207
+ --------------------------------------
57208
+  (0.1ms) begin transaction
57209
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57210
+  (0.1ms) rollback transaction
57211
+ -------------------------------------------------
57212
+ AuthenticationTest: test_should_get_provider_name
57213
+ -------------------------------------------------
57214
+  (0.6ms) begin transaction
57215
+ Fixture Delete (0.4ms) DELETE FROM "authentications"
57216
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:32:28', '2013-03-07 15:32:28', 949717663, 201799169)
57217
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:32:28', '2013-03-07 15:32:28', 876923740, 201799169)
57218
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-07 15:32:28', '2013-03-07 15:32:28', 864673665, 201799169)
57219
+ Fixture Delete (0.2ms) DELETE FROM "users"
57220
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:32:28', '2013-03-07 15:32:28', 201799169)
57221
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:32:28', '2013-03-07 15:32:28', 999914115)
57222
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:32:28', '2013-03-07 15:32:28', 725306934)
57223
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:32:28', '2013-03-07 15:32:28', 349534908)
57224
+  (2.1ms) commit transaction
57225
+  (0.1ms) begin transaction
57226
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
57227
+  (0.1ms) rollback transaction
57228
+ --------------------------------------------------------------------------------
57229
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
57230
+ --------------------------------------------------------------------------------
57231
+  (0.1ms) begin transaction
57232
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
57233
+  (0.1ms) rollback transaction
57234
+ -------------------------------------------------------------------------
57235
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
57236
+ -------------------------------------------------------------------------
57237
+  (0.1ms) begin transaction
57238
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57239
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
57240
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
57241
+ Processing by Contour::AuthenticationsController#create as HTML
57242
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:32:28 UTC", "updated_at"=>"2013-03-07 15:32:28 UTC"}}
57243
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
57244
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
57245
+ Logged in user found, creating associated authentication.
57246
+  (0.1ms) SAVEPOINT active_record_1
57247
+ SQL (3.6ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:32:29 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:32:29 UTC +00:00], ["user_id", 201799169]]
57248
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57249
+ Redirected to http://test.host/authentications
57250
+ Completed 302 Found in 57ms (ActiveRecord: 4.2ms)
57251
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
57252
+  (0.9ms) rollback transaction
57253
+ --------------------------------------------------------------------------
57254
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
57255
+ --------------------------------------------------------------------------
57256
+  (0.1ms) begin transaction
57257
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57258
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
57259
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
57260
+ Processing by Contour::AuthenticationsController#destroy as HTML
57261
+ Parameters: {"id"=>"949717663"}
57262
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
57263
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
57264
+  (0.1ms) SAVEPOINT active_record_1
57265
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
57266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57267
+ Redirected to http://test.host/authentications
57268
+ Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
57269
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
57270
+  (0.6ms) rollback transaction
57271
+ -------------------------------------------------------------
57272
+ Contour::AuthenticationsControllerTest: test_should_get_index
57273
+ -------------------------------------------------------------
57274
+  (0.1ms) begin transaction
57275
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57276
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
57277
+ Processing by Contour::AuthenticationsController#index as HTML
57278
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
57279
+ Authentication Exists (0.3ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
57280
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
57281
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (35.4ms)
57282
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.2ms)
57283
+ Completed 200 OK in 288ms (Views: 283.4ms | ActiveRecord: 0.8ms)
57284
+  (0.1ms) rollback transaction
57285
+ -----------------------------------------------------------------------------
57286
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
57287
+ -----------------------------------------------------------------------------
57288
+  (0.1ms) begin transaction
57289
+ Processing by Contour::PasswordsController#create as HTML
57290
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
57291
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57292
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'pgsBQqsRfXV4zqrDAGu7' LIMIT 1
57293
+  (0.1ms) SAVEPOINT active_record_1
57294
+ SQL (1.0ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "pgsBQqsRfXV4zqrDAGu7"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:32:29 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:32:29 UTC +00:00]]
57295
+  (0.2ms) RELEASE SAVEPOINT active_record_1
57296
+
57297
+ Sent mail to valid@example.com (102.3ms)
57298
+ Date: Thu, 07 Mar 2013 10:32:29 -0500
57299
+ From: please-change-me-at-config-initializers-devise@example.com
57300
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
57301
+ To: valid@example.com
57302
+ Message-ID: <5138b30dc750f_12bc03fd881835ad88621c@edge2.partners.org.mail>
57303
+ Subject: Reset password instructions
57304
+ Mime-Version: 1.0
57305
+ Content-Type: text/html;
57306
+ charset=UTF-8
57307
+ Content-Transfer-Encoding: 7bit
57308
+
57309
+ <p>Hello valid@example.com!</p>
57310
+
57311
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
57312
+
57313
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=pgsBQqsRfXV4zqrDAGu7">Change my password</a></p>
57314
+
57315
+ <p>If you didn't request this, please ignore this email.</p>
57316
+ <p>Your password won't change until you access the link above and create a new one.</p>
57317
+
57318
+ Redirected to http://test.host/users/login
57319
+ Completed 302 Found in 270ms (ActiveRecord: 0.0ms)
57320
+  (0.7ms) rollback transaction
57321
+ -----------------------------------------------------------------------------
57322
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
57323
+ -----------------------------------------------------------------------------
57324
+  (0.2ms) begin transaction
57325
+ Processing by Contour::PasswordsController#new as HTML
57326
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.8ms)
57327
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (22.7ms)
57328
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (28.6ms)
57329
+ Completed 200 OK in 77ms (Views: 74.5ms | ActiveRecord: 0.0ms)
57330
+  (0.2ms) rollback transaction
57331
+ ----------------------------------------------------------------------
57332
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
57333
+ ----------------------------------------------------------------------
57334
+  (0.1ms) begin transaction
57335
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57336
+ Processing by Contour::SessionsController#create as JSON
57337
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
57338
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57339
+  (0.2ms) SAVEPOINT active_record_1
57340
+ SQL (1.0ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00]]
57341
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57342
+ Completed 200 OK in 326ms (Views: 0.8ms | ActiveRecord: 1.7ms)
57343
+  (0.7ms) rollback transaction
57344
+ ----------------------------------------------------------------------------------------------------
57345
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_invalid_credentials
57346
+ ----------------------------------------------------------------------------------------------------
57347
+  (0.1ms) begin transaction
57348
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57349
+ Processing by Contour::SessionsController#create as HTML
57350
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
57351
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57352
+  (0.2ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
57353
+ Redirected to http://test.host/auth/ldap
57354
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
57355
+  (0.1ms) rollback transaction
57356
+ --------------------------------------------------------------------------
57357
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
57358
+ --------------------------------------------------------------------------
57359
+  (0.1ms) begin transaction
57360
+ Processing by Contour::SessionsController#create as HTML
57361
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
57362
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
57363
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
57364
+ Completed 401 Unauthorized in 7ms
57365
+ Processing by Contour::SessionsController#new as HTML
57366
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
57367
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
57368
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.9ms)
57369
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.2ms)
57370
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.2ms)
57371
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.8ms)
57372
+ Completed 200 OK in 57ms (Views: 53.9ms | ActiveRecord: 0.0ms)
57373
+  (0.2ms) rollback transaction
57374
+ -----------------------------------------------------
57375
+ ContourHelperTest: test_should_show_sort_field_helper
57376
+ -----------------------------------------------------
57377
+  (0.1ms) begin transaction
57378
+  (0.2ms) rollback transaction
57379
+ ---------------------------------------------------------------------
57380
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
57381
+ ---------------------------------------------------------------------
57382
+  (0.1ms) begin transaction
57383
+  (0.1ms) rollback transaction
57384
+ -----------------------
57385
+ ContourTest: test_truth
57386
+ -----------------------
57387
+  (0.2ms) begin transaction
57388
+  (0.2ms) rollback transaction
57389
+ --------------------------------------------------------------------
57390
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
57391
+ --------------------------------------------------------------------
57392
+  (0.1ms) begin transaction
57393
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57394
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57395
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57396
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
57397
+ Processing by WelcomeController#logged_in_page as HTML
57398
+ Completed 401 Unauthorized in 31ms
57399
+  (0.3ms) SAVEPOINT active_record_1
57400
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
57401
+ Binary data inserted for `string` type on column `encrypted_password`
57402
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$.C8yvPbn7vUtxMF1A5qv7ORp3WXX1.lBq3ZpICuS0PPekpCLQ6A8."], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00]]
57403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57404
+  (0.1ms) SAVEPOINT active_record_1
57405
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57406
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57407
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57408
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
57409
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
57410
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
57411
+ Processing by Contour::SessionsController#create as HTML
57412
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
57413
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
57414
+  (0.2ms) SAVEPOINT active_record_1
57415
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57416
+ Completed 401 Unauthorized in 17ms
57417
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
57418
+ Processing by Contour::SessionsController#new as HTML
57419
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.1ms)
57420
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.7ms)
57421
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
57422
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.0ms)
57423
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.6ms)
57424
+ Completed 200 OK in 37ms (Views: 34.2ms | ActiveRecord: 0.0ms)
57425
+  (0.9ms) rollback transaction
57426
+ --------------------------------------------------------
57427
+ NavigationTest: test_friendly_url_forwarding_after_login
57428
+ --------------------------------------------------------
57429
+  (0.1ms) begin transaction
57430
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57431
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57432
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57433
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
57434
+ Processing by WelcomeController#logged_in_page as HTML
57435
+ Completed 401 Unauthorized in 2ms
57436
+  (0.1ms) SAVEPOINT active_record_1
57437
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
57438
+ Binary data inserted for `string` type on column `encrypted_password`
57439
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$.X08QtxyTVgOUadwO2XRReNXDgCCaJNHlDqrDq8fpMzV9PmRqex7q"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00]]
57440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57441
+  (0.1ms) SAVEPOINT active_record_1
57442
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57443
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57445
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
57446
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
57447
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
57448
+ Processing by Contour::SessionsController#create as HTML
57449
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
57450
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
57451
+  (0.1ms) SAVEPOINT active_record_1
57452
+ SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00]]
57453
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57454
+ Redirected to http://www.example.com/logged_in_page
57455
+ Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
57456
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
57457
+ Processing by WelcomeController#logged_in_page as HTML
57458
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
57459
+ Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.2ms)
57460
+  (0.8ms) rollback transaction
57461
+ --------------------------------------------------------------------
57462
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
57463
+ --------------------------------------------------------------------
57464
+  (0.1ms) begin transaction
57465
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57466
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57467
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57468
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
57469
+ Processing by WelcomeController#logged_in_page as HTML
57470
+ Completed 401 Unauthorized in 2ms
57471
+  (0.1ms) SAVEPOINT active_record_1
57472
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
57473
+ Binary data inserted for `string` type on column `encrypted_password`
57474
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$4h/nfz9PYy4xO0PRq9aTgOOm2hwvaT3mxF..BKI.NBbRVmDElaORm"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:32:30 UTC +00:00]]
57475
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57476
+  (0.1ms) SAVEPOINT active_record_1
57477
+ Authentication Exists (0.6ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57478
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57479
+  (0.2ms) RELEASE SAVEPOINT active_record_1
57480
+ SQL (0.4ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
57481
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
57482
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:32:30 -0500
57483
+ Processing by Contour::SessionsController#create as HTML
57484
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
57485
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
57486
+  (0.2ms) SAVEPOINT active_record_1
57487
+  (0.2ms) RELEASE SAVEPOINT active_record_1
57488
+ Completed 401 Unauthorized in 16ms
57489
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:32:31 -0500
57490
+ Processing by Contour::SessionsController#new as HTML
57491
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.2ms)
57492
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.8ms)
57493
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
57494
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.2ms)
57495
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (10.4ms)
57496
+ Completed 200 OK in 42ms (Views: 39.6ms | ActiveRecord: 0.0ms)
57497
+  (0.9ms) rollback transaction
57498
+ -------------------------------------------------------------
57499
+ NavigationTest: test_root_navigation_redirected_to_login_page
57500
+ -------------------------------------------------------------
57501
+  (0.1ms) begin transaction
57502
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57503
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57504
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57505
+ Started GET "/" for 127.0.0.1 at 2013-03-07 10:32:31 -0500
57506
+ Processing by WelcomeController#index as HTML
57507
+ Completed 401 Unauthorized in 2ms
57508
+  (0.2ms) rollback transaction
57509
+ -------------------------------------------------------------------------
57510
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
57511
+ -------------------------------------------------------------------------
57512
+  (0.1ms) begin transaction
57513
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57514
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57515
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57516
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:32:31 -0500
57517
+ Processing by WelcomeController#logged_in_page as JSON
57518
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57519
+  (0.1ms) SAVEPOINT active_record_1
57520
+ SQL (0.7ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:32:31 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:32:31 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:32:31 UTC +00:00]]
57521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57522
+ Completed 200 OK in 367ms (Views: 0.5ms | ActiveRecord: 1.2ms)
57523
+  (0.6ms) rollback transaction
57524
+ ------------------------------------------------------------------------------------------------
57525
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
57526
+ ------------------------------------------------------------------------------------------------
57527
+  (0.1ms) begin transaction
57528
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57529
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57530
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57531
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:32:31 -0500
57532
+ Processing by WelcomeController#logged_in_page as JSON
57533
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57534
+ Completed 401 Unauthorized in 321ms
57535
+  (0.1ms) rollback transaction
57536
+ ------------------------------------
57537
+ UserTest: test_should_apply_omniauth
57538
+ ------------------------------------
57539
+  (0.1ms) begin transaction
57540
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57541
+  (0.2ms) rollback transaction
57542
+ --------------------------------------
57543
+ UserTest: test_should_get_reverse_name
57544
+ --------------------------------------
57545
+  (0.1ms) begin transaction
57546
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57547
+  (0.2ms) rollback transaction
57548
+ -------------------------------------------------
57549
+ AuthenticationTest: test_should_get_provider_name
57550
+ -------------------------------------------------
57551
+  (0.5ms) begin transaction
57552
+ Fixture Delete (0.5ms) DELETE FROM "authentications"
57553
+ Fixture Insert (0.3ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-03-07 15:34:56', '2013-03-07 15:34:56', 949717663, 201799169)
57554
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-03-07 15:34:56', '2013-03-07 15:34:56', 876923740, 201799169)
57555
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-03-07 15:34:56', '2013-03-07 15:34:56', 864673665, 201799169)
57556
+ Fixture Delete (0.2ms) DELETE FROM "users"
57557
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:34:56', '2013-03-07 15:34:56', 201799169)
57558
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-03-07 15:34:56', '2013-03-07 15:34:56', 999914115)
57559
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:34:56', '2013-03-07 15:34:56', 725306934)
57560
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-03-07 15:34:56', '2013-03-07 15:34:56', 349534908)
57561
+  (2.1ms) commit transaction
57562
+  (0.1ms) begin transaction
57563
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
57564
+  (0.1ms) rollback transaction
57565
+ --------------------------------------------------------------------------------
57566
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
57567
+ --------------------------------------------------------------------------------
57568
+  (0.1ms) begin transaction
57569
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
57570
+  (0.2ms) rollback transaction
57571
+ -------------------------------------------------------------------------
57572
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
57573
+ -------------------------------------------------------------------------
57574
+  (0.2ms) begin transaction
57575
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57576
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
57577
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
57578
+ Processing by Contour::AuthenticationsController#create as HTML
57579
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-03-07 15:34:56 UTC", "updated_at"=>"2013-03-07 15:34:56 UTC"}}
57580
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
57581
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
57582
+ Logged in user found, creating associated authentication.
57583
+  (0.1ms) SAVEPOINT active_record_1
57584
+ SQL (3.7ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:34:56 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 07 Mar 2013 15:34:56 UTC +00:00], ["user_id", 201799169]]
57585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57586
+ Redirected to http://test.host/authentications
57587
+ Completed 302 Found in 57ms (ActiveRecord: 4.4ms)
57588
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
57589
+  (0.9ms) rollback transaction
57590
+ --------------------------------------------------------------------------
57591
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
57592
+ --------------------------------------------------------------------------
57593
+  (0.1ms) begin transaction
57594
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57595
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
57596
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
57597
+ Processing by Contour::AuthenticationsController#destroy as HTML
57598
+ Parameters: {"id"=>"949717663"}
57599
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
57600
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
57601
+  (0.2ms) SAVEPOINT active_record_1
57602
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
57603
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57604
+ Redirected to http://test.host/authentications
57605
+ Completed 302 Found in 10ms (ActiveRecord: 1.3ms)
57606
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
57607
+  (0.5ms) rollback transaction
57608
+ -------------------------------------------------------------
57609
+ Contour::AuthenticationsControllerTest: test_should_get_index
57610
+ -------------------------------------------------------------
57611
+  (0.2ms) begin transaction
57612
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57613
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
57614
+ Processing by Contour::AuthenticationsController#index as HTML
57615
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
57616
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
57617
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
57618
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (32.1ms)
57619
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.3ms)
57620
+ Completed 200 OK in 291ms (Views: 286.2ms | ActiveRecord: 0.7ms)
57621
+  (0.2ms) rollback transaction
57622
+ -----------------------------------------------------------------------------
57623
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
57624
+ -----------------------------------------------------------------------------
57625
+  (0.1ms) begin transaction
57626
+ Processing by Contour::PasswordsController#create as HTML
57627
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
57628
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57629
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'RtxcC3srywQsByNcDseN' LIMIT 1
57630
+  (0.1ms) SAVEPOINT active_record_1
57631
+ SQL (0.9ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "RtxcC3srywQsByNcDseN"], ["reset_password_sent_at", Thu, 07 Mar 2013 15:34:56 UTC +00:00], ["updated_at", Thu, 07 Mar 2013 15:34:56 UTC +00:00]]
57632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57633
+
57634
+ Sent mail to valid@example.com (97.5ms)
57635
+ Date: Thu, 07 Mar 2013 10:34:57 -0500
57636
+ From: please-change-me-at-config-initializers-devise@example.com
57637
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
57638
+ To: valid@example.com
57639
+ Message-ID: <5138b3a118785_12c183fca69435ad04705b@edge2.partners.org.mail>
57640
+ Subject: Reset password instructions
57641
+ Mime-Version: 1.0
57642
+ Content-Type: text/html;
57643
+ charset=UTF-8
57644
+ Content-Transfer-Encoding: 7bit
57645
+
57646
+ <p>Hello valid@example.com!</p>
57647
+
57648
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
57649
+
57650
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=RtxcC3srywQsByNcDseN">Change my password</a></p>
57651
+
57652
+ <p>If you didn't request this, please ignore this email.</p>
57653
+ <p>Your password won't change until you access the link above and create a new one.</p>
57654
+
57655
+ Redirected to http://test.host/users/login
57656
+ Completed 302 Found in 240ms (ActiveRecord: 0.0ms)
57657
+  (0.6ms) rollback transaction
57658
+ -----------------------------------------------------------------------------
57659
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
57660
+ -----------------------------------------------------------------------------
57661
+  (0.1ms) begin transaction
57662
+ Processing by Contour::PasswordsController#new as HTML
57663
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (4.4ms)
57664
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (23.7ms)
57665
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (29.2ms)
57666
+ Completed 200 OK in 75ms (Views: 73.4ms | ActiveRecord: 0.0ms)
57667
+  (0.1ms) rollback transaction
57668
+ ----------------------------------------------------------------------
57669
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
57670
+ ----------------------------------------------------------------------
57671
+  (0.3ms) begin transaction
57672
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57673
+ Processing by Contour::SessionsController#create as JSON
57674
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
57675
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57676
+  (0.1ms) SAVEPOINT active_record_1
57677
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:34:57 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:34:57 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:34:57 UTC +00:00]]
57678
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57679
+ Completed 200 OK in 325ms (Views: 0.7ms | ActiveRecord: 1.3ms)
57680
+  (0.9ms) rollback transaction
57681
+ ----------------------------------------------------------------------------------------------------------
57682
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
57683
+ ----------------------------------------------------------------------------------------------------------
57684
+  (0.1ms) begin transaction
57685
+ Processing by Contour::SessionsController#create as HTML
57686
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
57687
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
57688
+  (0.2ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
57689
+ Redirected to http://test.host/auth/google_apps
57690
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
57691
+  (0.1ms) rollback transaction
57692
+ ----------------------------------------------------------------------------------------------
57693
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
57694
+ ----------------------------------------------------------------------------------------------
57695
+  (0.1ms) begin transaction
57696
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57697
+ Processing by Contour::SessionsController#create as HTML
57698
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
57699
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57700
+  (0.2ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
57701
+ Redirected to http://test.host/auth/ldap
57702
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
57703
+  (0.1ms) rollback transaction
57704
+ --------------------------------------------------------------------------
57705
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
57706
+ --------------------------------------------------------------------------
57707
+  (0.2ms) begin transaction
57708
+ Processing by Contour::SessionsController#create as HTML
57709
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
57710
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
57711
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
57712
+ Completed 401 Unauthorized in 8ms
57713
+ Processing by Contour::SessionsController#new as HTML
57714
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
57715
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
57716
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.4ms)
57717
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.2ms)
57718
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.3ms)
57719
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (10.2ms)
57720
+ Completed 200 OK in 60ms (Views: 58.4ms | ActiveRecord: 0.0ms)
57721
+  (0.1ms) rollback transaction
57722
+ -----------------------------------------------------
57723
+ ContourHelperTest: test_should_show_sort_field_helper
57724
+ -----------------------------------------------------
57725
+  (0.1ms) begin transaction
57726
+  (0.2ms) rollback transaction
57727
+ ---------------------------------------------------------------------
57728
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
57729
+ ---------------------------------------------------------------------
57730
+  (0.1ms) begin transaction
57731
+  (0.2ms) rollback transaction
57732
+ -----------------------
57733
+ ContourTest: test_truth
57734
+ -----------------------
57735
+  (0.1ms) begin transaction
57736
+  (0.1ms) rollback transaction
57737
+ --------------------------------------------------------------------
57738
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
57739
+ --------------------------------------------------------------------
57740
+  (0.1ms) begin transaction
57741
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57742
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57743
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57744
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:34:57 -0500
57745
+ Processing by WelcomeController#logged_in_page as HTML
57746
+ Completed 401 Unauthorized in 33ms
57747
+  (0.1ms) SAVEPOINT active_record_1
57748
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
57749
+ Binary data inserted for `string` type on column `encrypted_password`
57750
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$V4P7lkBSRtjrK1JQWdVkeOs0w7lD4YOcI3Tzu1S8XiG20EVLIIKDG"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00]]
57751
+  (0.2ms) RELEASE SAVEPOINT active_record_1
57752
+  (0.1ms) SAVEPOINT active_record_1
57753
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57754
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57755
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57756
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
57757
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
57758
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
57759
+ Processing by Contour::SessionsController#create as HTML
57760
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
57761
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
57762
+  (0.1ms) SAVEPOINT active_record_1
57763
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57764
+ Completed 401 Unauthorized in 18ms
57765
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
57766
+ Processing by Contour::SessionsController#new as HTML
57767
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.1ms)
57768
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.1ms)
57769
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
57770
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.4ms)
57771
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.7ms)
57772
+ Completed 200 OK in 42ms (Views: 39.9ms | ActiveRecord: 0.0ms)
57773
+  (0.8ms) rollback transaction
57774
+ --------------------------------------------------------
57775
+ NavigationTest: test_friendly_url_forwarding_after_login
57776
+ --------------------------------------------------------
57777
+  (0.1ms) begin transaction
57778
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57779
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57780
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57781
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
57782
+ Processing by WelcomeController#logged_in_page as HTML
57783
+ Completed 401 Unauthorized in 2ms
57784
+  (0.2ms) SAVEPOINT active_record_1
57785
+ User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
57786
+ Binary data inserted for `string` type on column `encrypted_password`
57787
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$xKbdQMhLX8wiANbclM/G8eKG3FoXR4R5fyQZDaouIvmIJ44tfJp36"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00]]
57788
+  (0.2ms) RELEASE SAVEPOINT active_record_1
57789
+  (0.2ms) SAVEPOINT active_record_1
57790
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57791
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57793
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
57794
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
57795
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
57796
+ Processing by Contour::SessionsController#create as HTML
57797
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
57798
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
57799
+  (0.1ms) SAVEPOINT active_record_1
57800
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00]]
57801
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57802
+ Redirected to http://www.example.com/logged_in_page
57803
+ Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
57804
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
57805
+ Processing by WelcomeController#logged_in_page as HTML
57806
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
57807
+ Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 0.2ms)
57808
+  (0.9ms) rollback transaction
57809
+ --------------------------------------------------------------------
57810
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
57811
+ --------------------------------------------------------------------
57812
+  (0.1ms) begin transaction
57813
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57814
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57815
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57816
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
57817
+ Processing by WelcomeController#logged_in_page as HTML
57818
+ Completed 401 Unauthorized in 3ms
57819
+  (0.1ms) SAVEPOINT active_record_1
57820
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
57821
+ Binary data inserted for `string` type on column `encrypted_password`
57822
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$Tq4yy9Xi0jgq040PmLZ8y.XjUAbkIyGbx8M/Nw7pCzLENaWsfPut6"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00]]
57823
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57824
+  (0.1ms) SAVEPOINT active_record_1
57825
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57826
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
57827
+  (0.2ms) RELEASE SAVEPOINT active_record_1
57828
+ SQL (0.4ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
57829
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
57830
+ Started POST "/users/login" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
57831
+ Processing by Contour::SessionsController#create as HTML
57832
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
57833
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
57834
+  (0.1ms) SAVEPOINT active_record_1
57835
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57836
+ Completed 401 Unauthorized in 14ms
57837
+ Started GET "/users/login" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
57838
+ Processing by Contour::SessionsController#new as HTML
57839
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
57840
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.2ms)
57841
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
57842
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.7ms)
57843
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.3ms)
57844
+ Completed 200 OK in 38ms (Views: 35.0ms | ActiveRecord: 0.0ms)
57845
+  (0.9ms) rollback transaction
57846
+ -------------------------------------------------------------
57847
+ NavigationTest: test_root_navigation_redirected_to_login_page
57848
+ -------------------------------------------------------------
57849
+  (0.1ms) begin transaction
57850
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57851
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57852
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57853
+ Started GET "/" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
57854
+ Processing by WelcomeController#index as HTML
57855
+ Completed 401 Unauthorized in 2ms
57856
+  (0.1ms) rollback transaction
57857
+ -------------------------------------------------------------------------
57858
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
57859
+ -------------------------------------------------------------------------
57860
+  (0.1ms) begin transaction
57861
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57862
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57863
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57864
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
57865
+ Processing by WelcomeController#logged_in_page as JSON
57866
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57867
+  (0.1ms) SAVEPOINT active_record_1
57868
+ SQL (0.7ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["current_sign_in_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Thu, 07 Mar 2013 15:34:58 UTC +00:00]]
57869
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57870
+ Completed 200 OK in 361ms (Views: 0.4ms | ActiveRecord: 1.1ms)
57871
+  (0.8ms) rollback transaction
57872
+ ------------------------------------------------------------------------------------------------
57873
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
57874
+ ------------------------------------------------------------------------------------------------
57875
+  (0.2ms) begin transaction
57876
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57877
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
57878
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
57879
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-03-07 10:34:58 -0500
57880
+ Processing by WelcomeController#logged_in_page as JSON
57881
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
57882
+ Completed 401 Unauthorized in 319ms
57883
+  (0.1ms) rollback transaction
57884
+ ------------------------------------
57885
+ UserTest: test_should_apply_omniauth
57886
+ ------------------------------------
57887
+  (0.1ms) begin transaction
57888
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57889
+  (0.1ms) rollback transaction
57890
+ --------------------------------------
57891
+ UserTest: test_should_get_reverse_name
57892
+ --------------------------------------
57893
+  (0.1ms) begin transaction
57894
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
57895
+  (0.1ms) rollback transaction