contour 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ == 1.0.6
2
+
3
+ * Enhancements
4
+ * Login and Registration API now return authentication token, first_name, last_name, id, and email for JSON requests on successful login
5
+
1
6
  == 1.0.5
2
7
 
3
8
  * Bug Fix
@@ -24,7 +24,7 @@ Make sure you have Rails 3.2.8
24
24
 
25
25
  Modify <tt>Gemfile</tt> and add
26
26
 
27
- gem 'contour', '~> 1.0.5'
27
+ gem 'contour', '~> 1.0.6'
28
28
 
29
29
  Run Bundle install
30
30
 
@@ -9,7 +9,7 @@ class Contour::RegistrationsController < Devise::RegistrationsController
9
9
  if @user.save
10
10
  respond_to do |format|
11
11
  format.html { redirect_to @user, notice: 'User was successfully created.' }
12
- format.json { render json: @user, only: [:id, :email], status: :created, location: @user }
12
+ format.json { render json: @user.as_json( only: [:id, :email, :first_name, :last_name, :authentication_token ] ), status: :created, location: @user }
13
13
  end
14
14
  else
15
15
  respond_to do |format|
@@ -28,7 +28,11 @@ class Contour::SessionsController < Devise::SessionsController
28
28
  if resource
29
29
  set_flash_message(:notice, :signed_in) if is_navigational_format?
30
30
  sign_in(resource_name, resource)
31
- respond_with resource, location: after_sign_in_path_for(resource)
31
+
32
+ respond_to do |format|
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 ] ) } }
35
+ end
32
36
  else
33
37
  resource = resource_name.to_s.titleize.constantize.find_by_email(params[resource_name][:email])
34
38
  if resource and resource.respond_to?('authentications') and providers = resource.authentications.pluck(:provider).uniq and providers.size > 0
@@ -2,7 +2,7 @@ module Contour
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 5
5
+ TINY = 6
6
6
  BUILD = nil # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
@@ -42,4 +42,4 @@ class User < ActiveRecord::Base
42
42
  (authentications.empty? || !password.blank?) && super
43
43
  end
44
44
 
45
- end
45
+ end
Binary file
@@ -45486,3 +45486,1313 @@ Completed 401 Unauthorized in 77ms
45486
45486
   (0.0ms) begin transaction
45487
45487
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45488
45488
   (0.1ms) rollback transaction
