contour 1.0.0.beta12 → 1.0.0.rc

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. data/CHANGELOG.rdoc +4 -0
  2. data/README.rdoc +83 -14
  3. data/app/assets/images/contour/ajax-loader.gif +0 -0
  4. data/app/assets/javascripts/contour/global.js.coffee +23 -2
  5. data/app/helpers/contour_helper.rb +18 -1
  6. data/app/views/contour/layouts/_per_page.html.erb +7 -0
  7. data/config/initializers/devise.rb +0 -29
  8. data/contour.gemspec +5 -5
  9. data/lib/contour/version.rb +1 -1
  10. data/lib/generators/contour/install/install_generator.rb +30 -0
  11. data/lib/generators/{templates → contour/install/templates}/README +9 -13
  12. data/lib/generators/{templates → contour/install/templates}/contour.rb +0 -0
  13. data/lib/generators/{templates → contour/install/templates}/omniauth.rb +0 -0
  14. data/lib/generators/contour/scaffold/USAGE +15 -0
  15. data/lib/generators/contour/scaffold/scaffold_generator.rb +58 -0
  16. data/lib/generators/contour/scaffold/templates/_form.html.erb +37 -0
  17. data/lib/generators/contour/scaffold/templates/_paginate.html.erb +30 -0
  18. data/lib/generators/contour/scaffold/templates/controller.rb +107 -0
  19. data/lib/generators/contour/scaffold/templates/edit.html.erb +3 -0
  20. data/lib/generators/contour/scaffold/templates/index.html.erb +21 -0
  21. data/lib/generators/contour/scaffold/templates/index.js.erb +1 -0
  22. data/lib/generators/contour/scaffold/templates/new.html.erb +3 -0
  23. data/lib/generators/contour/scaffold/templates/show.html.erb +23 -0
  24. data/test/dummy/config/initializers/devise.rb +14 -13
  25. data/test/dummy/db/test.sqlite3 +0 -0
  26. data/test/dummy/log/test.log +1574 -0
  27. metadata +53 -42
  28. data/lib/generators/contour/install_generator.rb +0 -46
  29. data/lib/generators/templates/devise.rb +0 -142
@@ -0,0 +1,37 @@
1
+ <div class="page-header">
2
+ <h1><%%= @title %></h1>
3
+ </div>
4
+
5
+ <%%= form_for @<%= resource_name %>, html: { class: 'form-horizontal' } do |f| %>
6
+ <%% if @<%= resource_name %>.errors.any? %>
7
+ <div id="error_explanation">
8
+ <h2><%%= pluralize(@<%= resource_name %>.errors.count, "error") %> prohibited this <%= resource_name %> from being saved:</h2>
9
+
10
+ <ul>
11
+ <%% @<%= resource_name %>.errors.full_messages.each do |msg| %>
12
+ <li><%%= msg %></li>
13
+ <%% end %>
14
+ </ul>
15
+ </div>
16
+ <%% end %>
17
+
18
+ <%- columns.each do |column| -%>
19
+ <div class="control-group">
20
+ <%%= f.label :<%= column.name %>, nil, class: 'control-label' %>
21
+ <div class="controls">
22
+ <%- if column.name.split('_').last == 'id' -%>
23
+ <%%= f.select :<%= column.name %>, [['---', nil]] + <%= column.name.split('_')[0..-2].join('_').camelize %>.current.collect{|<%= column.name.first %>| [<%= column.name.first %>.name, <%= column.name.first %>.id]} %>
24
+ <%- elsif column.field_type == :date_select -%>
25
+ <%%= f.text_field :<%= column.name %>, class: 'datepicker', value: @<%= resource_name %>.<%= column.name %> ? @<%= resource_name %>.<%= column.name %>.strftime('%m/%d/%Y') : '' %>
26
+ <%- else -%>
27
+ <%%= f.<%= column.field_type %> :<%= column.name %><%= ", rows: 7, style: 'width:95%'" if column.field_type == :text_area %> %>
28
+ <%- end -%>
29
+ </div>
30
+ </div>
31
+
32
+ <%- end -%>
33
+ <div class="form-actions">
34
+ <%%= f.submit nil, class: 'btn btn-primary' %>
35
+ <%%= cancel %>
36
+ </div>
37
+ <%% end %>
@@ -0,0 +1,30 @@
1
+ <%%= render partial: 'contour/layouts/per_page', locals: { type: '<%= resource_name_plural %>', per_page: 20 } %>
2
+
3
+ <table class="table table-striped table-bordered" style="width:100%">
4
+ <thead>
5
+ <tr>
6
+ <%- columns.each do |column| -%>
7
+ <th style="white-space:nowrap"><%%== sort_field_helper(@order, '<%= resource_name_plural %>.<%= column.name %>', '<%= column.name.titleize %>', '<%= resource_name_plural %>_search') %></th>
8
+ <%- end -%>
9
+ <th>Actions</th>
10
+ </tr>
11
+ </thead>
12
+
13
+ <%% @<%= resource_name_plural %>.each do |<%= resource_name %>| %>
14
+ <tr>
15
+ <%- columns.each do |column| -%>
16
+ <%- if column.name.split('_').last == 'id' -%>
17
+ <td><%%= link_to <%= resource_name %>.<%= column.name.split('_')[0..-2].join('_') %>.name, <%= resource_name %>.<%= column.name.split('_')[0..-2].join('_') %> if <%= resource_name %>.<%= column.name.split('_')[0..-2].join('_') %> %></td>
18
+ <%- else -%>
19
+ <td><%%= <%= resource_name %>.<%= column.name %> %></td>
20
+ <%- end -%>
21
+ <%- end -%>
22
+ <td>
23
+ <%%= link_to 'Edit', edit_<%= resource_name %>_path(<%= resource_name %>), class: 'btn btn-mini' %>
24
+ <%%= link_to 'Delete', <%= resource_name %>, confirm: "Are you sure you want to delete <%= resource_title %> #{<%= resource_name %>.name}?", method: :delete, class: 'btn btn-mini btn-danger' %>
25
+ </td>
26
+ </tr>
27
+ <%% end %>
28
+ </table>
29
+
30
+ <center><%%= paginate @<%= resource_name_plural %> %></center>
@@ -0,0 +1,107 @@
1
+ class <%= resource_class_name_plural %>Controller < ApplicationController
2
+ before_filter :authenticate_user!
3
+
4
+ # GET /<%= resource_name_plural %>
5
+ # GET /<%= resource_name_plural %>.json
6
+ def index
7
+ <%= resource_name %>_scope = <%= resource_class_name %>.current
8
+ @order = <%= resource_class_name %>.column_names.collect{|column_name| "<%= resource_name_plural %>.#{column_name}"}.include?(params[:order].to_s.split(' ').first) ? params[:order] : "<%= resource_name_plural %>.name"
9
+ <%= resource_name %>_scope = <%= resource_name %>_scope.order(@order)
10
+ @<%= resource_name_plural %> = <%= resource_name %>_scope.page(params[:page]).per( 20 )
11
+
12
+ respond_to do |format|
13
+ format.html # index.html.erb
14
+ format.js
15
+ format.json { render json: @<%= resource_name_plural %> }
16
+ end
17
+ end
18
+
19
+ # GET /<%= resource_name_plural %>/1
20
+ # GET /<%= resource_name_plural %>/1.json
21
+ def show
22
+ @<%= resource_name %> = <%= resource_class_name %>.current.find(params[:id])
23
+
24
+ respond_to do |format|
25
+ format.html # show.html.erb
26
+ format.json { render json: @<%= resource_name %> }
27
+ end
28
+ end
29
+
30
+ # GET /<%= resource_name_plural %>/new
31
+ # GET /<%= resource_name_plural %>/new.json
32
+ def new
33
+ @<%= resource_name %> = <%= resource_class_name %>.new
34
+
35
+ respond_to do |format|
36
+ format.html # new.html.erb
37
+ format.json { render json: @<%= resource_name %> }
38
+ end
39
+ end
40
+
41
+ # GET /<%= resource_name_plural %>/1/edit
42
+ def edit
43
+ @<%= resource_name %> = <%= resource_class_name %>.current.find(params[:id])
44
+ end
45
+
46
+ # POST /<%= resource_name_plural %>
47
+ # POST /<%= resource_name_plural %>.json
48
+ def create
49
+ @<%= resource_name %> = <%= resource_class_name %>.new(post_params)
50
+
51
+ respond_to do |format|
52
+ if @<%= resource_name %>.save
53
+ format.html { redirect_to @<%= resource_name %>, notice: '<%= resource_class_name %> was successfully created.' }
54
+ format.json { render json: @<%= resource_name %>, status: :created, location: @<%= resource_name %> }
55
+ else
56
+ format.html { render action: "new" }
57
+ format.json { render json: @<%= resource_name %>.errors, status: :unprocessable_entity }
58
+ end
59
+ end
60
+ end
61
+
62
+ # PUT /<%= resource_name_plural %>/1
63
+ # PUT /<%= resource_name_plural %>/1.json
64
+ def update
65
+ @<%= resource_name %> = <%= resource_class_name %>.current.find(params[:id])
66
+
67
+ respond_to do |format|
68
+ if @<%= resource_name %>.update_attributes(post_params)
69
+ format.html { redirect_to @<%= resource_name %>, notice: '<%= resource_class_name %> was successfully updated.' }
70
+ format.json { head :no_content }
71
+ else
72
+ format.html { render action: "edit" }
73
+ format.json { render json: @<%= resource_name %>.errors, status: :unprocessable_entity }
74
+ end
75
+ end
76
+ end
77
+
78
+ # DELETE /<%= resource_name_plural %>/1
79
+ # DELETE /<%= resource_name_plural %>/1.json
80
+ def destroy
81
+ @<%= resource_name %> = <%= resource_class_name %>.current.find(params[:id])
82
+ @<%= resource_name %>.destroy
83
+
84
+ respond_to do |format|
85
+ format.html { redirect_to <%= resource_name_plural %>_url }
86
+ format.json { head :no_content }
87
+ end
88
+ end
89
+
90
+ private
91
+
92
+ def parse_date(date_string)
93
+ date_string.to_s.split('/').last.size == 2 ? Date.strptime(date_string, "%m/%d/%y") : Date.strptime(date_string, "%m/%d/%Y") rescue ""
94
+ end
95
+
96
+ def post_params
97
+
98
+ [<%= date_columns.collect{|c| ":#{c.name}"}.join(', ') %>].each do |date|
99
+ params[:<%= resource_name %>][date] = parse_date(params[:<%= resource_name %>][date])
100
+ end
101
+
102
+ params[:<%= resource_name %>] ||= {}
103
+ params[:<%= resource_name %>].slice(
104
+ <%= columns.collect{|c| ":#{c.name}"}.join(', ') %>
105
+ )
106
+ end
107
+ end
@@ -0,0 +1,3 @@
1
+ <%% @title = "Edit <%= resource_title %>: #{@<%= resource_name %>.name}" %>
2
+
3
+ <%%= render 'form' %>
@@ -0,0 +1,21 @@
1
+ <%% @title = '<%= resource_title_plural %>' %>
2
+ <div class="page-header">
3
+ <h1>
4
+ <%%= @title %>
5
+ <%%= link_to "Create <%= resource_title %>", new_<%= resource_name %>_path, class: 'btn btn-mini btn-primary' %>
6
+ </h1>
7
+ </div>
8
+
9
+ <%%= form_tag <%= resource_name_plural %>_path, method: :get, remote: true, id: "<%= resource_name_plural %>_search", class: 'form-search' do %>
10
+ <%%= hidden_field_tag :order %>
11
+ <%%= text_field_tag 'search', params[:search], class: 'search-query' %>
12
+ <%%= submit_tag 'Search', class: 'btn btn-primary' %>
13
+ <%% end %>
14
+
15
+ <div id="<%= resource_name_plural %>"><center><%%= image_tag "contour/ajax-loader.gif" %></center></div>
16
+
17
+ <%%= javascript_tag do %>
18
+ $(function(){
19
+ $.get($("#<%= resource_name_plural %>_search").attr("action"), $("#<%= resource_name_plural %>_search").serialize(), null, "script");
20
+ });
21
+ <%% end %>
@@ -0,0 +1 @@
1
+ $("#<%= resource_name_plural %>").html("<%%= escape_javascript(render("<%= resource_name_plural %>")) %>");
@@ -0,0 +1,3 @@
1
+ <%% @title = "New <%= resource_title %>" %>
2
+
3
+ <%%= render 'form' %>
@@ -0,0 +1,23 @@
1
+ <%% @title = "<%= resource_title %>: #{@<%= resource_name %>.name}" %>
2
+ <div class="page-header">
3
+ <h1>
4
+ <%%= @title %>
5
+ <%%= link_to "Edit <%= resource_title %>", edit_<%= resource_name %>_path(@<%= resource_name %>), class: 'btn btn-mini' %>
6
+ <%%= link_to "Delete <%= resource_title %>", @<%= resource_name %>, confirm: "Are you sure you want to delete <%= resource_title %> #{@<%= resource_name %>.name}?", method: :delete, class: 'btn btn-mini btn-danger' %>
7
+ <%%= link_to "View <%= resource_title_plural %>", <%= resource_name_plural %>_path, class: 'btn btn-mini' %>
8
+ </h1>
9
+ </div>
10
+
11
+ <dl class="dl-horizontal">
12
+ <%- columns.each do |column| -%>
13
+ <dt><%= column.name.titleize %></dt>
14
+ <%- if column.name.split('_').last == 'id' -%>
15
+ <dd><%%= link_to @<%= resource_name %>.<%= column.name.split('_')[0..-2].join('_') %>.name, @<%= resource_name %>.<%= column.name.split('_')[0..-2].join('_') %> if @<%= resource_name %>.<%= column.name.split('_')[0..-2].join('_') %> %></dd>
16
+ <%- elsif column.field_type == :text_area -%>
17
+ <dd><%%= simple_format @<%= resource_name %>.<%= column.name %> %></dd>
18
+ <%- else -%>
19
+ <dd><%%= @<%= resource_name %>.<%= column.name %> %></dd>
20
+ <%- end -%>
21
+
22
+ <%- end -%>
23
+ </dl>
@@ -9,9 +9,6 @@ Devise.setup do |config|
9
9
  # Configure the class responsible to send e-mails.
10
10
  # config.mailer = "Devise::Mailer"
11
11
 
12
- # Automatically apply schema changes in tableless databases
13
- config.apply_schema = false
14
-
15
12
  # ==> ORM configuration
16
13
  # Load and configure the ORM. Supports :active_record (default) and
17
14
  # :mongoid (bson_ext recommended) by default. Other ORMs may be
@@ -46,9 +43,15 @@ Devise.setup do |config|
46
43
  config.strip_whitespace_keys = [ :email ]
47
44
 
48
45
  # Tell if authentication through request.params is enabled. True by default.
46
+ # It can be set to an array that will enable params authentication only for the
47
+ # given strategies, for example, `config.params_authenticatable = [:database]` will
48
+ # enable it only for database (email + password) authentication.
49
49
  # config.params_authenticatable = true
50
50
 
51
51
  # Tell if authentication through HTTP Basic Auth is enabled. False by default.
52
+ # It can be set to an array that will enable http authentication only for the
53
+ # given strategies, for example, `config.http_authenticatable = [:token]` will
54
+ # enable it only for token authentication.
52
55
  config.http_authenticatable = true
53
56
 
54
57
  # If http headers should be returned for AJAX requests. True by default.
@@ -64,6 +67,9 @@ Devise.setup do |config|
64
67
 
65
68
  # By default Devise will store the user in session. You can skip storage for
66
69
  # :http_auth and :token_auth by adding those symbols to the array below.
70
+ # Notice that if you are skipping storage for all authentication paths, you
71
+ # may want to disable generating routes to Devise's sessions controller by
72
+ # passing :skip => :sessions to `devise_for` in your config/routes.rb
67
73
  config.skip_session_storage = [:http_auth]
68
74
 
69
75
  # ==> Configuration for :database_authenticatable
@@ -78,7 +84,7 @@ Devise.setup do |config|
78
84
  # Setup a pepper to generate the encrypted password.
79
85
  config.pepper = "d142367154e5beacca404b1a6a4f8bc52c6fdcfa3ccc3cf8eb49f3458a688ee6ac3b9fae488432a3bfca863b8a90008368a9f3a3dfbe5a962e64b6ab8f3a3a1a"
80
86
 
81
- # ==> Configuration for :confirmable
87
+ # ==> Configuration for :confirmable
82
88
  # A period that the user is allowed to access the website even without
83
89
  # confirming his account. For instance, if set to 2.days, the user will be
84
90
  # able to access the website for two days without confirming his account,
@@ -86,7 +92,7 @@ Devise.setup do |config|
86
92
  # the user cannot access the website without confirming his account.
87
93
  # config.allow_unconfirmed_access_for = 2.days
88
94
 
89
- # If true, requires any email changes to be confirmed (exctly the same way as
95
+ # If true, requires any email changes to be confirmed (exactly the same way as
90
96
  # initial account confirmation) to be applied. Requires additional unconfirmed_email
91
97
  # db field (see migrations). Until confirmed new email is stored in
92
98
  # unconfirmed email column, and copied to email column on successful confirmation.
@@ -102,13 +108,9 @@ Devise.setup do |config|
102
108
  # If true, extends the user's remember period when remembered via cookie.
103
109
  # config.extend_remember_period = false
104
110
 
105
- # If true, uses the password salt as remember token. This should be turned
106
- # to false if you are not using database authenticatable.
107
- config.use_salt_as_remember_token = true
108
-
109
111
  # Options to be passed to the created cookie. For instance, you can set
110
112
  # :secure => true in order to force SSL only cookies.
111
- # config.cookie_options = {}
113
+ # config.rememberable_options = {}
112
114
 
113
115
  # ==> Configuration for :validatable
114
116
  # Range for password length. Default is 6..128.
@@ -192,9 +194,8 @@ Devise.setup do |config|
192
194
  # If you have any extra navigational formats, like :iphone or :mobile, you
193
195
  # should add them to the navigational formats lists.
194
196
  #
195
- # The :"*/*" and "*/*" formats below is required to match Internet
196
- # Explorer requests.
197
- # config.navigational_formats = [:"*/*", "*/*", :html]
197
+ # The "*/*" below is required to match Internet Explorer requests.
198
+ # config.navigational_formats = ["*/*", :html]
198
199
 
199
200
  # The default HTTP method used to sign out a resource. Default is :delete.
200
201
  config.sign_out_via = :get
Binary file
@@ -35408,3 +35408,1577 @@ Completed 401 Unauthorized in 86ms
35408
35408
   (0.1ms) begin transaction
35409
35409
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35410
35410
   (0.0ms) rollback transaction