45489
+ Connecting to database specified by database.yml
45490
+  (0.1ms) begin transaction
45491
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
45492
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2012-09-04 13:26:18', '2012-09-04 13:26:18', 949717663, 201799169)
45493
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-09-04 13:26:18', '2012-09-04 13:26:18', 876923740, 201799169)
45494
+ Fixture Insert (0.0ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2012-09-04 13:26:18', '2012-09-04 13:26:18', 864673665, 201799169)
45495
+ Fixture Delete (0.1ms) DELETE FROM "users"
45496
+ 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', '2012-09-04 13:26:18', '2012-09-04 13:26:18', 201799169)
45497
+ 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', '2012-09-04 13:26:18', '2012-09-04 13:26:18', 999914115)
45498
+ 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', '2012-09-04 13:26:18', '2012-09-04 13:26:18', 725306934)
45499
+ 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', '2012-09-04 13:26:18', '2012-09-04 13:26:18', 349534908)
45500
+  (51.3ms) commit transaction
45501
+  (0.1ms) begin transaction
45502
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
45503
+  (0.1ms) rollback transaction
45504
+  (0.1ms) begin transaction
45505
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
45506
+  (0.0ms) rollback transaction
45507
+  (0.1ms) begin transaction
45508
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45509
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
45510
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
45511
+ Processing by Contour::AuthenticationsController#create as HTML
45512
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-09-04 13:26:18 UTC", "updated_at"=>"2012-09-04 13:26:18 UTC"}}
45513
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
45514
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
45515
+ Logged in user found, creating associated authentication.
45516
+  (0.1ms) SAVEPOINT active_record_1
45517
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 04 Sep 2012 13:26:18 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 04 Sep 2012 13:26:18 UTC +00:00], ["user_id", 201799169]]
45518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45519
+ Redirected to http://test.host/authentications
45520
+ Completed 302 Found in 22ms (ActiveRecord: 0.8ms)
45521
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
45522
+  (0.7ms) rollback transaction
45523
+  (0.0ms) begin transaction
45524
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45525
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
45526
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
45527
+ Processing by Contour::AuthenticationsController#destroy as HTML
45528
+ Parameters: {"id"=>"949717663"}
45529
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
45530
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
45531
+  (0.1ms) SAVEPOINT active_record_1
45532
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
45533
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45534
+ Redirected to http://test.host/authentications
45535
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
45536
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
45537
+  (0.7ms) rollback transaction
45538
+  (0.0ms) begin transaction
45539
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45540
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
45541
+ Processing by Contour::AuthenticationsController#index as HTML
45542
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
45543
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
45544
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
45545
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (1.9ms)
45546
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.4ms)
45547
+ Completed 200 OK in 55ms (Views: 52.8ms | ActiveRecord: 0.3ms)
45548
+  (0.1ms) rollback transaction
45549
+  (0.1ms) begin transaction
45550
+ Processing by Contour::PasswordsController#create as HTML
45551
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
45552
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
45553
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'LDQEbcVH2sqXsUFgKVUX' LIMIT 1
45554
+  (0.0ms) SAVEPOINT active_record_1
45555
+  (0.3ms) UPDATE "users" SET "reset_password_token" = 'LDQEbcVH2sqXsUFgKVUX', "reset_password_sent_at" = '2012-09-04 13:26:18.770428', "updated_at" = '2012-09-04 13:26:18.771188' WHERE "users"."id" = 201799169
45556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45557
+
45558
+ Sent mail to valid@example.com (16ms)
45559
+ Date: Tue, 04 Sep 2012 09:26:18 -0400
45560
+ From: please-change-me-at-config-initializers-devise@example.com
45561
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
45562
+ To: valid@example.com
45563
+ Message-ID: <5046017ae8d65_d6543febadc35ae0583c2@edge.partners.org.mail>
45564
+ Subject: Reset password instructions
45565
+ Mime-Version: 1.0
45566
+ Content-Type: text/html;
45567
+ charset=UTF-8
45568
+ Content-Transfer-Encoding: 7bit
45569
+
45570
+ <p>Hello valid@example.com!</p>
45571
+
45572
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
45573
+
45574
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=LDQEbcVH2sqXsUFgKVUX">Change my password</a></p>
45575
+
45576
+ <p>If you didn't request this, please ignore this email.</p>
45577
+ <p>Your password won't change until you access the link above and create a new one.</p>
45578
+
45579
+ Redirected to http://test.host/users/login
45580
+ Completed 302 Found in 233ms (ActiveRecord: 0.0ms)
45581
+  (1.1ms) rollback transaction
45582
+  (0.0ms) begin transaction
45583
+ Processing by Contour::PasswordsController#new as HTML
45584
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
45585
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.8ms)
45586
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.0ms)
45587
+ Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.0ms)
45588
+  (0.1ms) rollback transaction
45589
+  (0.0ms) begin transaction
45590
+  (0.0ms) rollback transaction
45591
+  (0.0ms) begin transaction
45592
+  (0.0ms) rollback transaction
45593
+  (0.0ms) begin transaction
45594
+  (0.0ms) rollback transaction
45595
+  (0.0ms) begin transaction
45596
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45597
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
45598
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
45599
+
45600
+
45601
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-04 09:26:19 -0400
45602
+ Processing by WelcomeController#logged_in_page as HTML
45603
+ Completed 401 Unauthorized in 1ms
45604
+  (0.1ms) SAVEPOINT active_record_1
45605
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
45606
+ Binary data inserted for `string` type on column `encrypted_password`
45607
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Sep 2012 13:26:19 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$QhaeN2QKkQc8CH0FNno/he95by2eihxrGEtkT1/OfdsSyEVhgRolq"], ["first_name", "Deleted"], ["last_name", "User"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Tue, 04 Sep 2012 13:26:19 UTC +00:00]]
45608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45609
+  (0.0ms) SAVEPOINT active_record_1
45610
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
45611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45612
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
45613
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
45614
+
45615
+
45616
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-04 09:26:19 -0400
45617
+ Processing by Contour::SessionsController#create as HTML
45618
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
45619
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
45620
+  (0.1ms) SAVEPOINT active_record_1
45621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45622
+ Completed 401 Unauthorized in 6ms
45623
+
45624
+
45625
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-04 09:26:19 -0400
45626
+ Processing by Contour::SessionsController#new as HTML
45627
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.6ms)
45628
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.9ms)
45629
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.6ms)
45630
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
45631
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (31.9ms)
45632
+ Completed 200 OK in 45ms (Views: 44.3ms | ActiveRecord: 0.0ms)
45633
+  (0.8ms) rollback transaction
45634
+  (0.1ms) begin transaction
45635
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45636
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
45637
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
45638
+
45639
+
45640
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-04 09:26:19 -0400
45641
+ Processing by WelcomeController#logged_in_page as HTML
45642
+ Completed 401 Unauthorized in 0ms
45643
+  (0.1ms) SAVEPOINT active_record_1
45644
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
45645
+ Binary data inserted for `string` type on column `encrypted_password`
45646
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Sep 2012 13:26:19 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$gJ/nGq86a6g7e8EAxyS5j.iyNGbEFdf3utHVWTQSevz9QQWnhtBNW"], ["first_name", "FirstName"], ["last_name", "LastName"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Tue, 04 Sep 2012 13:26:19 UTC +00:00]]
45647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45648
+  (0.0ms) SAVEPOINT active_record_1
45649
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
45650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45651
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
45652
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
45653
+
45654
+
45655
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-04 09:26:19 -0400
45656
+ Processing by Contour::SessionsController#create as HTML
45657
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
45658
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
45659
+  (0.0ms) SAVEPOINT active_record_1
45660
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-04 13:26:19.170591', "current_sign_in_at" = '2012-09-04 13:26:19.170591', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-04 13:26:19.171047' WHERE "users"."id" = 999914116
45661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45662
+ Redirected to http://www.example.com/logged_in_page
45663
+ Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
45664
+
45665
+
45666
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-04 09:26:19 -0400
45667
+ Processing by WelcomeController#logged_in_page as HTML
45668
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
45669
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
45670
+  (0.6ms) rollback transaction
45671
+  (0.1ms) begin transaction
45672
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45673
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
45674
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
45675
+
45676
+
45677
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-04 09:26:19 -0400
45678
+ Processing by WelcomeController#logged_in_page as HTML
45679
+ Completed 401 Unauthorized in 0ms
45680
+  (0.1ms) SAVEPOINT active_record_1
45681
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
45682
+ Binary data inserted for `string` type on column `encrypted_password`
45683
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Sep 2012 13:26:19 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$SCzkCZgplkcmyZtf/POSL.Ecw/R1bS.r6AIY5WkEZZaIcv.Vdwbiu"], ["first_name", "MyString"], ["last_name", "MyString"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Tue, 04 Sep 2012 13:26:19 UTC +00:00]]
45684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
45685
+  (0.0ms) SAVEPOINT active_record_1
45686
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
45687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45688
+ SQL (0.2ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
45689
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
45690
+
45691
+
45692
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-04 09:26:19 -0400
45693
+ Processing by Contour::SessionsController#create as HTML
45694
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
45695
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
45696
+  (0.1ms) SAVEPOINT active_record_1
45697
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45698
+ Completed 401 Unauthorized in 6ms
45699
+
45700
+
45701
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-04 09:26:19 -0400
45702
+ Processing by Contour::SessionsController#new as HTML
45703
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
45704
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (2.4ms)
45705
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
45706
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
45707
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.0ms)
45708
+ Completed 200 OK in 13ms (Views: 12.6ms | ActiveRecord: 0.0ms)
45709
+  (0.7ms) rollback transaction
45710
+  (0.1ms) begin transaction
45711
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45712
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
45713
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
45714
+
45715
+
45716
+ Started GET "/" for 127.0.0.1 at 2012-09-04 09:26:19 -0400
45717
+ Processing by WelcomeController#index as HTML
45718
+ Completed 401 Unauthorized in 0ms
45719
+  (0.1ms) rollback transaction
45720
+  (0.1ms) begin transaction
45721
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45722
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
45723
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
45724
+
45725
+
45726
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-04 09:26:19 -0400
45727
+ Processing by WelcomeController#logged_in_page as JSON
45728
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
45729
+  (0.1ms) SAVEPOINT active_record_1
45730
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-04 13:26:19.328427', "current_sign_in_at" = '2012-09-04 13:26:19.328427', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-04 13:26:19.329120' WHERE "users"."id" = 201799169
45731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45732
+ Completed 200 OK in 84ms (Views: 0.2ms | ActiveRecord: 0.5ms)
45733
+  (0.8ms) rollback transaction
45734
+  (0.1ms) begin transaction
45735
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45736
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
45737
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
45738
+
45739
+
45740
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-04 09:26:19 -0400
45741
+ Processing by WelcomeController#logged_in_page as JSON
45742
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
45743
+ Completed 401 Unauthorized in 78ms
45744
+  (0.1ms) rollback transaction
45745
+  (0.0ms) begin transaction
45746
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45747
+  (0.1ms) rollback transaction
45748
+  (0.1ms) begin transaction
45749
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45750
+  (0.0ms) rollback transaction
45751
+ Connecting to database specified by database.yml
45752
+  (0.1ms) begin transaction
45753
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
45754
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2012-09-05 13:39:48', '2012-09-05 13:39:48', 949717663, 201799169)
45755
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-09-05 13:39:48', '2012-09-05 13:39:48', 876923740, 201799169)
45756
+ 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', '2012-09-05 13:39:48', '2012-09-05 13:39:48', 864673665, 201799169)
45757
+ Fixture Delete (0.1ms) DELETE FROM "users"
45758
+ 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', '2012-09-05 13:39:48', '2012-09-05 13:39:48', 201799169)
45759
+ 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', '2012-09-05 13:39:48', '2012-09-05 13:39:48', 999914115)
45760
+ 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', '2012-09-05 13:39:48', '2012-09-05 13:39:48', 725306934)
45761
+ 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', '2012-09-05 13:39:48', '2012-09-05 13:39:48', 349534908)
45762
+  (1.7ms) commit transaction
45763
+  (0.0ms) begin transaction
45764
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
45765
+  (0.1ms) rollback transaction
45766
+  (0.1ms) begin transaction
45767
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
45768
+  (0.1ms) rollback transaction
45769
+  (0.1ms) begin transaction
45770
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45771
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
45772
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
45773
+ Processing by Contour::AuthenticationsController#create as HTML
45774
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-09-05 13:39:48 UTC", "updated_at"=>"2012-09-05 13:39:48 UTC"}}
45775
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
45776
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
45777
+ Logged in user found, creating associated authentication.
45778
+  (0.1ms) SAVEPOINT active_record_1
45779
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 05 Sep 2012 13:39:48 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Wed, 05 Sep 2012 13:39:48 UTC +00:00], ["user_id", 201799169]]
45780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45781
+ Redirected to http://test.host/authentications
45782
+ Completed 302 Found in 22ms (ActiveRecord: 0.8ms)
45783
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
45784
+  (0.8ms) rollback transaction
45785
+  (0.0ms) begin transaction
45786
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45787
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
45788
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
45789
+ Processing by Contour::AuthenticationsController#destroy as HTML
45790
+ Parameters: {"id"=>"949717663"}
45791
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
45792
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
45793
+  (0.0ms) SAVEPOINT active_record_1
45794
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
45795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45796
+ Redirected to http://test.host/authentications
45797
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
45798
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
45799
+  (0.7ms) rollback transaction
45800
+  (0.0ms) begin transaction
45801
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45802
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
45803
+ Processing by Contour::AuthenticationsController#index as HTML
45804
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
45805
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
45806
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
45807
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (3.3ms)
45808
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.9ms)
45809
+ Completed 200 OK in 96ms (Views: 65.1ms | ActiveRecord: 0.4ms)
45810
+  (0.1ms) rollback transaction
45811
+  (0.1ms) begin transaction
45812
+ Processing by Contour::PasswordsController#create as HTML
45813
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
45814
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
45815
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'PjfLsyWZsM2d7GCGv8e2' LIMIT 1
45816
+  (0.0ms) SAVEPOINT active_record_1
45817
+  (0.3ms) UPDATE "users" SET "reset_password_token" = 'PjfLsyWZsM2d7GCGv8e2', "reset_password_sent_at" = '2012-09-05 13:39:49.117902', "updated_at" = '2012-09-05 13:39:49.118624' WHERE "users"."id" = 201799169
45818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45819
+
45820
+ Sent mail to valid@example.com (15ms)
45821
+ Date: Wed, 05 Sep 2012 09:39:49 -0400
45822
+ From: please-change-me-at-config-initializers-devise@example.com
45823
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
45824
+ To: valid@example.com
45825
+ Message-ID: <5047562534d48_12ed93ff49e035ad4390ad@edge2.partners.org.mail>
45826
+ Subject: Reset password instructions
45827
+ Mime-Version: 1.0
45828
+ Content-Type: text/html;
45829
+ charset=UTF-8
45830
+ Content-Transfer-Encoding: 7bit
45831
+
45832
+ <p>Hello valid@example.com!</p>
45833
+
45834
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
45835
+
45836
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=PjfLsyWZsM2d7GCGv8e2">Change my password</a></p>
45837
+
45838
+ <p>If you didn't request this, please ignore this email.</p>
45839
+ <p>Your password won't change until you access the link above and create a new one.</p>
45840
+
45841
+ Redirected to http://test.host/users/login
45842
+ Completed 302 Found in 146ms (ActiveRecord: 0.0ms)
45843
+  (1.1ms) rollback transaction
45844
+  (0.0ms) begin transaction
45845
+ Processing by Contour::PasswordsController#new as HTML
45846
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.8ms)
45847
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.9ms)
45848
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.4ms)
45849
+ Completed 200 OK in 39ms (Views: 38.5ms | ActiveRecord: 0.0ms)
45850
+  (0.1ms) rollback transaction
45851
+  (0.1ms) begin transaction
45852
+  (0.0ms) rollback transaction
45853
+  (0.1ms) begin transaction
45854
+  (0.0ms) rollback transaction
45855
+  (0.0ms) begin transaction
45856
+  (0.0ms) rollback transaction
45857
+  (0.0ms) begin transaction
45858
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45859
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
45860
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
45861
+
45862
+
45863
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-05 09:39:49 -0400
45864
+ Processing by WelcomeController#logged_in_page as HTML
45865
+ Completed 401 Unauthorized in 1ms
45866
+  (0.1ms) SAVEPOINT active_record_1
45867
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
45868
+ Binary data inserted for `string` type on column `encrypted_password`
45869
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 05 Sep 2012 13:39:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$8XKPvD6OrBuqa7NfTSS5vuhZ7HeLKXc3YlDVhLmGildQcD5IqLYTy"], ["first_name", "Deleted"], ["last_name", "User"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Wed, 05 Sep 2012 13:39:49 UTC +00:00]]
45870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45871
+  (0.0ms) SAVEPOINT active_record_1
45872
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
45873
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45874
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
45875
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
45876
+
45877
+
45878
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-05 09:39:49 -0400
45879
+ Processing by Contour::SessionsController#create as HTML
45880
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
45881
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
45882
+  (0.1ms) SAVEPOINT active_record_1
45883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45884
+ Completed 401 Unauthorized in 6ms
45885
+
45886
+
45887
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-05 09:39:49 -0400
45888
+ Processing by Contour::SessionsController#new as HTML
45889
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.6ms)
45890
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.2ms)
45891
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.7ms)
45892
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
45893
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.1ms)
45894
+ Completed 200 OK in 47ms (Views: 46.5ms | ActiveRecord: 0.0ms)
45895
+  (0.6ms) rollback transaction
45896
+  (0.1ms) begin transaction
45897
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45898
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
45899
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
45900
+
45901
+
45902
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-05 09:39:49 -0400
45903
+ Processing by WelcomeController#logged_in_page as HTML
45904
+ Completed 401 Unauthorized in 0ms
45905
+  (0.1ms) SAVEPOINT active_record_1
45906
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
45907
+ Binary data inserted for `string` type on column `encrypted_password`
45908
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 05 Sep 2012 13:39:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$ZqTLa0jFc4aQChlOD/4CI.pQweY8Civ/1SiYovRdJd.HAbGfK5VCm"], ["first_name", "FirstName"], ["last_name", "LastName"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Wed, 05 Sep 2012 13:39:49 UTC +00:00]]
45909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45910
+  (0.0ms) SAVEPOINT active_record_1
45911
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
45912
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45913
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
45914
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
45915
+
45916
+
45917
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-05 09:39:49 -0400
45918
+ Processing by Contour::SessionsController#create as HTML
45919
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
45920
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
45921
+  (0.0ms) SAVEPOINT active_record_1
45922
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-05 13:39:49.459868', "current_sign_in_at" = '2012-09-05 13:39:49.459868', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-05 13:39:49.460314' WHERE "users"."id" = 999914116
45923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45924
+ Redirected to http://www.example.com/logged_in_page
45925
+ Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
45926
+
45927
+
45928
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-05 09:39:49 -0400
45929
+ Processing by WelcomeController#logged_in_page as HTML
45930
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
45931
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
45932
+  (0.6ms) rollback transaction
45933
+  (0.1ms) begin transaction
45934
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45935
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
45936
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
45937
+
45938
+
45939
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-05 09:39:49 -0400
45940
+ Processing by WelcomeController#logged_in_page as HTML
45941
+ Completed 401 Unauthorized in 0ms
45942
+  (0.1ms) SAVEPOINT active_record_1
45943
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
45944
+ Binary data inserted for `string` type on column `encrypted_password`
45945
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 05 Sep 2012 13:39:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$tcnAbLuusn9W2A/.fHY2f.qP/zwhopAagvR1REHfLO3w/qmquNzgu"], ["first_name", "MyString"], ["last_name", "MyString"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Wed, 05 Sep 2012 13:39:49 UTC +00:00]]
45946
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45947
+  (0.0ms) SAVEPOINT active_record_1
45948
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
45949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45950
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
45951
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
45952
+
45953
+
45954
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-05 09:39:49 -0400
45955
+ Processing by Contour::SessionsController#create as HTML
45956
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
45957
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
45958
+  (0.0ms) SAVEPOINT active_record_1
45959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45960
+ Completed 401 Unauthorized in 4ms
45961
+
45962
+
45963
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-05 09:39:49 -0400
45964
+ Processing by Contour::SessionsController#new as HTML
45965
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
45966
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.2ms)
45967
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
45968
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.2ms)
45969
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
45970
+ Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.0ms)
45971
+  (0.6ms) rollback transaction
45972
+  (0.1ms) begin transaction
45973
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45974
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
45975
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
45976
+
45977
+
45978
+ Started GET "/" for 127.0.0.1 at 2012-09-05 09:39:49 -0400
45979
+ Processing by WelcomeController#index as HTML
45980
+ Completed 401 Unauthorized in 0ms
45981
+  (0.1ms) rollback transaction
45982
+  (0.1ms) begin transaction
45983
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45984
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
45985
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
45986
+
45987
+
45988
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-05 09:39:49 -0400
45989
+ Processing by WelcomeController#logged_in_page as JSON
45990
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
45991
+  (0.1ms) SAVEPOINT active_record_1
45992
+  (0.3ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-05 13:39:49.607213', "current_sign_in_at" = '2012-09-05 13:39:49.607213', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-05 13:39:49.607899' WHERE "users"."id" = 201799169
45993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45994
+ Completed 200 OK in 80ms (Views: 0.2ms | ActiveRecord: 0.5ms)
45995
+  (0.7ms) rollback transaction
45996
+  (0.0ms) begin transaction
45997
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
45998
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
45999
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46000
+
46001
+
46002
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-05 09:39:49 -0400
46003
+ Processing by WelcomeController#logged_in_page as JSON
46004
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46005
+ Completed 401 Unauthorized in 78ms
46006
+  (0.1ms) rollback transaction
46007
+  (0.1ms) begin transaction
46008
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46009
+  (0.1ms) rollback transaction
46010
+  (0.0ms) begin transaction
46011
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46012
+  (0.0ms) rollback transaction
46013
+ Connecting to database specified by database.yml
46014
+  (0.1ms) begin transaction
46015
+ Fixture Delete (30.7ms) DELETE FROM "authentications"
46016
+ Fixture Insert (0.6ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 949717663, 201799169)
46017
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 876923740, 201799169)
46018
+ 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', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 864673665, 201799169)
46019
+ Fixture Delete (0.9ms) DELETE FROM "users"
46020
+ 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', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 201799169)
46021
+ 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', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 999914115)
46022
+ 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', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 725306934)
46023
+ 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', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 349534908)
46024
+  (1.8ms) commit transaction
46025
+  (0.0ms) begin transaction
46026
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
46027
+  (0.1ms) rollback transaction
46028
+  (0.1ms) begin transaction
46029
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46030
+  (0.0ms) rollback transaction
46031
+  (0.0ms) begin transaction
46032
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46033
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46034
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
46035
+ Processing by Contour::AuthenticationsController#create as HTML
46036
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-09-10 18:31:33 UTC", "updated_at"=>"2012-09-10 18:31:33 UTC"}}
46037
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
46038
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46039
+ Logged in user found, creating associated authentication.
46040
+  (0.1ms) SAVEPOINT active_record_1
46041
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:31:33 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Mon, 10 Sep 2012 18:31:33 UTC +00:00], ["user_id", 201799169]]
46042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46043
+ Redirected to http://test.host/authentications
46044
+ Completed 302 Found in 33ms (ActiveRecord: 0.8ms)
46045
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
46046
+  (20.4ms) rollback transaction
46047
+  (0.1ms) begin transaction
46048
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46049
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46050
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
46051
+ Processing by Contour::AuthenticationsController#destroy as HTML
46052
+ Parameters: {"id"=>"949717663"}
46053
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46054
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
46055
+  (0.0ms) SAVEPOINT active_record_1
46056
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
46057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46058
+ Redirected to http://test.host/authentications
46059
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
46060
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
46061
+  (0.6ms) rollback transaction
46062
+  (0.0ms) begin transaction
46063
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46064
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46065
+ Processing by Contour::AuthenticationsController#index as HTML
46066
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46067
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
46068
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
46069
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (4.0ms)
46070
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.2ms)
46071
+ Completed 200 OK in 184ms (Views: 181.9ms | ActiveRecord: 0.3ms)
46072
+  (0.1ms) rollback transaction
46073
+  (0.1ms) begin transaction
46074
+ Processing by Contour::PasswordsController#create as HTML
46075
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
46076
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46077
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'zKqe7VLs7uVvRFf6nyGX' LIMIT 1
46078
+  (0.1ms) SAVEPOINT active_record_1
46079
+  (0.5ms) UPDATE "users" SET "reset_password_token" = 'zKqe7VLs7uVvRFf6nyGX', "reset_password_sent_at" = '2012-09-10 18:31:33.572646', "updated_at" = '2012-09-10 18:31:33.574102' WHERE "users"."id" = 201799169
46080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46081
+
46082
+ Sent mail to valid@example.com (128ms)
46083
+ Date: Mon, 10 Sep 2012 14:31:33 -0400
46084
+ From: please-change-me-at-config-initializers-devise@example.com
46085
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
46086
+ To: valid@example.com
46087
+ Message-ID: <504e3205cca82_af433fe4acc35ad434623@edge2.partners.org.mail>
46088
+ Subject: Reset password instructions
46089
+ Mime-Version: 1.0
46090
+ Content-Type: text/html;
46091
+ charset=UTF-8
46092
+ Content-Transfer-Encoding: 7bit
46093
+
46094
+ <p>Hello valid@example.com!</p>
46095
+
46096
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
46097
+
46098
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=zKqe7VLs7uVvRFf6nyGX">Change my password</a></p>
46099
+
46100
+ <p>If you didn't request this, please ignore this email.</p>
46101
+ <p>Your password won't change until you access the link above and create a new one.</p>
46102
+
46103
+ Redirected to http://test.host/users/login
46104
+ Completed 302 Found in 377ms (ActiveRecord: 0.0ms)
46105
+  (0.8ms) rollback transaction
46106
+  (0.1ms) begin transaction
46107
+ Processing by Contour::PasswordsController#new as HTML
46108
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.8ms)
46109
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.2ms)
46110
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (6.5ms)
46111
+ Completed 200 OK in 45ms (Views: 44.5ms | ActiveRecord: 0.0ms)
46112
+  (0.1ms) rollback transaction
46113
+  (0.1ms) begin transaction
46114
+  (0.0ms) rollback transaction
46115
+  (0.0ms) begin transaction
46116
+  (0.1ms) rollback transaction
46117
+  (0.0ms) begin transaction
46118
+  (0.0ms) rollback transaction
46119
+  (0.0ms) begin transaction
46120
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46121
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46122
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46123
+
46124
+
46125
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:31:33 -0400
46126
+ Processing by WelcomeController#logged_in_page as HTML
46127
+ Completed 401 Unauthorized in 1ms
46128
+  (0.1ms) SAVEPOINT active_record_1
46129
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
46130
+ Binary data inserted for `string` type on column `encrypted_password`
46131
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:31:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$DwAlA3jInjonmwy0ucL9i.MKCfvtEwcBOkpjS7oE1Yxe8Z8wFkYf6"], ["first_name", "Deleted"], ["last_name", "User"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:31:34 UTC +00:00]]
46132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46133
+  (0.0ms) SAVEPOINT active_record_1
46134
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46136
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
46137
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
46138
+
46139
+
46140
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46141
+ Processing by Contour::SessionsController#create as HTML
46142
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
46143
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
46144
+  (0.1ms) SAVEPOINT active_record_1
46145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46146
+ Completed 401 Unauthorized in 7ms
46147
+
46148
+
46149
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46150
+ Processing by Contour::SessionsController#new as HTML
46151
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
46152
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (29.9ms)
46153
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.0ms)
46154
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.6ms)
46155
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.7ms)
46156
+ Completed 200 OK in 63ms (Views: 62.5ms | ActiveRecord: 0.0ms)
46157
+  (0.8ms) rollback transaction
46158
+  (0.1ms) begin transaction
46159
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46160
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46161
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46162
+
46163
+
46164
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46165
+ Processing by WelcomeController#logged_in_page as HTML
46166
+ Completed 401 Unauthorized in 0ms
46167
+  (0.1ms) SAVEPOINT active_record_1
46168
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
46169
+ Binary data inserted for `string` type on column `encrypted_password`
46170
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:31:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$N2JtWevvgI/xfVhlIxM0Ru2aGTAXjy4zrfT77KSnvGt3Rhm/9.SGe"], ["first_name", "FirstName"], ["last_name", "LastName"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:31:34 UTC +00:00]]
46171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46172
+  (0.0ms) SAVEPOINT active_record_1
46173
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46175
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
46176
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
46177
+
46178
+
46179
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46180
+ Processing by Contour::SessionsController#create as HTML
46181
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
46182
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
46183
+  (0.0ms) SAVEPOINT active_record_1
46184
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-10 18:31:34.202552', "current_sign_in_at" = '2012-09-10 18:31:34.202552', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-10 18:31:34.203113' WHERE "users"."id" = 999914116
46185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46186
+ Redirected to http://www.example.com/logged_in_page
46187
+ Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
46188
+
46189
+
46190
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46191
+ Processing by WelcomeController#logged_in_page as HTML
46192
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
46193
+ Completed 200 OK in 23ms (Views: 21.6ms | ActiveRecord: 0.1ms)
46194
+  (0.9ms) rollback transaction
46195
+  (0.1ms) begin transaction
46196
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46197
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46198
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46199
+
46200
+
46201
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46202
+ Processing by WelcomeController#logged_in_page as HTML
46203
+ Completed 401 Unauthorized in 0ms
46204
+  (0.1ms) SAVEPOINT active_record_1
46205
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
46206
+ Binary data inserted for `string` type on column `encrypted_password`
46207
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:31:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$aHdyDHWDVzsBMDkQuxVdG.nryVS9Q8PFjLD9B.Q7oQMMgtN4bFcDW"], ["first_name", "MyString"], ["last_name", "MyString"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:31:34 UTC +00:00]]
46208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46209
+  (0.0ms) SAVEPOINT active_record_1
46210
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46212
+ SQL (0.2ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
46213
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
46214
+
46215
+
46216
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46217
+ Processing by Contour::SessionsController#create as HTML
46218
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
46219
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
46220
+  (0.0ms) SAVEPOINT active_record_1
46221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46222
+ Completed 401 Unauthorized in 4ms
46223
+
46224
+
46225
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46226
+ Processing by Contour::SessionsController#new as HTML
46227
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
46228
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.3ms)
46229
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
46230
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.9ms)
46231
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.2ms)
46232
+ Completed 200 OK in 12ms (Views: 11.5ms | ActiveRecord: 0.0ms)
46233
+  (0.7ms) rollback transaction
46234
+  (0.1ms) begin transaction
46235
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46236
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46237
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46238
+
46239
+
46240
+ Started GET "/" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46241
+ Processing by WelcomeController#index as HTML
46242
+ Completed 401 Unauthorized in 0ms
46243
+  (0.1ms) rollback transaction
46244
+  (0.0ms) begin transaction
46245
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46246
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46247
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46248
+
46249
+
46250
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46251
+ Processing by WelcomeController#logged_in_page as JSON
46252
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46253
+  (0.1ms) SAVEPOINT active_record_1
46254
+  (0.3ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-10 18:31:34.381771', "current_sign_in_at" = '2012-09-10 18:31:34.381771', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-10 18:31:34.382469' WHERE "users"."id" = 201799169
46255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46256
+ Completed 200 OK in 81ms (Views: 0.2ms | ActiveRecord: 0.5ms)
46257
+  (0.6ms) rollback transaction
46258
+  (0.1ms) begin transaction
46259
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46260
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46261
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46262
+
46263
+
46264
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46265
+ Processing by WelcomeController#logged_in_page as JSON
46266
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46267
+ Completed 401 Unauthorized in 79ms
46268
+  (0.1ms) rollback transaction
46269
+  (0.0ms) begin transaction
46270
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46271
+  (0.1ms) rollback transaction
46272
+  (0.0ms) begin transaction
46273
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46274
+  (0.0ms) rollback transaction
46275
+ Connecting to database specified by database.yml
46276
+  (0.1ms) begin transaction
46277
+ Fixture Delete (0.5ms) DELETE FROM "authentications"
46278
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 949717663, 201799169)
46279
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 876923740, 201799169)
46280
+ 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', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 864673665, 201799169)
46281
+ Fixture Delete (0.2ms) DELETE FROM "users"
46282
+ 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', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 201799169)
46283
+ 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', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 999914115)
46284
+ 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', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 725306934)
46285
+ 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', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 349534908)
46286
+  (1.1ms) commit transaction
46287
+  (0.1ms) begin transaction
46288
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
46289
+  (0.1ms) rollback transaction
46290
+  (0.1ms) begin transaction
46291
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46292
+  (0.1ms) rollback transaction
46293
+  (0.1ms) begin transaction
46294
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46295
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46296
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
46297
+ Processing by Contour::AuthenticationsController#create as HTML
46298
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-09-10 18:46:37 UTC", "updated_at"=>"2012-09-10 18:46:37 UTC"}}
46299
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
46300
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46301
+ Logged in user found, creating associated authentication.
46302
+  (0.1ms) SAVEPOINT active_record_1
46303
+ SQL (38.7ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:46:37 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Mon, 10 Sep 2012 18:46:37 UTC +00:00], ["user_id", 201799169]]
46304
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46305
+ Redirected to http://test.host/authentications
46306
+ Completed 302 Found in 81ms (ActiveRecord: 39.2ms)
46307
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
46308
+  (33.7ms) rollback transaction
46309
+  (0.1ms) begin transaction
46310
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46311
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46312
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
46313
+ Processing by Contour::AuthenticationsController#destroy as HTML
46314
+ Parameters: {"id"=>"949717663"}
46315
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46316
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
46317
+  (0.0ms) SAVEPOINT active_record_1
46318
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
46319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46320
+ Redirected to http://test.host/authentications
46321
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
46322
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
46323
+  (3.3ms) rollback transaction
46324
+  (0.1ms) begin transaction
46325
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46326
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46327
+ Processing by Contour::AuthenticationsController#index as HTML
46328
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46329
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
46330
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
46331
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (2.1ms)
46332
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
46333
+ Completed 200 OK in 145ms (Views: 142.8ms | ActiveRecord: 0.4ms)
46334
+  (0.1ms) rollback transaction
46335
+  (0.1ms) begin transaction
46336
+ Processing by Contour::PasswordsController#create as HTML
46337
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
46338
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46339
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'GgquaUa2pL6WvAWGCas3' LIMIT 1
46340
+  (0.1ms) SAVEPOINT active_record_1
46341
+  (0.4ms) UPDATE "users" SET "reset_password_token" = 'GgquaUa2pL6WvAWGCas3', "reset_password_sent_at" = '2012-09-10 18:46:38.047598', "updated_at" = '2012-09-10 18:46:38.048660' WHERE "users"."id" = 201799169
46342
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46343
+
46344
+ Sent mail to valid@example.com (70ms)
46345
+ Date: Mon, 10 Sep 2012 14:46:38 -0400
46346
+ From: please-change-me-at-config-initializers-devise@example.com
46347
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
46348
+ To: valid@example.com
46349
+ Message-ID: <504e358e49683_b1013fc9c8835adc1644b@edge2.partners.org.mail>
46350
+ Subject: Reset password instructions
46351
+ Mime-Version: 1.0
46352
+ Content-Type: text/html;
46353
+ charset=UTF-8
46354
+ Content-Transfer-Encoding: 7bit
46355
+
46356
+ <p>Hello valid@example.com!</p>
46357
+
46358
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
46359
+
46360
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=GgquaUa2pL6WvAWGCas3">Change my password</a></p>
46361
+
46362
+ <p>If you didn't request this, please ignore this email.</p>
46363
+ <p>Your password won't change until you access the link above and create a new one.</p>
46364
+
46365
+ Redirected to http://test.host/users/login
46366
+ Completed 302 Found in 392ms (ActiveRecord: 0.0ms)
46367
+  (0.6ms) rollback transaction
46368
+  (0.1ms) begin transaction
46369
+ Processing by Contour::PasswordsController#new as HTML
46370
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.0ms)
46371
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.9ms)
46372
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.4ms)
46373
+ Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.0ms)
46374
+  (0.1ms) rollback transaction
46375
+  (0.1ms) begin transaction
46376
+  (0.0ms) rollback transaction
46377
+  (0.0ms) begin transaction
46378
+  (0.0ms) rollback transaction
46379
+  (0.1ms) begin transaction
46380
+  (0.0ms) rollback transaction
46381
+  (0.1ms) begin transaction
46382
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46383
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46384
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46385
+
46386
+
46387
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46388
+ Processing by WelcomeController#logged_in_page as HTML
46389
+ Completed 401 Unauthorized in 1ms
46390
+  (0.1ms) SAVEPOINT active_record_1
46391
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
46392
+ Binary data inserted for `string` type on column `encrypted_password`
46393
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:46:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$k1YnZJhyITnicXIimOa.5eSTSF/Dcd3iqVhTLBll0Sf2ydEdnT/sa"], ["first_name", "Deleted"], ["last_name", "User"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:46:38 UTC +00:00]]
46394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46395
+  (0.0ms) SAVEPOINT active_record_1
46396
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46398
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
46399
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
46400
+
46401
+
46402
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46403
+ Processing by Contour::SessionsController#create as HTML
46404
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
46405
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
46406
+  (0.1ms) SAVEPOINT active_record_1
46407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46408
+ Completed 401 Unauthorized in 8ms
46409
+
46410
+
46411
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46412
+ Processing by Contour::SessionsController#new as HTML
46413
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
46414
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (2.2ms)
46415
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.7ms)
46416
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
46417
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.4ms)
46418
+ Completed 200 OK in 60ms (Views: 58.6ms | ActiveRecord: 0.0ms)
46419
+  (0.6ms) rollback transaction
46420
+  (0.1ms) begin transaction
46421
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46422
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46423
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46424
+
46425
+
46426
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46427
+ Processing by WelcomeController#logged_in_page as HTML
46428
+ Completed 401 Unauthorized in 0ms
46429
+  (0.1ms) SAVEPOINT active_record_1
46430
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
46431
+ Binary data inserted for `string` type on column `encrypted_password`
46432
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:46:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$G57Zblb/A9U4WCQuI5f6fuqYuw0X/SWOzYH8jTfuIjKYCq7cyciD6"], ["first_name", "FirstName"], ["last_name", "LastName"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:46:38 UTC +00:00]]
46433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46434
+  (0.0ms) SAVEPOINT active_record_1
46435
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46437
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
46438
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
46439
+
46440
+
46441
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46442
+ Processing by Contour::SessionsController#create as HTML
46443
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
46444
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
46445
+  (0.1ms) SAVEPOINT active_record_1
46446
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-10 18:46:38.667006', "current_sign_in_at" = '2012-09-10 18:46:38.667006', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-10 18:46:38.667723' WHERE "users"."id" = 999914116
46447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46448
+ Redirected to http://www.example.com/logged_in_page
46449
+ Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
46450
+
46451
+
46452
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46453
+ Processing by WelcomeController#logged_in_page as HTML
46454
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
46455
+ Completed 200 OK in 40ms (Views: 38.1ms | ActiveRecord: 0.2ms)
46456
+  (20.6ms) rollback transaction
46457
+  (0.1ms) begin transaction
46458
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46459
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46460
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46461
+
46462
+
46463
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46464
+ Processing by WelcomeController#logged_in_page as HTML
46465
+ Completed 401 Unauthorized in 0ms
46466
+  (0.1ms) SAVEPOINT active_record_1
46467
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
46468
+ Binary data inserted for `string` type on column `encrypted_password`
46469
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:46:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$0rHzFelYVGcrF5Wc4DrMtO9x5pwcDR7xUJkVm77cUX2buEj/QyXs2"], ["first_name", "MyString"], ["last_name", "MyString"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:46:38 UTC +00:00]]
46470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46471
+  (0.0ms) SAVEPOINT active_record_1
46472
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46474
+ SQL (7.6ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
46475
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
46476
+
46477
+
46478
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46479
+ Processing by Contour::SessionsController#create as HTML
46480
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
46481
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
46482
+  (0.1ms) SAVEPOINT active_record_1
46483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46484
+ Completed 401 Unauthorized in 5ms
46485
+
46486
+
46487
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46488
+ Processing by Contour::SessionsController#new as HTML
46489
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.6ms)
46490
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (2.0ms)
46491
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
46492
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
46493
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.3ms)
46494
+ Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.0ms)
46495
+  (19.0ms) rollback transaction
46496
+  (0.1ms) begin transaction
46497
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46498
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46499
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46500
+
46501
+
46502
+ Started GET "/" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46503
+ Processing by WelcomeController#index as HTML
46504
+ Completed 401 Unauthorized in 1ms
46505
+  (0.1ms) rollback transaction
46506
+  (0.1ms) begin transaction
46507
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46508
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46509
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46510
+
46511
+
46512
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46513
+ Processing by WelcomeController#logged_in_page as JSON
46514
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46515
+  (0.1ms) SAVEPOINT active_record_1
46516
+  (0.3ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-10 18:46:38.923351', "current_sign_in_at" = '2012-09-10 18:46:38.923351', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-10 18:46:38.924080' WHERE "users"."id" = 201799169
46517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46518
+ Completed 200 OK in 87ms (Views: 0.2ms | ActiveRecord: 0.6ms)
46519
+  (137.2ms) rollback transaction
46520
+  (0.1ms) begin transaction
46521
+ User Load (7.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46522
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46523
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46524
+
46525
+
46526
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-10 14:46:39 -0400
46527
+ Processing by WelcomeController#logged_in_page as JSON
46528
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46529
+ Completed 401 Unauthorized in 79ms
46530
+  (0.1ms) rollback transaction
46531
+  (0.1ms) begin transaction
46532
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46533
+  (0.1ms) rollback transaction
46534
+  (0.0ms) begin transaction
46535
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46536
+  (0.0ms) rollback transaction
46537
+ Connecting to database specified by database.yml
46538
+  (0.1ms) begin transaction
46539
+ Fixture Delete (8.1ms) DELETE FROM "authentications"
46540
+ Fixture Insert (0.5ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 949717663, 201799169)
46541
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 876923740, 201799169)
46542
+ Fixture Insert (0.0ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 864673665, 201799169)
46543
+ Fixture Delete (1.4ms) DELETE FROM "users"
46544
+ 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', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 201799169)
46545
+ 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', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 999914115)
46546
+ 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', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 725306934)
46547
+ 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', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 349534908)
46548
+  (2.1ms) commit transaction
46549
+  (0.0ms) begin transaction
46550
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
46551
+  (0.1ms) rollback transaction
46552
+  (0.1ms) begin transaction
46553
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46554
+  (0.0ms) rollback transaction
46555
+  (0.1ms) begin transaction
46556
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46557
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46558
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
46559
+ Processing by Contour::AuthenticationsController#create as HTML
46560
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-09-10 18:52:14 UTC", "updated_at"=>"2012-09-10 18:52:14 UTC"}}
46561
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
46562
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46563
+ Logged in user found, creating associated authentication.
46564
+  (0.1ms) SAVEPOINT active_record_1
46565
+ SQL (0.8ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:52:14 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Mon, 10 Sep 2012 18:52:14 UTC +00:00], ["user_id", 201799169]]
46566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46567
+ Redirected to http://test.host/authentications
46568
+ Completed 302 Found in 52ms (ActiveRecord: 1.1ms)
46569
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
46570
+  (0.5ms) rollback transaction
46571
+  (0.1ms) begin transaction
46572
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46573
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46574
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
46575
+ Processing by Contour::AuthenticationsController#destroy as HTML
46576
+ Parameters: {"id"=>"949717663"}
46577
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46578
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
46579
+  (0.1ms) SAVEPOINT active_record_1
46580
+ SQL (0.9ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
46581
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46582
+ Redirected to http://test.host/authentications
46583
+ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)
46584
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
46585
+  (0.4ms) rollback transaction
46586
+  (0.1ms) begin transaction
46587
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46588
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46589
+ Processing by Contour::AuthenticationsController#index as HTML
46590
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46591
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
46592
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
46593
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (4.0ms)
46594
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.0ms)
46595
+ Completed 200 OK in 147ms (Views: 144.8ms | ActiveRecord: 0.4ms)
46596
+  (0.1ms) rollback transaction
46597
+  (0.1ms) begin transaction
46598
+ Processing by Contour::PasswordsController#create as HTML
46599
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
46600
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46601
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'rLcHTFNPKGXUu5Qq3CRx' LIMIT 1
46602
+  (0.1ms) SAVEPOINT active_record_1
46603
+  (0.4ms) UPDATE "users" SET "reset_password_token" = 'rLcHTFNPKGXUu5Qq3CRx', "reset_password_sent_at" = '2012-09-10 18:52:15.147756', "updated_at" = '2012-09-10 18:52:15.149159' WHERE "users"."id" = 201799169
46604
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46605
+
46606
+ Sent mail to valid@example.com (74ms)
46607
+ Date: Mon, 10 Sep 2012 14:52:15 -0400
46608
+ From: please-change-me-at-config-initializers-devise@example.com
46609
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
46610
+ To: valid@example.com
46611
+ Message-ID: <504e36df6bdf5_b1aa3ffc4d835ad4887c0@edge2.partners.org.mail>
46612
+ Subject: Reset password instructions
46613
+ Mime-Version: 1.0
46614
+ Content-Type: text/html;
46615
+ charset=UTF-8
46616
+ Content-Transfer-Encoding: 7bit
46617
+
46618
+ <p>Hello valid@example.com!</p>
46619
+
46620
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
46621
+
46622
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=rLcHTFNPKGXUu5Qq3CRx">Change my password</a></p>
46623
+
46624
+ <p>If you didn't request this, please ignore this email.</p>
46625
+ <p>Your password won't change until you access the link above and create a new one.</p>
46626
+
46627
+ Redirected to http://test.host/users/login
46628
+ Completed 302 Found in 416ms (ActiveRecord: 0.0ms)
46629
+  (0.6ms) rollback transaction
46630
+  (0.1ms) begin transaction
46631
+ Processing by Contour::PasswordsController#new as HTML
46632
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.9ms)
46633
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.2ms)
46634
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.3ms)
46635
+ Completed 200 OK in 39ms (Views: 38.0ms | ActiveRecord: 0.0ms)
46636
+  (0.1ms) rollback transaction
46637
+  (0.1ms) begin transaction
46638
+  (0.0ms) rollback transaction
46639
+  (0.0ms) begin transaction
46640
+  (0.0ms) rollback transaction
46641
+  (0.1ms) begin transaction
46642
+  (0.0ms) rollback transaction
46643
+  (0.1ms) begin transaction
46644
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46645
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46646
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46647
+
46648
+
46649
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46650
+ Processing by WelcomeController#logged_in_page as HTML
46651
+ Completed 401 Unauthorized in 1ms
46652
+  (0.1ms) SAVEPOINT active_record_1
46653
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
46654
+ Binary data inserted for `string` type on column `encrypted_password`
46655
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:52:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$zaTDlrcmvornfxQwcHcdheqy8WCGuMIlOoLiR6jRroF9ZSL.nAdpe"], ["first_name", "Deleted"], ["last_name", "User"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:52:15 UTC +00:00]]
46656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46657
+  (0.0ms) SAVEPOINT active_record_1
46658
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46660
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
46661
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
46662
+
46663
+
46664
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46665
+ Processing by Contour::SessionsController#create as HTML
46666
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
46667
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
46668
+  (0.1ms) SAVEPOINT active_record_1
46669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46670
+ Completed 401 Unauthorized in 33ms
46671
+
46672
+
46673
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46674
+ Processing by Contour::SessionsController#new as HTML
46675
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.8ms)
46676
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.9ms)
46677
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.6ms)
46678
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.2ms)
46679
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.7ms)
46680
+ Completed 200 OK in 47ms (Views: 45.9ms | ActiveRecord: 0.0ms)
46681
+  (0.8ms) rollback transaction
46682
+  (0.1ms) begin transaction
46683
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46684
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46685
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46686
+
46687
+
46688
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46689
+ Processing by WelcomeController#logged_in_page as HTML
46690
+ Completed 401 Unauthorized in 0ms
46691
+  (0.1ms) SAVEPOINT active_record_1
46692
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
46693
+ Binary data inserted for `string` type on column `encrypted_password`
46694
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:52:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$Rx5HH42oS1OQVe38cBwoSuHyZUnquuWvMlyWDoIIzXJjXTw3SarHC"], ["first_name", "FirstName"], ["last_name", "LastName"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:52:15 UTC +00:00]]
46695
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46696
+  (0.0ms) SAVEPOINT active_record_1
46697
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46699
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
46700
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
46701
+
46702
+
46703
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46704
+ Processing by Contour::SessionsController#create as HTML
46705
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
46706
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
46707
+  (0.1ms) SAVEPOINT active_record_1
46708
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-10 18:52:15.822608', "current_sign_in_at" = '2012-09-10 18:52:15.822608', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-10 18:52:15.823390' WHERE "users"."id" = 999914116
46709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46710
+ Redirected to http://www.example.com/logged_in_page
46711
+ Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
46712
+
46713
+
46714
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46715
+ Processing by WelcomeController#logged_in_page as HTML
46716
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
46717
+ Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.1ms)
46718
+  (0.8ms) rollback transaction
46719
+  (0.1ms) begin transaction
46720
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46721
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46722
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46723
+
46724
+
46725
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46726
+ Processing by WelcomeController#logged_in_page as HTML
46727
+ Completed 401 Unauthorized in 0ms
46728
+  (0.1ms) SAVEPOINT active_record_1
46729
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
46730
+ Binary data inserted for `string` type on column `encrypted_password`
46731
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:52:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$WBcH8fjU.Ny8O/.8wYS.y.xEQxTDtDU5CAh5zxR4Gc8YyOLZfoBZK"], ["first_name", "MyString"], ["last_name", "MyString"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:52:15 UTC +00:00]]
46732
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46733
+  (0.0ms) SAVEPOINT active_record_1
46734
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46736
+ SQL (0.4ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
46737
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
46738
+
46739
+
46740
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46741
+ Processing by Contour::SessionsController#create as HTML
46742
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
46743
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
46744
+  (0.0ms) SAVEPOINT active_record_1
46745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46746
+ Completed 401 Unauthorized in 4ms
46747
+
46748
+
46749
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46750
+ Processing by Contour::SessionsController#new as HTML
46751
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
46752
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.4ms)
46753
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
46754
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
46755
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.7ms)
46756
+ Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms)
46757
+  (0.8ms) rollback transaction
46758
+  (0.1ms) begin transaction
46759
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46760
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46761
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46762
+
46763
+
46764
+ Started GET "/" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46765
+ Processing by WelcomeController#index as HTML
46766
+ Completed 401 Unauthorized in 1ms
46767
+  (0.1ms) rollback transaction
46768
+  (0.0ms) begin transaction
46769
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46770
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46771
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46772
+
46773
+
46774
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46775
+ Processing by WelcomeController#logged_in_page as JSON
46776
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46777
+  (0.1ms) SAVEPOINT active_record_1
46778
+  (0.5ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-10 18:52:15.998592', "current_sign_in_at" = '2012-09-10 18:52:15.998592', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-10 18:52:15.999303' WHERE "users"."id" = 201799169
46779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46780
+ Completed 200 OK in 87ms (Views: 0.3ms | ActiveRecord: 0.7ms)
46781
+  (0.7ms) rollback transaction
46782
+  (0.0ms) begin transaction
46783
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46784
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46785
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46786
+
46787
+
46788
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-10 14:52:16 -0400
46789
+ Processing by WelcomeController#logged_in_page as JSON
46790
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46791
+ Completed 401 Unauthorized in 82ms
46792
+  (0.1ms) rollback transaction
46793
+  (0.1ms) begin transaction
46794
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46795
+  (0.1ms) rollback transaction
46796
+  (0.1ms) begin transaction
46797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46798
+  (0.0ms) rollback transaction