35411
+  (0.1ms) begin transaction
35412
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
35413
+ 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-05-11 13:16:15', '2012-05-11 13:16:15', 949717663, 201799169)
35414
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-05-11 13:16:15', '2012-05-11 13:16:15', 876923740, 201799169)
35415
+ 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-05-11 13:16:15', '2012-05-11 13:16:15', 864673665, 201799169)
35416
+ Fixture Delete (0.1ms) DELETE FROM "users"
35417
+ 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-05-11 13:16:15', '2012-05-11 13:16:15', 201799169)
35418
+ 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-05-11 13:16:15', '2012-05-11 13:16:15', 999914115)
35419
+ 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-05-11 13:16:15', '2012-05-11 13:16:15', 725306934)
35420
+ 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-05-11 13:16:15', '2012-05-11 13:16:15', 349534908)
35421
+  (2.7ms) commit transaction
35422
+  (0.0ms) begin transaction
35423
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
35424
+  (0.1ms) rollback transaction
35425
+  (0.0ms) begin transaction
35426
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
35427
+  (0.0ms) rollback transaction
35428
+  (0.0ms) begin transaction
35429
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35430
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
35431
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
35432
+ Processing by Contour::AuthenticationsController#create as HTML
35433
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-05-11 13:16:15 UTC", "updated_at"=>"2012-05-11 13:16:15 UTC"}}
35434
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
35435
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
35436
+ Logged in user found, creating associated authentication.
35437
+  (0.1ms) SAVEPOINT active_record_1
35438
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 11 May 2012 13:16:15 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Fri, 11 May 2012 13:16:15 UTC +00:00], ["user_id", 201799169]]
35439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35440
+ Redirected to http://test.host/authentications
35441
+ Completed 302 Found in 49ms (ActiveRecord: 0.8ms)
35442
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
35443
+  (0.8ms) rollback transaction
35444
+  (0.0ms) begin transaction
35445
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35446
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
35447
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
35448
+ Processing by Contour::AuthenticationsController#destroy as HTML
35449
+ Parameters: {"id"=>"949717663"}
35450
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
35451
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
35452
+  (0.0ms) SAVEPOINT active_record_1
35453
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
35454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35455
+ Redirected to http://test.host/authentications
35456
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
35457
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
35458
+  (0.9ms) rollback transaction
35459
+  (0.0ms) begin transaction
35460
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35461
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
35462
+ Processing by Contour::AuthenticationsController#index as HTML
35463
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
35464
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
35465
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
35466
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (2.3ms)
35467
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.5ms)
35468
+ Completed 200 OK in 53ms (Views: 50.8ms | ActiveRecord: 0.3ms)
35469
+  (0.1ms) rollback transaction
35470
+  (0.0ms) begin transaction
35471
+ Processing by Contour::PasswordsController#create as HTML
35472
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
35473
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
35474
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'MpNxNWgeDCKpKwoiEyNJ' LIMIT 1
35475
+  (0.0ms) SAVEPOINT active_record_1
35476
+  (0.3ms) UPDATE "users" SET "reset_password_token" = 'MpNxNWgeDCKpKwoiEyNJ', "reset_password_sent_at" = '2012-05-11 13:16:15.860360', "updated_at" = '2012-05-11 13:16:15.861064' WHERE "users"."id" = 201799169
35477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35478
+
35479
+ Sent mail to valid@example.com (14ms)
35480
+ Date: Fri, 11 May 2012 09:16:15 -0400
35481
+ From: please-change-me-at-config-initializers-devise@example.com
35482
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
35483
+ To: valid@example.com
35484
+ Message-ID: <4fad111fe3659_28533fd315034cd84244f@edge.mail>
35485
+ Subject: Reset password instructions
35486
+ Mime-Version: 1.0
35487
+ Content-Type: text/html;
35488
+ charset=UTF-8
35489
+ Content-Transfer-Encoding: 7bit
35490
+
35491
+ <p>Hello valid@example.com!</p>
35492
+
35493
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
35494
+
35495
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=MpNxNWgeDCKpKwoiEyNJ">Change my password</a></p>
35496
+
35497
+ <p>If you didn't request this, please ignore this email.</p>
35498
+ <p>Your password won't change until you access the link above and create a new one.</p>
35499
+
35500
+ Redirected to http://test.host/users/login
35501
+ Completed 302 Found in 90ms (ActiveRecord: 0.0ms)
35502
+  (1.0ms) rollback transaction
35503
+  (0.1ms) begin transaction
35504
+ Processing by Contour::PasswordsController#new as HTML
35505
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.1ms)
35506
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (28.5ms)
35507
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (31.2ms)
35508
+ Completed 200 OK in 44ms (Views: 43.2ms | ActiveRecord: 0.0ms)
35509
+  (0.1ms) rollback transaction
35510
+  (0.0ms) begin transaction
35511
+  (0.0ms) rollback transaction
35512
+  (0.0ms) begin transaction
35513
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35514
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
35515
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
35516
+
35517
+
35518
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:16:16 -0400
35519
+ Processing by WelcomeController#logged_in_page as HTML
35520
+ Completed 401 Unauthorized in 1ms
35521
+  (0.1ms) SAVEPOINT active_record_1
35522
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
35523
+ Binary data inserted for `string` type on column `encrypted_password`
35524
+ 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", Fri, 11 May 2012 13:16:16 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$TnL6srMEv3Z2/nz99o8MbeDso7u2CLTaGNWBb2GdMq181xMKpa.di"], ["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", Fri, 11 May 2012 13:16:16 UTC +00:00]]
35525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35526
+  (0.0ms) SAVEPOINT active_record_1
35527
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
35528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35529
+  (0.0ms) SAVEPOINT active_record_1
35530
+  (0.3ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-11 13:16:16.051859' WHERE "users"."id" = 999914116
35531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35532
+  (0.0ms) SAVEPOINT active_record_1
35533
+  (0.1ms) UPDATE "users" SET "deleted" = 't', "updated_at" = '2012-05-11 13:16:16.053031' WHERE "users"."id" = 999914116
35534
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35535
+
35536
+
35537
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-11 09:16:16 -0400
35538
+ Processing by Contour::SessionsController#create as HTML
35539
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
35540
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
35541
+  (0.1ms) SAVEPOINT active_record_1
35542
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35543
+ Completed 401 Unauthorized in 8ms
35544
+
35545
+
35546
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-11 09:16:16 -0400
35547
+ Processing by Contour::SessionsController#new as HTML
35548
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
35549
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
35550
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
35551
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.0ms)
35552
+ Completed 200 OK in 40ms (Views: 38.8ms | ActiveRecord: 0.0ms)
35553
+  (1.1ms) rollback transaction
35554
+  (0.1ms) begin transaction
35555
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35556
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
35557
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
35558
+
35559
+
35560
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:16:16 -0400
35561
+ Processing by WelcomeController#logged_in_page as HTML
35562
+ Completed 401 Unauthorized in 0ms
35563
+  (0.1ms) SAVEPOINT active_record_1
35564
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
35565
+ Binary data inserted for `string` type on column `encrypted_password`
35566
+ 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", Fri, 11 May 2012 13:16:16 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$tmceR06fFliku9ScYyjnTuBofA74MShAcnnWaAygyf70VoPHMv0ui"], ["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", Fri, 11 May 2012 13:16:16 UTC +00:00]]
35567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35568
+  (0.0ms) SAVEPOINT active_record_1
35569
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
35570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35571
+  (0.0ms) SAVEPOINT active_record_1
35572
+  (0.2ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-11 13:16:16.135111' WHERE "users"."id" = 999914116
35573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35574
+  (0.0ms) SAVEPOINT active_record_1
35575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35576
+
35577
+
35578
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-11 09:16:16 -0400
35579
+ Processing by Contour::SessionsController#create as HTML
35580
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
35581
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
35582
+  (0.0ms) SAVEPOINT active_record_1
35583
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2012-05-11 13:16:16.143592', "current_sign_in_at" = '2012-05-11 13:16:16.143592', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-05-11 13:16:16.144085' WHERE "users"."id" = 999914116
35584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35585
+ Redirected to http://www.example.com/logged_in_page
35586
+ Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
35587
+
35588
+
35589
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:16:16 -0400
35590
+ Processing by WelcomeController#logged_in_page as HTML
35591
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
35592
+ Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.2ms)
35593
+  (0.8ms) rollback transaction
35594
+  (0.1ms) begin transaction
35595
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35596
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
35597
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
35598
+
35599
+
35600
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:16:16 -0400
35601
+ Processing by WelcomeController#logged_in_page as HTML
35602
+ Completed 401 Unauthorized in 0ms
35603
+  (0.1ms) SAVEPOINT active_record_1
35604
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
35605
+ Binary data inserted for `string` type on column `encrypted_password`
35606
+ 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", Fri, 11 May 2012 13:16:16 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$zwFgJ06MTbsHkDR.1/VIju/pSe2Awgkj7LhC/Hzj0Htx7wgMqi2Wu"], ["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", Fri, 11 May 2012 13:16:16 UTC +00:00]]
35607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35608
+  (0.0ms) SAVEPOINT active_record_1
35609
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
35610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35611
+  (0.0ms) SAVEPOINT active_record_1
35612
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35613
+  (0.0ms) SAVEPOINT active_record_1
35614
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35615
+
35616
+
35617
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-11 09:16:16 -0400
35618
+ Processing by Contour::SessionsController#create as HTML
35619
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
35620
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
35621
+  (0.0ms) SAVEPOINT active_record_1
35622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35623
+ Completed 401 Unauthorized in 4ms
35624
+
35625
+
35626
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-11 09:16:16 -0400
35627
+ Processing by Contour::SessionsController#new as HTML
35628
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
35629
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
35630
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
35631
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
35632
+ Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
35633
+  (0.8ms) rollback transaction
35634
+  (0.1ms) begin transaction
35635
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35636
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
35637
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
35638
+
35639
+
35640
+ Started GET "/" for 127.0.0.1 at 2012-05-11 09:16:16 -0400
35641
+ Processing by WelcomeController#index as HTML
35642
+ Completed 401 Unauthorized in 1ms
35643
+  (0.1ms) rollback transaction
35644
+  (0.1ms) begin transaction
35645
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35646
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
35647
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
35648
+
35649
+
35650
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-11 09:16:16 -0400
35651
+ Processing by WelcomeController#logged_in_page as JSON
35652
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
35653
+  (0.1ms) SAVEPOINT active_record_1
35654
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2012-05-11 13:16:16.300818', "current_sign_in_at" = '2012-05-11 13:16:16.300818', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-05-11 13:16:16.301419' WHERE "users"."id" = 201799169
35655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35656
+ Completed 200 OK in 84ms (Views: 0.2ms | ActiveRecord: 0.5ms)
35657
+  (5.1ms) rollback transaction
35658
+  (0.1ms) begin transaction
35659
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35660
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
35661
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
35662
+
35663
+
35664
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-11 09:16:16 -0400
35665
+ Processing by WelcomeController#logged_in_page as JSON
35666
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
35667
+ Completed 401 Unauthorized in 87ms
35668
+  (0.1ms) rollback transaction
35669
+  (0.0ms) begin transaction
35670
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35671
+  (0.1ms) rollback transaction
35672
+  (0.0ms) begin transaction
35673
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35674
+  (0.0ms) rollback transaction
35675
+  (0.1ms) begin transaction
35676
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
35677
+ Fixture Insert (0.3ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2012-05-11 13:33:56', '2012-05-11 13:33:56', 949717663, 201799169)
35678
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-05-11 13:33:56', '2012-05-11 13:33:56', 876923740, 201799169)
35679
+ 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-05-11 13:33:56', '2012-05-11 13:33:56', 864673665, 201799169)
35680
+ Fixture Delete (0.2ms) DELETE FROM "users"
35681
+ 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-05-11 13:33:56', '2012-05-11 13:33:56', 201799169)
35682
+ 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-05-11 13:33:56', '2012-05-11 13:33:56', 999914115)
35683
+ 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-05-11 13:33:56', '2012-05-11 13:33:56', 725306934)
35684
+ 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-05-11 13:33:56', '2012-05-11 13:33:56', 349534908)
35685
+  (315.7ms) commit transaction
35686
+  (0.1ms) begin transaction
35687
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
35688
+  (0.1ms) rollback transaction
35689
+  (0.1ms) begin transaction
35690
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
35691
+  (0.0ms) rollback transaction
35692
+  (0.1ms) begin transaction
35693
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35694
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
35695
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
35696
+ Processing by Contour::AuthenticationsController#create as HTML
35697
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-05-11 13:33:56 UTC", "updated_at"=>"2012-05-11 13:33:56 UTC"}}
35698
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
35699
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
35700
+ Logged in user found, creating associated authentication.
35701
+  (0.1ms) SAVEPOINT active_record_1
35702
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 11 May 2012 13:33:57 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Fri, 11 May 2012 13:33:57 UTC +00:00], ["user_id", 201799169]]
35703
+  (0.1ms) RELEASE SAVEPOINT active_record_1
35704
+ Redirected to http://test.host/authentications
35705
+ Completed 302 Found in 48ms (ActiveRecord: 0.9ms)
35706
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
35707
+  (1.0ms) rollback transaction
35708
+  (0.1ms) begin transaction
35709
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35710
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
35711
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
35712
+ Processing by Contour::AuthenticationsController#destroy as HTML
35713
+ Parameters: {"id"=>"949717663"}
35714
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
35715
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
35716
+  (0.0ms) SAVEPOINT active_record_1
35717
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
35718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35719
+ Redirected to http://test.host/authentications
35720
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
35721
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
35722
+  (0.6ms) rollback transaction
35723
+  (0.0ms) begin transaction
35724
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35725
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
35726
+ Processing by Contour::AuthenticationsController#index as HTML
35727
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
35728
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
35729
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
35730
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (2.1ms)
35731
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.5ms)
35732
+ Completed 200 OK in 55ms (Views: 53.3ms | ActiveRecord: 0.3ms)
35733
+  (0.1ms) rollback transaction
35734
+  (0.0ms) begin transaction
35735
+ Processing by Contour::PasswordsController#create as HTML
35736
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
35737
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
35738
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'WEvnJDc2DhpFsAnyxiWE' LIMIT 1
35739
+  (0.0ms) SAVEPOINT active_record_1
35740
+  (0.3ms) UPDATE "users" SET "reset_password_token" = 'WEvnJDc2DhpFsAnyxiWE', "reset_password_sent_at" = '2012-05-11 13:33:57.406221', "updated_at" = '2012-05-11 13:33:57.406880' WHERE "users"."id" = 201799169
35741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35742
+
35743
+ Sent mail to valid@example.com (14ms)
35744
+ Date: Fri, 11 May 2012 09:33:57 -0400
35745
+ From: please-change-me-at-config-initializers-devise@example.com
35746
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
35747
+ To: valid@example.com
35748
+ Message-ID: <4fad154574d52_28883fca6e034cd870552@edge.mail>
35749
+ Subject: Reset password instructions
35750
+ Mime-Version: 1.0
35751
+ Content-Type: text/html;
35752
+ charset=UTF-8
35753
+ Content-Transfer-Encoding: 7bit
35754
+
35755
+ <p>Hello valid@example.com!</p>
35756
+
35757
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
35758
+
35759
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=WEvnJDc2DhpFsAnyxiWE">Change my password</a></p>
35760
+
35761
+ <p>If you didn't request this, please ignore this email.</p>
35762
+ <p>Your password won't change until you access the link above and create a new one.</p>
35763
+
35764
+ Redirected to http://test.host/users/login
35765
+ Completed 302 Found in 91ms (ActiveRecord: 0.0ms)
35766
+  (1.0ms) rollback transaction
35767
+  (0.1ms) begin transaction
35768
+ Processing by Contour::PasswordsController#new as HTML
35769
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.4ms)
35770
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (31.2ms)
35771
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (34.1ms)
35772
+ Completed 200 OK in 46ms (Views: 45.0ms | ActiveRecord: 0.0ms)
35773
+  (0.1ms) rollback transaction
35774
+  (0.0ms) begin transaction
35775
+  (0.1ms) rollback transaction
35776
+  (0.1ms) begin transaction
35777
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35778
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
35779
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
35780
+
35781
+
35782
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:33:57 -0400
35783
+ Processing by WelcomeController#logged_in_page as HTML
35784
+ Completed 401 Unauthorized in 1ms
35785
+  (0.1ms) SAVEPOINT active_record_1
35786
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
35787
+ Binary data inserted for `string` type on column `encrypted_password`
35788
+ 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", Fri, 11 May 2012 13:33:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$Snnyks2xqCaGaOF3U0/Ueut.LTHFLc6xzCMHWZIW86LI67eanBHz6"], ["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", Fri, 11 May 2012 13:33:57 UTC +00:00]]
35789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35790
+  (0.0ms) SAVEPOINT active_record_1
35791
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
35792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35793
+  (0.0ms) SAVEPOINT active_record_1
35794
+  (0.3ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-11 13:33:57.599270' WHERE "users"."id" = 999914116
35795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35796
+  (0.0ms) SAVEPOINT active_record_1
35797
+  (0.1ms) UPDATE "users" SET "deleted" = 't', "updated_at" = '2012-05-11 13:33:57.600444' WHERE "users"."id" = 999914116
35798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35799
+
35800
+
35801
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-11 09:33:57 -0400
35802
+ Processing by Contour::SessionsController#create as HTML
35803
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
35804
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
35805
+  (0.1ms) SAVEPOINT active_record_1
35806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35807
+ Completed 401 Unauthorized in 8ms
35808
+
35809
+
35810
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-11 09:33:57 -0400
35811
+ Processing by Contour::SessionsController#new as HTML
35812
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.6ms)
35813
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.6ms)
35814
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
35815
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.0ms)
35816
+ Completed 200 OK in 40ms (Views: 39.0ms | ActiveRecord: 0.0ms)
35817
+  (0.9ms) rollback transaction
35818
+  (0.1ms) begin transaction
35819
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35820
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
35821
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
35822
+
35823
+
35824
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:33:57 -0400
35825
+ Processing by WelcomeController#logged_in_page as HTML
35826
+ Completed 401 Unauthorized in 0ms
35827
+  (0.1ms) SAVEPOINT active_record_1
35828
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
35829
+ Binary data inserted for `string` type on column `encrypted_password`
35830
+ SQL (0.4ms) 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", Fri, 11 May 2012 13:33:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$xoAcxIkP60VIWyg1xjiIAuTWIUq1o5eAVCqo96atIvjQboL7A3htq"], ["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", Fri, 11 May 2012 13:33:57 UTC +00:00]]
35831
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35832
+  (0.0ms) SAVEPOINT active_record_1
35833
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
35834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35835
+  (0.0ms) SAVEPOINT active_record_1
35836
+  (0.2ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-11 13:33:57.679478' WHERE "users"."id" = 999914116
35837
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35838
+  (0.0ms) SAVEPOINT active_record_1
35839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35840
+
35841
+
35842
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-11 09:33:57 -0400
35843
+ Processing by Contour::SessionsController#create as HTML
35844
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
35845
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
35846
+  (0.0ms) SAVEPOINT active_record_1
35847
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2012-05-11 13:33:57.687720', "current_sign_in_at" = '2012-05-11 13:33:57.687720', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-05-11 13:33:57.688104' WHERE "users"."id" = 999914116
35848
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35849
+ Redirected to http://www.example.com/logged_in_page
35850
+ Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
35851
+
35852
+
35853
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:33:57 -0400
35854
+ Processing by WelcomeController#logged_in_page as HTML
35855
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
35856
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
35857
+  (0.7ms) rollback transaction
35858
+  (0.1ms) begin transaction
35859
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35860
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
35861
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
35862
+
35863
+
35864
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:33:57 -0400
35865
+ Processing by WelcomeController#logged_in_page as HTML
35866
+ Completed 401 Unauthorized in 0ms
35867
+  (0.1ms) SAVEPOINT active_record_1
35868
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
35869
+ Binary data inserted for `string` type on column `encrypted_password`
35870
+ 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", Fri, 11 May 2012 13:33:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$JGChGSnl0DYd0amYO8NfN.O.caMzy4pczrfWtRlFrBNROWozDSM0a"], ["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", Fri, 11 May 2012 13:33:57 UTC +00:00]]
35871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35872
+  (0.0ms) SAVEPOINT active_record_1
35873
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
35874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35875
+  (0.0ms) SAVEPOINT active_record_1
35876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35877
+  (0.0ms) SAVEPOINT active_record_1
35878
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35879
+
35880
+
35881
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-11 09:33:57 -0400
35882
+ Processing by Contour::SessionsController#create as HTML
35883
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
35884
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
35885
+  (0.0ms) SAVEPOINT active_record_1
35886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35887
+ Completed 401 Unauthorized in 4ms
35888
+
35889
+
35890
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-11 09:33:57 -0400
35891
+ Processing by Contour::SessionsController#new as HTML
35892
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
35893
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
35894
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
35895
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.7ms)
35896
+ Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms)
35897
+  (0.7ms) rollback transaction
35898
+  (0.1ms) begin transaction
35899
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35900
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
35901
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
35902
+
35903
+
35904
+ Started GET "/" for 127.0.0.1 at 2012-05-11 09:33:57 -0400
35905
+ Processing by WelcomeController#index as HTML
35906
+ Completed 401 Unauthorized in 1ms
35907
+  (0.1ms) rollback transaction
35908
+  (0.1ms) begin transaction
35909
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35910
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
35911
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
35912
+
35913
+
35914
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-11 09:33:57 -0400
35915
+ Processing by WelcomeController#logged_in_page as JSON
35916
+ Completed 401 Unauthorized in 0ms
35917
+  (0.1ms) rollback transaction
35918
+  (0.0ms) begin transaction
35919
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35920
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
35921
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
35922
+
35923
+
35924
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-11 09:33:57 -0400
35925
+ Processing by WelcomeController#logged_in_page as JSON
35926
+ Completed 401 Unauthorized in 0ms
35927
+  (0.1ms) rollback transaction
35928
+  (0.0ms) begin transaction
35929
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35930
+  (0.1ms) rollback transaction
35931
+  (0.1ms) begin transaction
35932
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35933
+  (0.0ms) rollback transaction
35934
+  (0.1ms) begin transaction
35935
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
35936
+ 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-05-11 13:35:10', '2012-05-11 13:35:10', 949717663, 201799169)
35937
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-05-11 13:35:10', '2012-05-11 13:35:10', 876923740, 201799169)
35938
+ 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-05-11 13:35:10', '2012-05-11 13:35:10', 864673665, 201799169)
35939
+ Fixture Delete (0.1ms) DELETE FROM "users"
35940
+ 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-05-11 13:35:10', '2012-05-11 13:35:10', 201799169)
35941
+ 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-05-11 13:35:10', '2012-05-11 13:35:10', 999914115)
35942
+ 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-05-11 13:35:10', '2012-05-11 13:35:10', 725306934)
35943
+ 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-05-11 13:35:10', '2012-05-11 13:35:10', 349534908)
35944
+  (2.0ms) commit transaction
35945
+  (0.0ms) begin transaction
35946
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
35947
+  (0.1ms) rollback transaction
35948
+  (0.0ms) begin transaction
35949
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
35950
+  (0.0ms) rollback transaction
35951
+  (0.1ms) begin transaction
35952
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35953
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
35954
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
35955
+ Processing by Contour::AuthenticationsController#create as HTML
35956
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-05-11 13:35:10 UTC", "updated_at"=>"2012-05-11 13:35:10 UTC"}}
35957
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
35958
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
35959
+ Logged in user found, creating associated authentication.
35960
+  (0.1ms) SAVEPOINT active_record_1
35961
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 11 May 2012 13:35:10 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Fri, 11 May 2012 13:35:10 UTC +00:00], ["user_id", 201799169]]
35962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35963
+ Redirected to http://test.host/authentications
35964
+ Completed 302 Found in 53ms (ActiveRecord: 0.9ms)
35965
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
35966
+  (0.7ms) rollback transaction
35967
+  (0.0ms) begin transaction
35968
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35969
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
35970
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
35971
+ Processing by Contour::AuthenticationsController#destroy as HTML
35972
+ Parameters: {"id"=>"949717663"}
35973
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
35974
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
35975
+  (0.0ms) SAVEPOINT active_record_1
35976
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
35977
+  (0.0ms) RELEASE SAVEPOINT active_record_1
35978
+ Redirected to http://test.host/authentications
35979
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
35980
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
35981
+  (0.5ms) rollback transaction
35982
+  (0.0ms) begin transaction
35983
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
35984
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
35985
+ Processing by Contour::AuthenticationsController#index as HTML
35986
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
35987
+  (0.2ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
35988
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
35989
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (2.3ms)
35990
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.7ms)
35991
+ Completed 200 OK in 71ms (Views: 68.9ms | ActiveRecord: 0.4ms)
35992
+  (0.1ms) rollback transaction
35993
+  (0.1ms) begin transaction
35994
+ Processing by Contour::PasswordsController#create as HTML
35995
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
35996
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
35997
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'jjYz6Y1ystxJ7Brypy1K' LIMIT 1
35998
+  (0.0ms) SAVEPOINT active_record_1
35999
+  (0.3ms) UPDATE "users" SET "reset_password_token" = 'jjYz6Y1ystxJ7Brypy1K', "reset_password_sent_at" = '2012-05-11 13:35:10.335105', "updated_at" = '2012-05-11 13:35:10.335829' WHERE "users"."id" = 201799169
36000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36001
+
36002
+ Sent mail to valid@example.com (20ms)
36003
+ Date: Fri, 11 May 2012 09:35:10 -0400
36004
+ From: please-change-me-at-config-initializers-devise@example.com
36005
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
36006
+ To: valid@example.com
36007
+ Message-ID: <4fad158e6bfdf_288d3ffb80434cdc4324f@edge.mail>
36008
+ Subject: Reset password instructions
36009
+ Mime-Version: 1.0
36010
+ Content-Type: text/html;
36011
+ charset=UTF-8
36012
+ Content-Transfer-Encoding: 7bit
36013
+
36014
+ <p>Hello valid@example.com!</p>
36015
+
36016
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
36017
+
36018
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=jjYz6Y1ystxJ7Brypy1K">Change my password</a></p>
36019
+
36020
+ <p>If you didn't request this, please ignore this email.</p>
36021
+ <p>Your password won't change until you access the link above and create a new one.</p>
36022
+
36023
+ Redirected to http://test.host/users/login
36024
+ Completed 302 Found in 129ms (ActiveRecord: 0.0ms)
36025
+  (0.5ms) rollback transaction
36026
+  (0.0ms) begin transaction
36027
+ Processing by Contour::PasswordsController#new as HTML
36028
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.6ms)
36029
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (42.5ms)
36030
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (45.3ms)
36031
+ Completed 200 OK in 62ms (Views: 60.7ms | ActiveRecord: 0.0ms)
36032
+  (0.1ms) rollback transaction
36033
+  (0.1ms) begin transaction
36034
+  (0.1ms) rollback transaction
36035
+  (0.1ms) begin transaction
36036
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36037
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36038
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36039
+
36040
+
36041
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:35:10 -0400
36042
+ Processing by WelcomeController#logged_in_page as HTML
36043
+ Completed 401 Unauthorized in 1ms
36044
+  (0.1ms) SAVEPOINT active_record_1
36045
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
36046
+ Binary data inserted for `string` type on column `encrypted_password`
36047
+ 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", Fri, 11 May 2012 13:35:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$/NTZ1NSkcR/O82lC2QozvuLAYj6Ms7D9Nq2sZWwIgXpnfAOTqTwXm"], ["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", Fri, 11 May 2012 13:35:10 UTC +00:00]]
36048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36049
+  (0.0ms) SAVEPOINT active_record_1
36050
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
36051
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36052
+  (0.0ms) SAVEPOINT active_record_1
36053
+  (0.4ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-11 13:35:10.593029' WHERE "users"."id" = 999914116
36054
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36055
+  (0.0ms) SAVEPOINT active_record_1
36056
+  (0.1ms) UPDATE "users" SET "deleted" = 't', "updated_at" = '2012-05-11 13:35:10.595116' WHERE "users"."id" = 999914116
36057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36058
+
36059
+
36060
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-11 09:35:10 -0400
36061
+ Processing by Contour::SessionsController#create as HTML
36062
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
36063
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
36064
+  (0.1ms) SAVEPOINT active_record_1
36065
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36066
+ Completed 401 Unauthorized in 7ms
36067
+
36068
+
36069
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-11 09:35:10 -0400
36070
+ Processing by Contour::SessionsController#new as HTML
36071
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.1ms)
36072
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.8ms)
36073
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.0ms)
36074
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.5ms)
36075
+ Completed 200 OK in 58ms (Views: 56.7ms | ActiveRecord: 0.0ms)
36076
+  (1.3ms) rollback transaction
36077
+  (0.1ms) begin transaction
36078
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36079
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36080
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36081
+
36082
+
36083
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:35:10 -0400
36084
+ Processing by WelcomeController#logged_in_page as HTML
36085
+ Completed 401 Unauthorized in 0ms
36086
+  (0.1ms) SAVEPOINT active_record_1
36087
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
36088
+ Binary data inserted for `string` type on column `encrypted_password`
36089
+ 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", Fri, 11 May 2012 13:35:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$xYZxKhFAX7g5ZdAq.x9Pwu0tlEv/Hvqe37pNWnWfb6QxDUr32v6wy"], ["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", Fri, 11 May 2012 13:35:10 UTC +00:00]]
36090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36091
+  (0.0ms) SAVEPOINT active_record_1
36092
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
36093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36094
+  (0.0ms) SAVEPOINT active_record_1
36095
+  (0.3ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-11 13:35:10.698284' WHERE "users"."id" = 999914116
36096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36097
+  (0.0ms) SAVEPOINT active_record_1
36098
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36099
+
36100
+
36101
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-11 09:35:10 -0400
36102
+ Processing by Contour::SessionsController#create as HTML
36103
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
36104
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
36105
+  (0.1ms) SAVEPOINT active_record_1
36106
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2012-05-11 13:35:10.709345', "current_sign_in_at" = '2012-05-11 13:35:10.709345', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-05-11 13:35:10.709948' WHERE "users"."id" = 999914116
36107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36108
+ Redirected to http://www.example.com/logged_in_page
36109
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
36110
+
36111
+
36112
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:35:10 -0400
36113
+ Processing by WelcomeController#logged_in_page as HTML
36114
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
36115
+ Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)
36116
+  (0.6ms) rollback transaction
36117
+  (0.1ms) begin transaction
36118
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36119
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36120
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36121
+
36122
+
36123
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:35:10 -0400
36124
+ Processing by WelcomeController#logged_in_page as HTML
36125
+ Completed 401 Unauthorized in 0ms
36126
+  (0.1ms) SAVEPOINT active_record_1
36127
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
36128
+ Binary data inserted for `string` type on column `encrypted_password`
36129
+ 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", Fri, 11 May 2012 13:35:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$K5iLU6e/QMDIyBSkkcR5jeAdojy4vJ2EkxleBZcsqTmTwshZms2Oi"], ["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", Fri, 11 May 2012 13:35:10 UTC +00:00]]
36130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36131
+  (0.0ms) SAVEPOINT active_record_1
36132
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
36133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36134
+  (0.0ms) SAVEPOINT active_record_1
36135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36136
+  (0.0ms) SAVEPOINT active_record_1
36137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36138
+
36139
+
36140
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-11 09:35:10 -0400
36141
+ Processing by Contour::SessionsController#create as HTML
36142
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
36143
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
36144
+  (0.0ms) SAVEPOINT active_record_1
36145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36146
+ Completed 401 Unauthorized in 4ms
36147
+
36148
+
36149
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-11 09:35:10 -0400
36150
+ Processing by Contour::SessionsController#new as HTML
36151
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
36152
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
36153
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
36154
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
36155
+ Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
36156
+  (1.0ms) rollback transaction
36157
+  (0.0ms) begin transaction
36158
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36159
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36160
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36161
+
36162
+
36163
+ Started GET "/" for 127.0.0.1 at 2012-05-11 09:35:10 -0400
36164
+ Processing by WelcomeController#index as HTML
36165
+ Completed 401 Unauthorized in 0ms
36166
+  (0.1ms) rollback transaction
36167
+  (0.1ms) begin transaction
36168
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36169
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36170
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36171
+
36172
+
36173
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-11 09:35:10 -0400
36174
+ Processing by WelcomeController#logged_in_page as JSON
36175
+ Completed 401 Unauthorized in 0ms
36176
+  (0.1ms) rollback transaction
36177
+  (0.0ms) begin transaction
36178
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36179
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36180
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36181
+
36182
+
36183
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-11 09:35:10 -0400
36184
+ Processing by WelcomeController#logged_in_page as JSON
36185
+ Completed 401 Unauthorized in 0ms
36186
+  (0.1ms) rollback transaction
36187
+  (0.1ms) begin transaction
36188
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36189
+  (0.1ms) rollback transaction
36190
+  (0.1ms) begin transaction
36191
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36192
+  (0.0ms) rollback transaction
36193
+  (0.1ms) begin transaction
36194
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
36195
+ 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-05-11 13:35:47', '2012-05-11 13:35:47', 949717663, 201799169)
36196
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-05-11 13:35:47', '2012-05-11 13:35:47', 876923740, 201799169)
36197
+ 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-05-11 13:35:47', '2012-05-11 13:35:47', 864673665, 201799169)
36198
+ Fixture Delete (0.1ms) DELETE FROM "users"
36199
+ 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-05-11 13:35:47', '2012-05-11 13:35:47', 201799169)
36200
+ 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-05-11 13:35:47', '2012-05-11 13:35:47', 999914115)
36201
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2012-05-11 13:35:47', '2012-05-11 13:35:47', 725306934)
36202
+ 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-05-11 13:35:47', '2012-05-11 13:35:47', 349534908)
36203
+  (124.1ms) commit transaction
36204
+  (0.1ms) begin transaction
36205
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
36206
+  (0.1ms) rollback transaction
36207
+  (0.0ms) begin transaction
36208
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
36209
+  (0.0ms) rollback transaction
36210
+  (0.1ms) begin transaction
36211
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36212
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
36213
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
36214
+ Processing by Contour::AuthenticationsController#create as HTML
36215
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-05-11 13:35:47 UTC", "updated_at"=>"2012-05-11 13:35:47 UTC"}}
36216
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
36217
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
36218
+ Logged in user found, creating associated authentication.
36219
+  (0.1ms) SAVEPOINT active_record_1
36220
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 11 May 2012 13:35:48 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Fri, 11 May 2012 13:35:48 UTC +00:00], ["user_id", 201799169]]
36221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36222
+ Redirected to http://test.host/authentications
36223
+ Completed 302 Found in 52ms (ActiveRecord: 0.9ms)
36224
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
36225
+  (0.7ms) rollback transaction
36226
+  (0.0ms) begin transaction
36227
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36228
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
36229
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
36230
+ Processing by Contour::AuthenticationsController#destroy as HTML
36231
+ Parameters: {"id"=>"949717663"}
36232
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
36233
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
36234
+  (0.0ms) SAVEPOINT active_record_1
36235
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
36236
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36237
+ Redirected to http://test.host/authentications
36238
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
36239
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
36240
+  (0.7ms) rollback transaction
36241
+  (0.1ms) begin transaction
36242
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36243
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
36244
+ Processing by Contour::AuthenticationsController#index as HTML
36245
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
36246
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
36247
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
36248
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (2.3ms)
36249
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.6ms)
36250
+ Completed 200 OK in 62ms (Views: 60.0ms | ActiveRecord: 0.3ms)
36251
+  (0.1ms) rollback transaction
36252
+  (0.1ms) begin transaction
36253
+ Processing by Contour::PasswordsController#create as HTML
36254
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
36255
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
36256
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '6JgDhzqpHjWBohsC5nBv' LIMIT 1
36257
+  (0.0ms) SAVEPOINT active_record_1
36258
+  (0.3ms) UPDATE "users" SET "reset_password_token" = '6JgDhzqpHjWBohsC5nBv', "reset_password_sent_at" = '2012-05-11 13:35:48.178353', "updated_at" = '2012-05-11 13:35:48.179026' WHERE "users"."id" = 201799169
36259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36260
+
36261
+ Sent mail to valid@example.com (15ms)
36262
+ Date: Fri, 11 May 2012 09:35:48 -0400
36263
+ From: please-change-me-at-config-initializers-devise@example.com
36264
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
36265
+ To: valid@example.com
36266
+ Message-ID: <4fad15b43e9fd_28903fe6f5034cd0915e3@edge.mail>
36267
+ Subject: Reset password instructions
36268
+ Mime-Version: 1.0
36269
+ Content-Type: text/html;
36270
+ charset=UTF-8
36271
+ Content-Transfer-Encoding: 7bit
36272
+
36273
+ <p>Hello valid@example.com!</p>
36274
+
36275
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
36276
+
36277
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=6JgDhzqpHjWBohsC5nBv">Change my password</a></p>
36278
+
36279
+ <p>If you didn't request this, please ignore this email.</p>
36280
+ <p>Your password won't change until you access the link above and create a new one.</p>
36281
+
36282
+ Redirected to http://test.host/users/login
36283
+ Completed 302 Found in 98ms (ActiveRecord: 0.0ms)
36284
+  (7.6ms) rollback transaction
36285
+  (0.1ms) begin transaction
36286
+ Processing by Contour::PasswordsController#new as HTML
36287
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
36288
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (29.7ms)
36289
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (32.2ms)
36290
+ Completed 200 OK in 44ms (Views: 42.7ms | ActiveRecord: 0.0ms)
36291
+  (0.1ms) rollback transaction
36292
+  (0.0ms) begin transaction
36293
+  (0.0ms) rollback transaction
36294
+  (0.0ms) begin transaction
36295
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36296
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36297
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36298
+
36299
+
36300
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:35:48 -0400
36301
+ Processing by WelcomeController#logged_in_page as HTML
36302
+ Completed 401 Unauthorized in 1ms
36303
+  (0.1ms) SAVEPOINT active_record_1
36304
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
36305
+ Binary data inserted for `string` type on column `encrypted_password`
36306
+ 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", Fri, 11 May 2012 13:35:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$f8U5.lkpZ5.hOFbayaxICekeu.WtzPWt2QLIBT2FtgWciWmz2Pime"], ["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", Fri, 11 May 2012 13:35:48 UTC +00:00]]
36307
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36308
+  (0.0ms) SAVEPOINT active_record_1
36309
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
36310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36311
+  (0.0ms) SAVEPOINT active_record_1
36312
+  (0.3ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-11 13:35:48.374725' WHERE "users"."id" = 999914116
36313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36314
+  (0.0ms) SAVEPOINT active_record_1
36315
+  (0.1ms) UPDATE "users" SET "deleted" = 't', "updated_at" = '2012-05-11 13:35:48.376142' WHERE "users"."id" = 999914116
36316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36317
+
36318
+
36319
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-11 09:35:48 -0400
36320
+ Processing by Contour::SessionsController#create as HTML
36321
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
36322
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
36323
+  (0.1ms) SAVEPOINT active_record_1
36324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36325
+ Completed 401 Unauthorized in 7ms
36326
+
36327
+
36328
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-11 09:35:48 -0400
36329
+ Processing by Contour::SessionsController#new as HTML
36330
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
36331
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
36332
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.5ms)
36333
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.1ms)
36334
+ Completed 200 OK in 40ms (Views: 38.7ms | ActiveRecord: 0.0ms)
36335
+  (1.5ms) rollback transaction
36336
+  (0.1ms) begin transaction
36337
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36338
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36339
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36340
+
36341
+
36342
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:35:48 -0400
36343
+ Processing by WelcomeController#logged_in_page as HTML
36344
+ Completed 401 Unauthorized in 0ms
36345
+  (0.1ms) SAVEPOINT active_record_1
36346
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
36347
+ Binary data inserted for `string` type on column `encrypted_password`
36348
+ 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", Fri, 11 May 2012 13:35:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$AwR4duYtaKuu3X3uffDtPeAQlL.H3ypQMl2plpKOIUkno59vEZxtK"], ["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", Fri, 11 May 2012 13:35:48 UTC +00:00]]
36349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36350
+  (0.0ms) SAVEPOINT active_record_1
36351
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
36352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36353
+  (0.0ms) SAVEPOINT active_record_1
36354
+  (0.3ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-11 13:35:48.455720' WHERE "users"."id" = 999914116
36355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36356
+  (0.0ms) SAVEPOINT active_record_1
36357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36358
+
36359
+
36360
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-11 09:35:48 -0400
36361
+ Processing by Contour::SessionsController#create as HTML
36362
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
36363
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
36364
+  (0.0ms) SAVEPOINT active_record_1
36365
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2012-05-11 13:35:48.464257', "current_sign_in_at" = '2012-05-11 13:35:48.464257', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-05-11 13:35:48.464716' WHERE "users"."id" = 999914116
36366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36367
+ Redirected to http://www.example.com/logged_in_page
36368
+ Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
36369
+
36370
+
36371
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:35:48 -0400
36372
+ Processing by WelcomeController#logged_in_page as HTML
36373
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
36374
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
36375
+  (0.7ms) rollback transaction
36376
+  (0.1ms) begin transaction
36377
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36378
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36379
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36380
+
36381
+
36382
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-11 09:35:48 -0400
36383
+ Processing by WelcomeController#logged_in_page as HTML
36384
+ Completed 401 Unauthorized in 0ms
36385
+  (0.1ms) SAVEPOINT active_record_1
36386
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
36387
+ Binary data inserted for `string` type on column `encrypted_password`
36388
+ 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", Fri, 11 May 2012 13:35:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$GGfxOuaCTTx6yDkXHhomv.CWoHJxEpm7FiZdttNW2vbXpemWuQo6u"], ["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", Fri, 11 May 2012 13:35:48 UTC +00:00]]
36389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36390
+  (0.0ms) SAVEPOINT active_record_1
36391
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
36392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36393
+  (0.0ms) SAVEPOINT active_record_1
36394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36395
+  (0.0ms) SAVEPOINT active_record_1
36396
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36397
+
36398
+
36399
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-11 09:35:48 -0400
36400
+ Processing by Contour::SessionsController#create as HTML
36401
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
36402
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
36403
+  (0.1ms) SAVEPOINT active_record_1
36404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36405
+ Completed 401 Unauthorized in 4ms
36406
+
36407
+
36408
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-11 09:35:48 -0400
36409
+ Processing by Contour::SessionsController#new as HTML
36410
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
36411
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
36412
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.5ms)
36413
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
36414
+ Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
36415
+  (1.0ms) rollback transaction
36416
+  (0.1ms) begin transaction
36417
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36418
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36419
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36420
+
36421
+
36422
+ Started GET "/" for 127.0.0.1 at 2012-05-11 09:35:48 -0400
36423
+ Processing by WelcomeController#index as HTML
36424
+ Completed 401 Unauthorized in 1ms
36425
+  (0.1ms) rollback transaction
36426
+  (0.0ms) begin transaction
36427
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36428
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36429
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36430
+
36431
+
36432
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-11 09:35:48 -0400
36433
+ Processing by WelcomeController#logged_in_page as JSON
36434
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
36435
+  (0.1ms) SAVEPOINT active_record_1
36436
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2012-05-11 13:35:48.622203', "current_sign_in_at" = '2012-05-11 13:35:48.622203', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-05-11 13:35:48.622823' WHERE "users"."id" = 201799169
36437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36438
+ Completed 200 OK in 85ms (Views: 0.2ms | ActiveRecord: 0.5ms)
36439
+  (0.9ms) rollback transaction
36440
+  (0.1ms) begin transaction
36441
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36442
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36443
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36444
+
36445
+
36446
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-11 09:35:48 -0400
36447
+ Processing by WelcomeController#logged_in_page as JSON
36448
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
36449
+ Completed 401 Unauthorized in 81ms
36450
+  (0.1ms) rollback transaction
36451
+  (0.0ms) begin transaction
36452
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36453
+  (0.1ms) rollback transaction
36454
+  (0.0ms) begin transaction
36455
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36456
+  (0.0ms) rollback transaction
36457
+  (0.1ms) begin transaction
36458
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
36459
+ 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-05-24 16:41:00', '2012-05-24 16:41:00', 949717663, 201799169)
36460
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-05-24 16:41:00', '2012-05-24 16:41:00', 876923740, 201799169)
36461
+ 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-05-24 16:41:00', '2012-05-24 16:41:00', 864673665, 201799169)
36462
+ Fixture Delete (0.1ms) DELETE FROM "users"
36463
+ 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-05-24 16:41:00', '2012-05-24 16:41:00', 201799169)
36464
+ 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-05-24 16:41:00', '2012-05-24 16:41:00', 999914115)
36465
+ 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-05-24 16:41:00', '2012-05-24 16:41:00', 725306934)
36466
+ 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-05-24 16:41:00', '2012-05-24 16:41:00', 349534908)
36467
+  (17.0ms) commit transaction
36468
+  (0.1ms) begin transaction
36469
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
36470
+  (0.1ms) rollback transaction
36471
+  (0.1ms) begin transaction
36472
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
36473
+  (0.1ms) rollback transaction
36474
+  (0.1ms) begin transaction
36475
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36476
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
36477
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
36478
+ Processing by Contour::AuthenticationsController#create as HTML
36479
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-05-24 16:41:00 UTC", "updated_at"=>"2012-05-24 16:41:00 UTC"}}
36480
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
36481
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
36482
+ Logged in user found, creating associated authentication.
36483
+  (0.1ms) SAVEPOINT active_record_1
36484
+ SQL (0.6ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 24 May 2012 16:41:00 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 24 May 2012 16:41:00 UTC +00:00], ["user_id", 201799169]]
36485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36486
+ Redirected to http://test.host/authentications
36487
+ Completed 302 Found in 98ms (ActiveRecord: 1.0ms)
36488
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
36489
+  (0.5ms) rollback transaction
36490
+  (0.1ms) begin transaction
36491
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36492
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
36493
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
36494
+ Processing by Contour::AuthenticationsController#destroy as HTML
36495
+ Parameters: {"id"=>"949717663"}
36496
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
36497
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
36498
+  (0.1ms) SAVEPOINT active_record_1
36499
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
36500
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36501
+ Redirected to http://test.host/authentications
36502
+ Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
36503
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
36504
+  (23.9ms) rollback transaction
36505
+  (0.1ms) begin transaction
36506
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36507
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
36508
+ Processing by Contour::AuthenticationsController#index as HTML
36509
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
36510
+  (0.2ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
36511
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
36512
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (3.9ms)
36513
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.7ms)
36514
+ Completed 200 OK in 82ms (Views: 79.3ms | ActiveRecord: 0.5ms)
36515
+  (0.1ms) rollback transaction
36516
+  (0.1ms) begin transaction
36517
+ Processing by Contour::PasswordsController#create as HTML
36518
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
36519
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
36520
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '42S3DyMCf2GhJi9cSG3k' LIMIT 1
36521
+  (0.0ms) SAVEPOINT active_record_1
36522
+  (0.3ms) UPDATE "users" SET "reset_password_token" = '42S3DyMCf2GhJi9cSG3k', "reset_password_sent_at" = '2012-05-24 16:41:01.091941', "updated_at" = '2012-05-24 16:41:01.092663' WHERE "users"."id" = 201799169
36523
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36524
+
36525
+ Sent mail to valid@example.com (80ms)
36526
+ Date: Thu, 24 May 2012 12:41:01 -0400
36527
+ From: please-change-me-at-config-initializers-devise@example.com
36528
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
36529
+ To: valid@example.com
36530
+ Message-ID: <4fbe649d49cd1_117753ff009034ce0723a7@edge.mail>
36531
+ Subject: Reset password instructions
36532
+ Mime-Version: 1.0
36533
+ Content-Type: text/html;
36534
+ charset=UTF-8
36535
+ Content-Transfer-Encoding: 7bit
36536
+
36537
+ <p>Hello valid@example.com!</p>
36538
+
36539
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
36540
+
36541
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=42S3DyMCf2GhJi9cSG3k">Change my password</a></p>
36542
+
36543
+ <p>If you didn't request this, please ignore this email.</p>
36544
+ <p>Your password won't change until you access the link above and create a new one.</p>
36545
+
36546
+ Redirected to http://test.host/users/login
36547
+ Completed 302 Found in 256ms (ActiveRecord: 0.0ms)
36548
+  (19.8ms) rollback transaction
36549
+  (0.1ms) begin transaction
36550
+ Processing by Contour::PasswordsController#new as HTML
36551
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.4ms)
36552
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.2ms)
36553
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (6.8ms)
36554
+ Completed 200 OK in 22ms (Views: 21.0ms | ActiveRecord: 0.0ms)
36555
+  (0.1ms) rollback transaction
36556
+  (0.1ms) begin transaction
36557
+  (0.1ms) rollback transaction
36558
+  (0.1ms) begin transaction
36559
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36560
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36561
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36562
+
36563
+
36564
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-24 12:41:01 -0400
36565
+ Processing by WelcomeController#logged_in_page as HTML
36566
+ Completed 401 Unauthorized in 1ms
36567
+  (0.1ms) SAVEPOINT active_record_1
36568
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
36569
+ Binary data inserted for `string` type on column `encrypted_password`
36570
+ 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", Thu, 24 May 2012 16:41:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$9pVyG7.j4jqvJLoQq7g19Ozgigp.WOURq4Vg4bNYCf0C9kDcnNZfO"], ["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", Thu, 24 May 2012 16:41:01 UTC +00:00]]
36571
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36572
+  (0.0ms) SAVEPOINT active_record_1
36573
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
36574
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36575
+  (0.0ms) SAVEPOINT active_record_1
36576
+  (0.4ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-24 16:41:01.546421' WHERE "users"."id" = 999914116
36577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36578
+  (0.0ms) SAVEPOINT active_record_1
36579
+  (0.1ms) UPDATE "users" SET "deleted" = 't', "updated_at" = '2012-05-24 16:41:01.548544' WHERE "users"."id" = 999914116
36580
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36581
+
36582
+
36583
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-24 12:41:01 -0400
36584
+ Processing by Contour::SessionsController#create as HTML
36585
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
36586
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
36587
+  (0.1ms) SAVEPOINT active_record_1
36588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36589
+ Completed 401 Unauthorized in 35ms
36590
+
36591
+
36592
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-24 12:41:01 -0400
36593
+ Processing by Contour::SessionsController#new as HTML
36594
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.2ms)
36595
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.7ms)
36596
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.2ms)
36597
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.9ms)
36598
+ Completed 200 OK in 58ms (Views: 56.5ms | ActiveRecord: 0.0ms)
36599
+  (0.8ms) rollback transaction
36600
+  (0.1ms) begin transaction
36601
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36602
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36603
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36604
+
36605
+
36606
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-24 12:41:01 -0400
36607
+ Processing by WelcomeController#logged_in_page as HTML
36608
+ Completed 401 Unauthorized in 0ms
36609
+  (0.1ms) SAVEPOINT active_record_1
36610
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
36611
+ Binary data inserted for `string` type on column `encrypted_password`
36612
+ 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", Thu, 24 May 2012 16:41:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$xkTUSL6NpsVh88viHRBUxOpYTYvJLBfFURUOzSwaIwLWga5sSY3LS"], ["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", Thu, 24 May 2012 16:41:01 UTC +00:00]]
36613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36614
+  (0.0ms) SAVEPOINT active_record_1
36615
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
36616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36617
+  (0.0ms) SAVEPOINT active_record_1
36618
+  (0.3ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-24 16:41:01.682789' WHERE "users"."id" = 999914116
36619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36620
+  (0.0ms) SAVEPOINT active_record_1
36621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36622
+
36623
+
36624
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-24 12:41:01 -0400
36625
+ Processing by Contour::SessionsController#create as HTML
36626
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
36627
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
36628
+  (0.1ms) SAVEPOINT active_record_1
36629
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2012-05-24 16:41:01.694855', "current_sign_in_at" = '2012-05-24 16:41:01.694855', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-05-24 16:41:01.695372' WHERE "users"."id" = 999914116
36630
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36631
+ Redirected to http://www.example.com/logged_in_page
36632
+ Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
36633
+
36634
+
36635
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-24 12:41:01 -0400
36636
+ Processing by WelcomeController#logged_in_page as HTML
36637
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
36638
+ Completed 200 OK in 22ms (Views: 20.6ms | ActiveRecord: 0.1ms)
36639
+  (7.4ms) rollback transaction
36640
+  (0.1ms) begin transaction
36641
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36642
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36643
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36644
+
36645
+
36646
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-24 12:41:01 -0400
36647
+ Processing by WelcomeController#logged_in_page as HTML
36648
+ Completed 401 Unauthorized in 0ms
36649
+  (0.1ms) SAVEPOINT active_record_1
36650
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
36651
+ Binary data inserted for `string` type on column `encrypted_password`
36652
+ 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", Thu, 24 May 2012 16:41:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$OlDk.tQEoMdwvsk82gx0feUvk5X63BDFoXxgmh3TvZTeAFNF5AuIO"], ["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", Thu, 24 May 2012 16:41:01 UTC +00:00]]
36653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36654
+  (0.0ms) SAVEPOINT active_record_1
36655
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
36656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36657
+  (0.0ms) SAVEPOINT active_record_1
36658
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36659
+  (0.0ms) SAVEPOINT active_record_1
36660
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36661
+
36662
+
36663
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-24 12:41:01 -0400
36664
+ Processing by Contour::SessionsController#create as HTML
36665
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
36666
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
36667
+  (0.0ms) SAVEPOINT active_record_1
36668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36669
+ Completed 401 Unauthorized in 4ms
36670
+
36671
+
36672
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-24 12:41:01 -0400
36673
+ Processing by Contour::SessionsController#new as HTML
36674
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.8ms)
36675
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
36676
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.9ms)
36677
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.0ms)
36678
+ Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.0ms)
36679
+  (4.3ms) rollback transaction
36680
+  (0.1ms) begin transaction
36681
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36682
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36683
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36684
+
36685
+
36686
+ Started GET "/" for 127.0.0.1 at 2012-05-24 12:41:01 -0400
36687
+ Processing by WelcomeController#index as HTML
36688
+ Completed 401 Unauthorized in 1ms
36689
+  (0.1ms) rollback transaction
36690
+  (0.0ms) begin transaction
36691
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36692
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36693
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36694
+
36695
+
36696
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-24 12:41:01 -0400
36697
+ Processing by WelcomeController#logged_in_page as JSON
36698
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
36699
+  (0.1ms) SAVEPOINT active_record_1
36700
+  (0.3ms) UPDATE "users" SET "last_sign_in_at" = '2012-05-24 16:41:01.886013', "current_sign_in_at" = '2012-05-24 16:41:01.886013', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-05-24 16:41:01.886739' WHERE "users"."id" = 201799169
36701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36702
+ Completed 200 OK in 84ms (Views: 0.2ms | ActiveRecord: 0.5ms)
36703
+  (0.7ms) rollback transaction
36704
+  (0.1ms) begin transaction
36705
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36706
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36707
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36708
+
36709
+
36710
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-24 12:41:01 -0400
36711
+ Processing by WelcomeController#logged_in_page as JSON
36712
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
36713
+ Completed 401 Unauthorized in 82ms
36714
+  (0.1ms) rollback transaction
36715
+  (0.1ms) begin transaction
36716
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36717
+  (0.1ms) rollback transaction
36718
+  (0.0ms) begin transaction
36719
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36720
+  (0.1ms) rollback transaction
36721
+  (0.1ms) begin transaction
36722
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
36723
+ 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-05-24 16:53:38', '2012-05-24 16:53:38', 949717663, 201799169)
36724
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-05-24 16:53:38', '2012-05-24 16:53:38', 876923740, 201799169)
36725
+ 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-05-24 16:53:38', '2012-05-24 16:53:38', 864673665, 201799169)
36726
+ Fixture Delete (0.1ms) DELETE FROM "users"
36727
+ 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-05-24 16:53:38', '2012-05-24 16:53:38', 201799169)
36728
+ 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-05-24 16:53:38', '2012-05-24 16:53:38', 999914115)
36729
+ 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-05-24 16:53:38', '2012-05-24 16:53:38', 725306934)
36730
+ 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-05-24 16:53:38', '2012-05-24 16:53:38', 349534908)
36731
+  (2.6ms) commit transaction
36732
+  (0.0ms) begin transaction
36733
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
36734
+  (0.1ms) rollback transaction
36735
+  (0.0ms) begin transaction
36736
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
36737
+  (0.0ms) rollback transaction
36738
+  (0.1ms) begin transaction
36739
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36740
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
36741
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
36742
+ Processing by Contour::AuthenticationsController#create as HTML
36743
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-05-24 16:53:38 UTC", "updated_at"=>"2012-05-24 16:53:38 UTC"}}
36744
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
36745
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
36746
+ Logged in user found, creating associated authentication.
36747
+  (0.1ms) SAVEPOINT active_record_1
36748
+ SQL (0.6ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 24 May 2012 16:53:38 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Thu, 24 May 2012 16:53:38 UTC +00:00], ["user_id", 201799169]]
36749
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36750
+ Redirected to http://test.host/authentications
36751
+ Completed 302 Found in 52ms (ActiveRecord: 1.0ms)
36752
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
36753
+  (0.6ms) rollback transaction
36754
+  (0.0ms) begin transaction
36755
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36756
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
36757
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
36758
+ Processing by Contour::AuthenticationsController#destroy as HTML
36759
+ Parameters: {"id"=>"949717663"}
36760
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
36761
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
36762
+  (0.1ms) SAVEPOINT active_record_1
36763
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
36764
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36765
+ Redirected to http://test.host/authentications
36766
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
36767
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
36768
+  (0.6ms) rollback transaction
36769
+  (0.0ms) begin transaction
36770
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36771
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
36772
+ Processing by Contour::AuthenticationsController#index as HTML
36773
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
36774
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
36775
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
36776
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (2.5ms)
36777
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
36778
+ Completed 200 OK in 58ms (Views: 56.3ms | ActiveRecord: 0.4ms)
36779
+  (0.1ms) rollback transaction
36780
+  (0.1ms) begin transaction
36781
+ Processing by Contour::PasswordsController#create as HTML
36782
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
36783
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
36784
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'a3xwEDK4JPKxVpgi7vkn' LIMIT 1
36785
+  (0.0ms) SAVEPOINT active_record_1
36786
+  (0.3ms) UPDATE "users" SET "reset_password_token" = 'a3xwEDK4JPKxVpgi7vkn', "reset_password_sent_at" = '2012-05-24 16:53:38.957721', "updated_at" = '2012-05-24 16:53:38.958398' WHERE "users"."id" = 201799169
36787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36788
+
36789
+ Sent mail to valid@example.com (18ms)
36790
+ Date: Thu, 24 May 2012 12:53:39 -0400
36791
+ From: please-change-me-at-config-initializers-devise@example.com
36792
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
36793
+ To: valid@example.com
36794
+ Message-ID: <4fbe679387ae_118333ffa11434cd4422e3@edge.mail>
36795
+ Subject: Reset password instructions
36796
+ Mime-Version: 1.0
36797
+ Content-Type: text/html;
36798
+ charset=UTF-8
36799
+ Content-Transfer-Encoding: 7bit
36800
+
36801
+ <p>Hello valid@example.com!</p>
36802
+
36803
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
36804
+
36805
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=a3xwEDK4JPKxVpgi7vkn">Change my password</a></p>
36806
+
36807
+ <p>If you didn't request this, please ignore this email.</p>
36808
+ <p>Your password won't change until you access the link above and create a new one.</p>
36809
+
36810
+ Redirected to http://test.host/users/login
36811
+ Completed 302 Found in 98ms (ActiveRecord: 0.0ms)
36812
+  (0.8ms) rollback transaction
36813
+  (0.0ms) begin transaction
36814
+ Processing by Contour::PasswordsController#new as HTML
36815
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
36816
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.0ms)
36817
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.3ms)
36818
+ Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.0ms)
36819
+  (0.1ms) rollback transaction
36820
+  (0.1ms) begin transaction
36821
+  (0.0ms) rollback transaction
36822
+  (0.0ms) begin transaction
36823
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36824
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36825
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36826
+
36827
+
36828
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-24 12:53:39 -0400
36829
+ Processing by WelcomeController#logged_in_page as HTML
36830
+ Completed 401 Unauthorized in 1ms
36831
+  (0.1ms) SAVEPOINT active_record_1
36832
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
36833
+ Binary data inserted for `string` type on column `encrypted_password`
36834
+ 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", Thu, 24 May 2012 16:53:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$XFhq863FDw1jN5OHtJGu7.lRKiCmInWSPNDiyLaFzH.fsyBk7K1Jm"], ["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", Thu, 24 May 2012 16:53:39 UTC +00:00]]
36835
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36836
+  (0.0ms) SAVEPOINT active_record_1
36837
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
36838
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36839
+  (0.0ms) SAVEPOINT active_record_1
36840
+  (0.4ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-24 16:53:39.145589' WHERE "users"."id" = 999914116
36841
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36842
+  (0.0ms) SAVEPOINT active_record_1
36843
+  (0.1ms) UPDATE "users" SET "deleted" = 't', "updated_at" = '2012-05-24 16:53:39.146985' WHERE "users"."id" = 999914116
36844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36845
+
36846
+
36847
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-24 12:53:39 -0400
36848
+ Processing by Contour::SessionsController#create as HTML
36849
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
36850
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
36851
+  (0.1ms) SAVEPOINT active_record_1
36852
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36853
+ Completed 401 Unauthorized in 6ms
36854
+
36855
+
36856
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-24 12:53:39 -0400
36857
+ Processing by Contour::SessionsController#new as HTML
36858
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.8ms)
36859
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.1ms)
36860
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.5ms)
36861
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.2ms)
36862
+ Completed 200 OK in 47ms (Views: 46.2ms | ActiveRecord: 0.0ms)
36863
+  (0.7ms) rollback transaction
36864
+  (0.1ms) begin transaction
36865
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36866
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36867
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36868
+
36869
+
36870
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-24 12:53:39 -0400
36871
+ Processing by WelcomeController#logged_in_page as HTML
36872
+ Completed 401 Unauthorized in 0ms
36873
+  (0.1ms) SAVEPOINT active_record_1
36874
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
36875
+ Binary data inserted for `string` type on column `encrypted_password`
36876
+ 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", Thu, 24 May 2012 16:53:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$9t9tFkh4tbGhOFxPIuFRB.kD1Y8.g.0kUuD11yiK0jripD9zghwEq"], ["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", Thu, 24 May 2012 16:53:39 UTC +00:00]]
36877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36878
+  (0.0ms) SAVEPOINT active_record_1
36879
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
36880
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36881
+  (0.0ms) SAVEPOINT active_record_1
36882
+  (0.3ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-24 16:53:39.235638' WHERE "users"."id" = 999914116
36883
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36884
+  (0.0ms) SAVEPOINT active_record_1
36885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36886
+
36887
+
36888
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-24 12:53:39 -0400
36889
+ Processing by Contour::SessionsController#create as HTML
36890
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
36891
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
36892
+  (0.0ms) SAVEPOINT active_record_1
36893
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2012-05-24 16:53:39.245286', "current_sign_in_at" = '2012-05-24 16:53:39.245286', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-05-24 16:53:39.245716' WHERE "users"."id" = 999914116
36894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36895
+ Redirected to http://www.example.com/logged_in_page
36896
+ Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
36897
+
36898
+
36899
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-24 12:53:39 -0400
36900
+ Processing by WelcomeController#logged_in_page as HTML
36901
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
36902
+ Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.2ms)
36903
+  (0.8ms) rollback transaction
36904
+  (0.1ms) begin transaction
36905
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36906
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36907
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36908
+
36909
+
36910
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-24 12:53:39 -0400
36911
+ Processing by WelcomeController#logged_in_page as HTML
36912
+ Completed 401 Unauthorized in 0ms
36913
+  (0.1ms) SAVEPOINT active_record_1
36914
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
36915
+ Binary data inserted for `string` type on column `encrypted_password`
36916
+ 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", Thu, 24 May 2012 16:53:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$iHvI3WGYymIOlLcXUyn7luLzG86bsep2BdIVZa3aWTHEzEIVG89Sy"], ["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", Thu, 24 May 2012 16:53:39 UTC +00:00]]
36917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36918
+  (0.0ms) SAVEPOINT active_record_1
36919
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
36920
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36921
+  (0.1ms) SAVEPOINT active_record_1
36922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36923
+  (0.0ms) SAVEPOINT active_record_1
36924
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36925
+
36926
+
36927
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-24 12:53:39 -0400
36928
+ Processing by Contour::SessionsController#create as HTML
36929
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
36930
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
36931
+  (0.0ms) SAVEPOINT active_record_1
36932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36933
+ Completed 401 Unauthorized in 4ms
36934
+
36935
+
36936
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-24 12:53:39 -0400
36937
+ Processing by Contour::SessionsController#new as HTML
36938
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
36939
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
36940
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.6ms)
36941
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.5ms)
36942
+ Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
36943
+  (0.8ms) rollback transaction
36944
+  (0.1ms) begin transaction
36945
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36946
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36947
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36948
+
36949
+
36950
+ Started GET "/" for 127.0.0.1 at 2012-05-24 12:53:39 -0400
36951
+ Processing by WelcomeController#index as HTML
36952
+ Completed 401 Unauthorized in 1ms
36953
+  (0.1ms) rollback transaction
36954
+  (0.0ms) begin transaction
36955
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36956
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36957
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36958
+
36959
+
36960
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-24 12:53:39 -0400
36961
+ Processing by WelcomeController#logged_in_page as JSON
36962
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
36963
+  (0.1ms) SAVEPOINT active_record_1
36964
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2012-05-24 16:53:39.398144', "current_sign_in_at" = '2012-05-24 16:53:39.398144', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-05-24 16:53:39.398757' WHERE "users"."id" = 201799169
36965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36966
+ Completed 200 OK in 82ms (Views: 0.2ms | ActiveRecord: 0.5ms)
36967
+  (1.0ms) rollback transaction
36968
+  (0.1ms) begin transaction
36969
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36970
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
36971
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
36972
+
36973
+
36974
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-24 12:53:39 -0400
36975
+ Processing by WelcomeController#logged_in_page as JSON
36976
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
36977
+ Completed 401 Unauthorized in 79ms
36978
+  (0.1ms) rollback transaction
36979
+  (0.1ms) begin transaction
36980
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36981
+  (0.1ms) rollback transaction
36982
+  (0.0ms) begin transaction
36983
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
36984
+  (0.0ms) rollback transaction