contour 1.3.0 → 2.0.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG.md +6 -0
  3. data/README.md +9 -30
  4. data/Rakefile +14 -25
  5. data/app/assets/javascripts/contour/global.js.coffee +16 -15
  6. data/app/controllers/contour/authentications_controller.rb +2 -0
  7. data/app/models/authentication.rb +2 -5
  8. data/app/models/concerns/contour_authenticatable.rb +12 -0
  9. data/app/models/concerns/contourable.rb +19 -0
  10. data/app/views/contour/layouts/application.html.erb +2 -2
  11. data/config/routes.rb +4 -4
  12. data/contour.gemspec +4 -2
  13. data/lib/contour/version.rb +3 -3
  14. data/lib/generators/contour/scaffold/templates/_paginate.html.erb +1 -1
  15. data/lib/generators/contour/scaffold/templates/controller.rb +31 -52
  16. data/lib/generators/contour/scaffold/templates/index.html.erb +1 -1
  17. data/test/{functional → controllers}/authentications_controller_test.rb +0 -0
  18. data/test/{functional → controllers}/passwords_controller_test.rb +0 -0
  19. data/test/{functional → controllers}/registrations_controller_test.rb +0 -0
  20. data/test/dummy/app/models/user.rb +6 -20
  21. data/test/dummy/config/application.rb +3 -24
  22. data/test/dummy/config/boot.rb +1 -1
  23. data/test/dummy/config/environments/development.rb +10 -13
  24. data/test/dummy/config/environments/production.rb +44 -24
  25. data/test/dummy/config/environments/test.rb +14 -17
  26. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  27. data/test/dummy/config/initializers/inflections.rb +9 -3
  28. data/test/dummy/config/initializers/secret_token.rb +6 -1
  29. data/test/dummy/config/initializers/session_store.rb +1 -6
  30. data/test/dummy/config/initializers/wrap_parameters.rb +6 -6
  31. data/test/dummy/config/locales/en.yml +20 -2
  32. data/test/dummy/config/routes.rb +1 -1
  33. data/test/dummy/db/test.sqlite3 +0 -0
  34. data/test/dummy/log/test.log +3178 -0
  35. data/test/dummy/tmp/cache/assets/test/sprockets/015542ca3fee2683eedd21c586e8f4d7 +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sprockets/04f8cd84302394fd96a5a1837da2c435 +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sprockets/097505e114b875201dffa335d293ea3f +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sprockets/09eb485019a1180e44fa6e443aa47503 +0 -0
  39. data/test/dummy/tmp/cache/assets/test/sprockets/0b793dc498fe65856d1b31a805f114dc +0 -0
  40. data/test/dummy/tmp/cache/assets/test/sprockets/0e3daa6e1f20f19c7f6f41a866d36e37 +0 -0
  41. data/test/dummy/tmp/cache/assets/test/sprockets/10912716ee41871536663637aac9d90b +0 -0
  42. data/test/dummy/tmp/cache/assets/test/sprockets/10b862dc2fcb57e871b350f99445089a +0 -0
  43. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  44. data/test/dummy/tmp/cache/assets/test/sprockets/1421ef9eb96cc5dd00cd50105a186f79 +0 -0
  45. data/test/dummy/tmp/cache/assets/test/sprockets/2316c3ab821288d9cc78527e3b6272a9 +0 -0
  46. data/test/dummy/tmp/cache/assets/test/sprockets/25129d82803be264eda19543144ce764 +0 -0
  47. data/test/dummy/tmp/cache/assets/test/sprockets/25e897b572b78b9e7872682d1a1722e0 +0 -0
  48. data/test/dummy/tmp/cache/assets/test/sprockets/29e65a0b15bf594999939014080494b0 +0 -0
  49. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  50. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  51. data/test/dummy/tmp/cache/assets/test/sprockets/3ed734f0003effb5248235744ea7cfbf +0 -0
  52. data/test/dummy/tmp/cache/assets/test/sprockets/408c90980fca5a250881bafa3ef0ca63 +0 -0
  53. data/test/dummy/tmp/cache/assets/test/sprockets/42bbea7a13ce140463a5486a3ae03c94 +0 -0
  54. data/test/dummy/tmp/cache/assets/test/sprockets/4556873bdb635e908edb1b44651d42e4 +0 -0
  55. data/test/dummy/tmp/cache/assets/test/sprockets/484869e0e90da89451d284b6ea1b97ea +0 -0
  56. data/test/dummy/tmp/cache/assets/test/sprockets/4c1f9630c371980e45f3ae2dfaec8a28 +0 -0
  57. data/test/dummy/tmp/cache/assets/test/sprockets/4e7d7c035444f1095fa7dc67721581db +0 -0
  58. data/test/dummy/tmp/cache/assets/test/sprockets/501011855a4cc902996843acadb9c797 +0 -0
  59. data/test/dummy/tmp/cache/assets/test/sprockets/52cdaf963c787c0aa7e2741ce4340be0 +0 -0
  60. data/test/dummy/tmp/cache/assets/test/sprockets/565a4c5a5681bc36489ea1beae4553b0 +0 -0
  61. data/test/dummy/tmp/cache/assets/test/sprockets/5735b70ef1f983b248a47ab1f71fe267 +0 -0
  62. data/test/dummy/tmp/cache/assets/test/sprockets/5aa48c4b9b88fd0c67e1480c677ac489 +0 -0
  63. data/test/dummy/tmp/cache/assets/test/sprockets/6565915e91061b9bb42eda9dfa4cf3fc +0 -0
  64. data/test/dummy/tmp/cache/assets/test/sprockets/6666059cb20313a69e518d351e00eb1f +0 -0
  65. data/test/dummy/tmp/cache/assets/test/sprockets/6836a9eb9975c10c93f447fc315b8349 +0 -0
  66. data/test/dummy/tmp/cache/assets/test/sprockets/6897902b615db6d106af2822a6e2eb62 +0 -0
  67. data/test/dummy/tmp/cache/assets/test/sprockets/715b9d65172e5d82f05fe7f179e4f641 +0 -0
  68. data/test/dummy/tmp/cache/assets/test/sprockets/768fc2641c0e22c57679e02ed8543d36 +0 -0
  69. data/test/dummy/tmp/cache/assets/test/sprockets/7d06b47b0fa66ce19b154d2355b1ccd1 +0 -0
  70. data/test/dummy/tmp/cache/assets/test/sprockets/7e0eb4be88d9d9a70cd09bbf4007f4a4 +0 -0
  71. data/test/dummy/tmp/cache/assets/test/sprockets/807cd6bd5e0c02ec0772daa3868f9d61 +0 -0
  72. data/test/dummy/tmp/cache/assets/test/sprockets/80cc7db99ad2b64556de9b8229a8f3e7 +0 -0
  73. data/test/dummy/tmp/cache/assets/test/sprockets/844ae5de3828b76089f39336c6f3f6c8 +0 -0
  74. data/test/dummy/tmp/cache/assets/test/sprockets/864e4f1898b310dcf0316a99ba0a3067 +0 -0
  75. data/test/dummy/tmp/cache/assets/test/sprockets/87f0cc2881f608195fdaec58ee54fbfe +0 -0
  76. data/test/dummy/tmp/cache/assets/test/sprockets/884005c51eb580c211fdf86f83cbd7d4 +0 -0
  77. data/test/dummy/tmp/cache/assets/test/sprockets/8c0ac229a3088e0cd0d9db95df428103 +0 -0
  78. data/test/dummy/tmp/cache/assets/test/sprockets/8e0772a1c692d481d2e5ef800602c9b3 +0 -0
  79. data/test/dummy/tmp/cache/assets/test/sprockets/8f0d12234b16caea73d930c4658554e8 +0 -0
  80. data/test/dummy/tmp/cache/assets/test/sprockets/8fdd783b1b18cf2bf735a31f68b32131 +0 -0
  81. data/test/dummy/tmp/cache/assets/test/sprockets/939a36ef1c8fe174ef51ff8a4c5322a8 +0 -0
  82. data/test/dummy/tmp/cache/assets/test/sprockets/950cf58a7bd174e827f4a73f6996e8bd +0 -0
  83. data/test/dummy/tmp/cache/assets/test/sprockets/98e808b2266a0668a608206151fa43d9 +0 -0
  84. data/test/dummy/tmp/cache/assets/test/sprockets/a049654e5ab2df058699bd8968c0f493 +0 -0
  85. data/test/dummy/tmp/cache/assets/test/sprockets/a143a0bc0632c5cb89f596cf5272528e +0 -0
  86. data/test/dummy/tmp/cache/assets/test/sprockets/a3041faa4e334801f4f495371a8cced2 +0 -0
  87. data/test/dummy/tmp/cache/assets/test/sprockets/a3a6cd207915c1867e51fa92ea7827b8 +0 -0
  88. data/test/dummy/tmp/cache/assets/test/sprockets/a4faa95d6bafec287fc59ff59eec9625 +0 -0
  89. data/test/dummy/tmp/cache/assets/test/sprockets/a7b222735fc6d94f5713fa8e4c00feec +0 -0
  90. data/test/dummy/tmp/cache/assets/test/sprockets/ac9180e2a5edc87eec65cd47141d2e80 +0 -0
  91. data/test/dummy/tmp/cache/assets/test/sprockets/ae168f5fd9c4439b289abdb476b026b7 +0 -0
  92. data/test/dummy/tmp/cache/assets/test/sprockets/b0b29e7227617890cf734f30d2ec810e +0 -0
  93. data/test/dummy/tmp/cache/assets/test/sprockets/b3b0b443293be8cc1ebeefa441c1d56f +0 -0
  94. data/test/dummy/tmp/cache/assets/test/sprockets/bd73f0158510de99a53a18f4aeb1fb90 +0 -0
  95. data/test/dummy/tmp/cache/assets/test/sprockets/bec5edffa453a85a42afd4849f868e81 +0 -0
  96. data/test/dummy/tmp/cache/assets/test/sprockets/c04795d4fdfb36d2041fd2ee97edfdfe +0 -0
  97. data/test/dummy/tmp/cache/assets/test/sprockets/c16b6da8711e06b53e78abd01064762c +0 -0
  98. data/test/dummy/tmp/cache/assets/test/sprockets/c1ccccbc73ad9c18a4f6e82a196a2fc2 +0 -0
  99. data/test/dummy/tmp/cache/assets/test/sprockets/c8030c204c8e82370802bab4d708040d +0 -0
  100. data/test/dummy/tmp/cache/assets/test/sprockets/cc7bd06bb71f2155aeeb684d0d880988 +0 -0
  101. data/test/dummy/tmp/cache/assets/test/sprockets/cd0653a7baafdb4f0f1d06fd848a93ad +0 -0
  102. data/test/dummy/tmp/cache/assets/test/sprockets/cd0d14bed7965532879e84a4b6df7188 +0 -0
  103. data/test/dummy/tmp/cache/assets/test/sprockets/ce2d46fba538c6756b32019ae8500047 +0 -0
  104. data/test/dummy/tmp/cache/assets/test/sprockets/cfd79f791d02847181f8fcf1dcf2763e +0 -0
  105. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  106. data/test/dummy/tmp/cache/assets/test/sprockets/d3d217eee875712c702e7b5aa7f61a5f +0 -0
  107. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  108. data/test/dummy/tmp/cache/assets/test/sprockets/dda16ed9cc1e54fd0d97a6036e928d8d +0 -0
  109. data/test/dummy/tmp/cache/assets/test/sprockets/e07c4addcee44a21398170318c44a63c +0 -0
  110. data/test/dummy/tmp/cache/assets/test/sprockets/e26d2dade8b9049db6fe17631d69c20e +0 -0
  111. data/test/dummy/tmp/cache/assets/test/sprockets/e988f9e2cbcefc5fc9b5d9961bb5da0d +0 -0
  112. data/test/dummy/tmp/cache/assets/test/sprockets/f1555999bb69d971b3a4a7128e83efea +0 -0
  113. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  114. data/test/dummy/tmp/cache/assets/test/sprockets/fc1a71f26b662f0fdb7dc872c0d12cc2 +0 -0
  115. data/test/{unit/helpers → helpers}/contour_helper_test.rb +0 -0
  116. data/test/{unit → models}/authentication_test.rb +0 -0
  117. data/test/{unit → models}/user_test.rb +0 -0
  118. metadata +186 -21
@@ -6,7 +6,7 @@
6
6
  </h1>
7
7
  </div>
8
8
 
9
- <%%= form_tag <%= resource_name_plural %>_path, method: :get, remote: true, id: "<%= resource_name_plural %>_search", class: 'form-search', data: { object: 'form-load' } do %>
9
+ <%%= form_tag <%= resource_name_plural %>_path, method: :get, remote: true, id: "<%= resource_name_plural %>_search", class: 'form-search', data: { object: 'form-load', no_turbolink: true } do %>
10
10
  <%%= hidden_field_tag :order %>
11
11
  <%%= text_field_tag 'search', params[:search], class: 'search-query' %>
12
12
  <%%= submit_tag 'Search', class: 'btn btn-primary' %>
@@ -7,14 +7,14 @@ class User < ActiveRecord::Base
7
7
  devise :database_authenticatable, :registerable, :timeoutable,
8
8
  :recoverable, :rememberable, :trackable, :validatable
9
9
 
10
- # Setup accessible (or protected) attributes for your model
11
- attr_accessible :email, :password, :password_confirmation, :remember_me, :first_name, :last_name
10
+ # Concerns
11
+ include Contourable
12
12
 
13
- # Named Scopes
14
- scope :current, conditions: { deleted: false }
13
+ # # Setup accessible (or protected) attributes for your model
14
+ # attr_accessible :email, :password, :password_confirmation, :remember_me, :first_name, :last_name
15
15
 
16
- # Model Relationships
17
- has_many :authentications
16
+ # Named Scopes
17
+ scope :current, -> { where(deleted: false) }
18
18
 
19
19
  def name
20
20
  "#{first_name} #{last_name}"
@@ -29,18 +29,4 @@ class User < ActiveRecord::Base
29
29
  super and self.status == 'active' and not self.deleted?
30
30
  end
31
31
 
32
- def apply_omniauth(omniauth)
33
- unless omniauth['info'].blank?
34
- self.email = omniauth['info']['email'] if email.blank?
35
- self.first_name = omniauth['info']['first_name'] if first_name.blank?
36
- self.last_name = omniauth['info']['last_name'] if last_name.blank?
37
- end
38
- self.password = Devise.friendly_token[0,20] if self.password.blank?
39
- authentications.build( provider: omniauth['provider'], uid: omniauth['uid'] )
40
- end
41
-
42
- def password_required?
43
- (authentications.empty? || !password.blank?) && super
44
- end
45
-
46
32
  end
@@ -2,7 +2,9 @@ require File.expand_path('../boot', __FILE__)
2
2
 
3
3
  require 'rails/all'
4
4
 
5
- Bundler.require
5
+ # Assets should be precompiled for production (so we don't need the gems loaded then)
6
+ Bundler.require(*Rails.groups(assets: %w(development test)))
7
+
6
8
  require "contour"
7
9
 
8
10
  module Dummy
@@ -11,16 +13,6 @@ module Dummy
11
13
  # Application configuration should go into files in config/initializers
12
14
  # -- all .rb files in that directory are automatically loaded.
13
15
 
14
- # Custom directories with classes and modules you want to be autoloadable.
15
- # config.autoload_paths += %W(#{config.root}/extras)
16
-
17
- # Only load the plugins named here, in the order given (default is alphabetical).
18
- # :all can be used as a placeholder for all plugins not explicitly named.
19
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
20
-
21
- # Activate observers that should always be running.
22
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
23
-
24
16
  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
17
  # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
18
  # config.time_zone = 'Central Time (US & Canada)'
@@ -28,18 +20,5 @@ module Dummy
28
20
  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29
21
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30
22
  # config.i18n.default_locale = :de
31
-
32
- # Configure the default encoding used in templates for Ruby 1.9.
33
- config.encoding = "utf-8"
34
-
35
- # Configure sensitive parameters which will be filtered from the log file.
36
- config.filter_parameters += [:password]
37
-
38
- # Enable the asset pipeline
39
- config.assets.enabled = true
40
-
41
- # Version of your assets, change this if you want to expire all your assets
42
- config.assets.version = '1.0'
43
23
  end
44
24
  end
45
-
@@ -7,4 +7,4 @@ if File.exist?(gemfile)
7
7
  Bundler.setup
8
8
  end
9
9
 
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,30 +1,27 @@
1
1
  Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
5
+ # every request. This slows down response time but is perfect for development
6
6
  # since you don't have to restart the web server when you make code changes.
7
7
  config.cache_classes = false
8
8
 
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
11
 
12
- # Show full error reports and disable caching
12
+ # Show full error reports and disable caching.
13
13
  config.consider_all_requests_local = true
14
14
  config.action_controller.perform_caching = false
15
15
 
16
- # Don't care if the mailer can't send
16
+ # Don't care if the mailer can't send.
17
17
  config.action_mailer.raise_delivery_errors = false
18
18
 
19
- # Print deprecation notices to the Rails logger
19
+ # Print deprecation notices to the Rails logger.
20
20
  config.active_support.deprecation = :log
21
21
 
22
- # Only use best-standards-support built into browsers
23
- config.action_dispatch.best_standards_support = :builtin
22
+ # Raise an error on page load if there are pending migrations
23
+ config.active_record.migration_error = :page_load
24
24
 
25
- # Do not compress assets
26
- config.assets.compress = false
27
-
28
- # Expands the lines which load the assets
25
+ # Debug mode disables concatenation and preprocessing of assets.
29
26
  config.assets.debug = true
30
27
  end
@@ -1,60 +1,80 @@
1
1
  Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
- # Code is not reloaded between requests
4
+ # Code is not reloaded between requests.
5
5
  config.cache_classes = true
6
6
 
7
- # Full error reports are disabled and caching is turned on
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both thread web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
8
14
  config.consider_all_requests_local = false
9
15
  config.action_controller.perform_caching = true
10
16
 
11
- # Disable Rails's static asset server (Apache or nginx will already do this)
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
+ # config.action_dispatch.rack_cache = true
21
+
22
+ # Disable Rails's static asset server (Apache or nginx will already do this).
12
23
  config.serve_static_assets = false
13
24
 
14
- # Compress JavaScripts and CSS
15
- config.assets.compress = true
25
+ # Compress JavaScripts and CSS.
26
+ config.assets.js_compressor = :uglifier
27
+ # config.assets.css_compressor = :sass
16
28
 
17
- # Don't fallback to assets pipeline if a precompiled asset is missed
29
+ # Whether to fallback to assets pipeline if a precompiled asset is missed.
18
30
  config.assets.compile = false
19
31
 
20
- # Generate digests for assets URLs
32
+ # Generate digests for assets URLs.
21
33
  config.assets.digest = true
22
34
 
23
- # Defaults to Rails.root.join("public/assets")
24
- # config.assets.manifest = YOUR_PATH
35
+ # Version of your assets, change this if you want to expire all your assets.
36
+ config.assets.version = '1.0'
25
37
 
26
- # Specifies the header that your server uses for sending files
38
+ # Specifies the header that your server uses for sending files.
27
39
  # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
40
  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
41
 
30
42
  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
43
  # config.force_ssl = true
32
44
 
33
- # See everything in the log (default is :info)
34
- # config.log_level = :debug
45
+ # Set to :debug to see everything in the log.
46
+ config.log_level = :info
47
+
48
+ # Prepend all log lines with the following tags.
49
+ # config.log_tags = [ :subdomain, :uuid ]
35
50
 
36
- # Use a different logger for distributed setups
37
- # config.logger = SyslogLogger.new
51
+ # Use a different logger for distributed setups.
52
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
38
53
 
39
- # Use a different cache store in production
54
+ # Use a different cache store in production.
40
55
  # config.cache_store = :mem_cache_store
41
56
 
42
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
57
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
43
58
  # config.action_controller.asset_host = "http://assets.example.com"
44
59
 
45
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
60
+ # Precompile additional assets.
61
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
46
62
  # config.assets.precompile += %w( search.js )
47
63
 
48
- # Disable delivery errors, bad email addresses will be ignored
64
+ # Ignore bad email addresses and do not raise email delivery errors.
65
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
49
66
  # config.action_mailer.raise_delivery_errors = false
50
67
 
51
- # Enable threaded mode
52
- # config.threadsafe!
53
-
54
68
  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
55
- # the I18n.default_locale when a translation can not be found)
69
+ # the I18n.default_locale when a translation can not be found).
56
70
  config.i18n.fallbacks = true
57
71
 
58
- # Send deprecation notices to registered listeners
72
+ # Send deprecation notices to registered listeners.
59
73
  config.active_support.deprecation = :notify
74
+
75
+ # Disable automatic flushing of the log to improve performance.
76
+ # config.autoflush_log = false
77
+
78
+ # Use default logging formatter so that PID and timestamp are not suppressed.
79
+ config.log_formatter = ::Logger::Formatter.new
60
80
  end
@@ -1,39 +1,36 @@
1
1
  Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
5
+ # test suite. You never need to work with it otherwise. Remember that
6
6
  # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
7
+ # and recreated between test runs. Don't rely on the data there!
8
8
  config.cache_classes = true
9
9
 
10
- # Configure static asset server for tests with Cache-Control for performance
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
11
16
  config.serve_static_assets = true
12
17
  config.static_cache_control = "public, max-age=3600"
13
18
 
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
16
-
17
- # Show full error reports and disable caching
19
+ # Show full error reports and disable caching.
18
20
  config.consider_all_requests_local = true
19
21
  config.action_controller.perform_caching = false
20
22
 
21
- # Raise exceptions instead of rendering exception templates
23
+ # Raise exceptions instead of rendering exception templates.
22
24
  config.action_dispatch.show_exceptions = false
23
25
 
24
- # Disable request forgery protection in test environment
25
- config.action_controller.allow_forgery_protection = false
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
26
28
 
27
29
  # Tell Action Mailer not to deliver emails to the real world.
28
30
  # The :test delivery method accumulates sent emails in the
29
31
  # ActionMailer::Base.deliveries array.
30
32
  config.action_mailer.delivery_method = :test
31
33
 
32
- # Use SQL instead of Active Record's schema dumper when creating the test database.
33
- # This is necessary if your schema can't be completely dumped by the schema dumper,
34
- # like if you have constraints or database-specific column types
35
- # config.active_record.schema_format = :sql
36
-
37
- # Print deprecation notices to the stderr
34
+ # Print deprecation notices to the stderr.
38
35
  config.active_support.deprecation = :stderr
39
36
  end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -1,10 +1,16 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
6
7
  # inflect.plural /^(ox)$/i, '\1en'
7
8
  # inflect.singular /^(ox)en/i, '\1'
8
9
  # inflect.irregular 'person', 'people'
9
10
  # inflect.uncountable %w( fish sheep )
10
11
  # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -2,6 +2,11 @@
2
2
 
3
3
  # Your secret key for verifying the integrity of signed cookies.
4
4
  # If you change this key, all old signed cookies will become invalid!
5
+
5
6
  # Make sure the secret is at least 30 characters and all random,
6
7
  # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = '207c7644d0ea643a0ed5a78a2af90dae9da2caf19c96aaa3573bfa5e656c313af6374a71983d95155a4f1bdcfebf22b1bc495790904d81bb20e41392b0b3e97b'
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = '207c7644d0ea643a0ed5a78a2af90dae9da2caf19c96aaa3573bfa5e656c313af6374a71983d95155a4f1bdcfebf22b1bc495790904d81bb20e41392b0b3e97b'
@@ -1,8 +1,3 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- # Dummy::Application.config.session_store :active_record_store
3
+ Dummy::Application.config.session_store :encrypted_cookie_store, key: '_dummy_session'
@@ -1,14 +1,14 @@
1
1
  # Be sure to restart your server when you modify this file.
2
- #
2
+
3
3
  # This file contains settings for ActionController::ParamsWrapper which
4
4
  # is enabled by default.
5
5
 
6
6
  # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
7
  ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json]
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
9
  end
10
10
 
11
- # Disable root element in JSON by default.
12
- ActiveSupport.on_load(:active_record) do
13
- self.include_root_in_json = false
14
- end
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -1,5 +1,23 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
3
21
 
4
22
  en:
5
23
  hello: "Hello world"
@@ -4,7 +4,7 @@ Dummy::Application.routes.draw do
4
4
 
5
5
  resources :users
6
6
 
7
- match "/logged_in_page" => "welcome#logged_in_page", as: :logged_in_page
7
+ get "/logged_in_page" => "welcome#logged_in_page", as: :logged_in_page
8
8
 
9
9
  root to: 'welcome#index'
10
10
 
Binary file
@@ -50890,3 +50890,3181 @@ Completed 401 Unauthorized in 320ms
50890
50890
   (0.1ms) begin transaction
50891
50891
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
50892
50892
   (0.1ms) rollback transaction
50893
+ Connecting to database specified by database.yml
50894
+  (0.1ms) begin transaction
50895
+ Fixture Delete (0.4ms) DELETE FROM "authentications"
50896
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 14:31:17', '2013-02-26 14:31:17', 949717663, 201799169)
50897
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 14:31:17', '2013-02-26 14:31:17', 876923740, 201799169)
50898
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 14:31:17', '2013-02-26 14:31:17', 864673665, 201799169)
50899
+ Fixture Delete (0.2ms) DELETE FROM "users"
50900
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 14:31:17', '2013-02-26 14:31:17', 201799169)
50901
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 14:31:17', '2013-02-26 14:31:17', 999914115)
50902
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 14:31:17', '2013-02-26 14:31:17', 725306934)
50903
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 14:31:17', '2013-02-26 14:31:17', 349534908)
50904
+  (1.2ms) commit transaction
50905
+  (0.1ms) begin transaction
50906
+ Authentication Load (4.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
50907
+  (0.1ms) rollback transaction
50908
+  (0.1ms) begin transaction
50909
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
50910
+  (0.1ms) rollback transaction
50911
+  (0.1ms) begin transaction
50912
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
50913
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
50914
+  (0.2ms) SELECT COUNT(*) FROM "authentications" 
50915
+ Processing by Contour::AuthenticationsController#create as HTML
50916
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-02-26 14:31:17 UTC", "updated_at"=>"2013-02-26 14:31:17 UTC"}}
50917
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
50918
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
50919
+ Logged in user found, creating associated authentication.
50920
+  (0.1ms) SAVEPOINT active_record_1
50921
+ SQL (1.0ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 14:31:18 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 26 Feb 2013 14:31:18 UTC +00:00], ["user_id", 201799169]]
50922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50923
+ Redirected to http://test.host/authentications
50924
+ Completed 302 Found in 137ms (ActiveRecord: 1.5ms)
50925
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
50926
+  (0.7ms) rollback transaction
50927
+  (0.1ms) begin transaction
50928
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
50929
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
50930
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
50931
+ Processing by Contour::AuthenticationsController#destroy as HTML
50932
+ Parameters: {"id"=>"949717663"}
50933
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
50934
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
50935
+  (0.1ms) SAVEPOINT active_record_1
50936
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
50937
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50938
+ Redirected to http://test.host/authentications
50939
+ Completed 302 Found in 9ms (ActiveRecord: 1.0ms)
50940
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
50941
+  (0.4ms) rollback transaction
50942
+  (0.1ms) begin transaction
50943
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
50944
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
50945
+ Processing by Contour::AuthenticationsController#index as HTML
50946
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
50947
+  (0.2ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
50948
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
50949
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (4.0ms)
50950
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.5ms)
50951
+ Completed 200 OK in 184ms (Views: 180.4ms | ActiveRecord: 0.6ms)
50952
+  (0.1ms) rollback transaction
50953
+  (0.1ms) begin transaction
50954
+ Processing by Contour::PasswordsController#create as HTML
50955
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
50956
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
50957
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'ZV67nri2ktxDGq7fHfsQ' LIMIT 1
50958
+  (0.1ms) SAVEPOINT active_record_1
50959
+  (0.3ms) UPDATE "users" SET "reset_password_token" = 'ZV67nri2ktxDGq7fHfsQ', "reset_password_sent_at" = '2013-02-26 14:31:18.518405', "updated_at" = '2013-02-26 14:31:18.520467' WHERE "users"."id" = 201799169
50960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50961
+
50962
+ Sent mail to valid@example.com (77ms)
50963
+ Date: Tue, 26 Feb 2013 09:31:19 -0500
50964
+ From: please-change-me-at-config-initializers-devise@example.com
50965
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
50966
+ To: valid@example.com
50967
+ Message-ID: <512cc736f24ce_78e53feaed835adc4768c@edge2.partners.org.mail>
50968
+ Subject: Reset password instructions
50969
+ Mime-Version: 1.0
50970
+ Content-Type: text/html;
50971
+ charset=UTF-8
50972
+ Content-Transfer-Encoding: 7bit
50973
+
50974
+ <p>Hello valid@example.com!</p>
50975
+
50976
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
50977
+
50978
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=ZV67nri2ktxDGq7fHfsQ">Change my password</a></p>
50979
+
50980
+ <p>If you didn't request this, please ignore this email.</p>
50981
+ <p>Your password won't change until you access the link above and create a new one.</p>
50982
+
50983
+ Redirected to http://test.host/users/login
50984
+ Completed 302 Found in 587ms (ActiveRecord: 0.0ms)
50985
+  (0.6ms) rollback transaction
50986
+  (0.1ms) begin transaction
50987
+ Processing by Contour::PasswordsController#new as HTML
50988
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.9ms)
50989
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.4ms)
50990
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (10.6ms)
50991
+ Completed 200 OK in 34ms (Views: 31.7ms | ActiveRecord: 0.0ms)
50992
+  (0.1ms) rollback transaction
50993
+  (0.1ms) begin transaction
50994
+  (0.1ms) rollback transaction
50995
+  (0.1ms) begin transaction
50996
+  (0.1ms) rollback transaction
50997
+  (0.1ms) begin transaction
50998
+  (0.1ms) rollback transaction
50999
+  (0.1ms) begin transaction
51000
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51001
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51002
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51003
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 09:31:19 -0500
51004
+ Processing by WelcomeController#logged_in_page as HTML
51005
+ Completed 401 Unauthorized in 1ms
51006
+  (0.2ms) SAVEPOINT active_record_1
51007
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
51008
+ Binary data inserted for `string` type on column `encrypted_password`
51009
+ SQL (1.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 14:31:19 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$Q4v.JaSBoqEEUk2RidIrmu.IQ9.ZjPTbh1el9GF4Ut7EAZhdOQDw2"], ["first_name", "Deleted"], ["last_name", "User"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Tue, 26 Feb 2013 14:31:19 UTC +00:00]]
51010
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51011
+  (0.1ms) SAVEPOINT active_record_1
51012
+  (0.2ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
51013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51014
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
51015
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
51016
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 09:31:19 -0500
51017
+ Processing by Contour::SessionsController#create as HTML
51018
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
51019
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
51020
+  (0.1ms) SAVEPOINT active_record_1
51021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51022
+ Completed 401 Unauthorized in 47ms
51023
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 09:31:19 -0500
51024
+ Processing by Contour::SessionsController#new as HTML
51025
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.9ms)
51026
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.7ms)
51027
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.1ms)
51028
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.8ms)
51029
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (6.2ms)
51030
+ Completed 200 OK in 35ms (Views: 33.6ms | ActiveRecord: 0.0ms)
51031
+  (0.6ms) rollback transaction
51032
+  (0.1ms) begin transaction
51033
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51034
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51035
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51036
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 09:31:19 -0500
51037
+ Processing by WelcomeController#logged_in_page as HTML
51038
+ Completed 401 Unauthorized in 1ms
51039
+  (0.1ms) SAVEPOINT active_record_1
51040
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
51041
+ Binary data inserted for `string` type on column `encrypted_password`
51042
+ 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", Tue, 26 Feb 2013 14:31:19 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$4svCDXEQD57WVIc8ZH0mIOF5ic/Bj9dO6CcsX2u4WJklK8L7yG9ZS"], ["first_name", "FirstName"], ["last_name", "LastName"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Tue, 26 Feb 2013 14:31:19 UTC +00:00]]
51043
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51044
+  (0.0ms) SAVEPOINT active_record_1
51045
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
51046
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51047
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
51048
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
51049
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 09:31:19 -0500
51050
+ Processing by Contour::SessionsController#create as HTML
51051
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
51052
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
51053
+  (0.1ms) SAVEPOINT active_record_1
51054
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2013-02-26 14:31:19.562091', "current_sign_in_at" = '2013-02-26 14:31:19.562091', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-02-26 14:31:19.563325' WHERE "users"."id" = 999914116
51055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51056
+ Redirected to http://www.example.com/logged_in_page
51057
+ Completed 302 Found in 16ms (ActiveRecord: 0.0ms)
51058
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 09:31:19 -0500
51059
+ Processing by WelcomeController#logged_in_page as HTML
51060
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
51061
+ Completed 200 OK in 15ms (Views: 12.6ms | ActiveRecord: 0.2ms)
51062
+  (0.6ms) rollback transaction
51063
+  (0.1ms) begin transaction
51064
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51065
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51066
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51067
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 09:31:19 -0500
51068
+ Processing by WelcomeController#logged_in_page as HTML
51069
+ Completed 401 Unauthorized in 1ms
51070
+  (0.1ms) SAVEPOINT active_record_1
51071
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
51072
+ Binary data inserted for `string` type on column `encrypted_password`
51073
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 14:31:19 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$PJ0ZfGwaSXRlk8aVgVw8H.iuyg6M0qit6Fhz16HuzuSUib2Lp5f7C"], ["first_name", "MyString"], ["last_name", "MyString"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Tue, 26 Feb 2013 14:31:19 UTC +00:00]]
51074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51075
+  (0.1ms) SAVEPOINT active_record_1
51076
+  (0.2ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
51077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51078
+ SQL (0.5ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
51079
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
51080
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 09:31:19 -0500
51081
+ Processing by Contour::SessionsController#create as HTML
51082
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
51083
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
51084
+  (0.1ms) SAVEPOINT active_record_1
51085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51086
+ Completed 401 Unauthorized in 12ms
51087
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 09:31:19 -0500
51088
+ Processing by Contour::SessionsController#new as HTML
51089
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (57.3ms)
51090
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.9ms)
51091
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.2ms)
51092
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.6ms)
51093
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.0ms)
51094
+ Completed 200 OK in 85ms (Views: 83.0ms | ActiveRecord: 0.0ms)
51095
+  (0.7ms) rollback transaction
51096
+  (0.1ms) begin transaction
51097
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51098
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51099
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51100
+ Started GET "/" for 127.0.0.1 at 2013-02-26 09:31:19 -0500
51101
+ Processing by WelcomeController#index as HTML
51102
+ Completed 401 Unauthorized in 1ms
51103
+  (0.1ms) rollback transaction
51104
+  (0.1ms) begin transaction
51105
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51106
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51107
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51108
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 09:31:19 -0500
51109
+ Processing by WelcomeController#logged_in_page as JSON
51110
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
51111
+  (0.1ms) SAVEPOINT active_record_1
51112
+  (0.3ms) UPDATE "users" SET "last_sign_in_at" = '2013-02-26 14:31:20.122924', "current_sign_in_at" = '2013-02-26 14:31:20.122924', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-02-26 14:31:20.124579' WHERE "users"."id" = 201799169
51113
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51114
+ Completed 200 OK in 324ms (Views: 0.7ms | ActiveRecord: 0.8ms)
51115
+  (0.7ms) rollback transaction
51116
+  (0.1ms) begin transaction
51117
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51118
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51119
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51120
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 09:31:20 -0500
51121
+ Processing by WelcomeController#logged_in_page as JSON
51122
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
51123
+ Completed 401 Unauthorized in 313ms
51124
+  (0.1ms) rollback transaction
51125
+  (0.1ms) begin transaction
51126
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51127
+  (0.1ms) rollback transaction
51128
+  (0.1ms) begin transaction
51129
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51130
+  (0.1ms) rollback transaction
51131
+ -------------------------------------------------
51132
+ AuthenticationTest: test_should_get_provider_name
51133
+ -------------------------------------------------
51134
+  (0.9ms) begin transaction
51135
+ Fixture Delete (12.8ms) DELETE FROM "authentications"
51136
+ Fixture Insert (0.7ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 949717663, 201799169)
51137
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 876923740, 201799169)
51138
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 864673665, 201799169)
51139
+ Fixture Delete (1.0ms) DELETE FROM "users"
51140
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 201799169)
51141
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 999914115)
51142
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 725306934)
51143
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 349534908)
51144
+  (1.7ms) commit transaction
51145
+  (0.1ms) begin transaction
51146
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
51147
+  (0.2ms) rollback transaction
51148
+ --------------------------------------------------------------------------------
51149
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
51150
+ --------------------------------------------------------------------------------
51151
+  (0.1ms) begin transaction
51152
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
51153
+  (0.1ms) rollback transaction
51154
+ -------------------------------------------------------------------------
51155
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
51156
+ -------------------------------------------------------------------------
51157
+  (0.2ms) begin transaction
51158
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51159
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
51160
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
51161
+ Processing by Contour::AuthenticationsController#create as HTML
51162
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-02-26 15:11:29 UTC", "updated_at"=>"2013-02-26 15:11:29 UTC"}}
51163
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
51164
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
51165
+ Logged in user found, creating associated authentication.
51166
+  (0.1ms) SAVEPOINT active_record_1
51167
+ SQL (43.0ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:11:29 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 26 Feb 2013 15:11:29 UTC +00:00], ["user_id", 201799169]]
51168
+  (0.2ms) RELEASE SAVEPOINT active_record_1
51169
+ Redirected to http://test.host/authentications
51170
+ Completed 302 Found in 261ms (ActiveRecord: 43.8ms)
51171
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
51172
+  (0.9ms) rollback transaction
51173
+ --------------------------------------------------------------------------
51174
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
51175
+ --------------------------------------------------------------------------
51176
+  (0.1ms) begin transaction
51177
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51178
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
51179
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
51180
+ Processing by Contour::AuthenticationsController#destroy as HTML
51181
+ Parameters: {"id"=>"949717663"}
51182
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
51183
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
51184
+  (0.1ms) SAVEPOINT active_record_1
51185
+ SQL (0.5ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
51186
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51187
+ Redirected to http://test.host/authentications
51188
+ Completed 302 Found in 9ms (ActiveRecord: 1.3ms)
51189
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
51190
+  (0.7ms) rollback transaction
51191
+ -------------------------------------------------------------
51192
+ Contour::AuthenticationsControllerTest: test_should_get_index
51193
+ -------------------------------------------------------------
51194
+  (0.2ms) begin transaction
51195
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51196
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
51197
+ Processing by Contour::AuthenticationsController#index as HTML
51198
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
51199
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
51200
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
51201
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (78.1ms)
51202
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.7ms)
51203
+ Completed 500 Internal Server Error in 1348ms
51204
+  (0.2ms) rollback transaction
51205
+ -----------------------------------------------------------------------------
51206
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
51207
+ -----------------------------------------------------------------------------
51208
+  (0.1ms) begin transaction
51209
+ Processing by Contour::PasswordsController#create as HTML
51210
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
51211
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
51212
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'wcVff3hFzwXEvXxxFzbV' LIMIT 1
51213
+  (0.1ms) SAVEPOINT active_record_1
51214
+ SQL (0.8ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "wcVff3hFzwXEvXxxFzbV"], ["reset_password_sent_at", Tue, 26 Feb 2013 15:11:31 UTC +00:00], ["updated_at", Tue, 26 Feb 2013 15:11:31 UTC +00:00]]
51215
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51216
+
51217
+ Sent mail to valid@example.com (82.9ms)
51218
+ Date: Tue, 26 Feb 2013 10:11:31 -0500
51219
+ From: please-change-me-at-config-initializers-devise@example.com
51220
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
51221
+ To: valid@example.com
51222
+ Message-ID: <512cd0a3a0a11_81313fe018435ad41fb@edge2.partners.org.mail>
51223
+ Subject: Reset password instructions
51224
+ Mime-Version: 1.0
51225
+ Content-Type: text/html;
51226
+ charset=UTF-8
51227
+ Content-Transfer-Encoding: 7bit
51228
+
51229
+ <p>Hello valid@example.com!</p>
51230
+
51231
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
51232
+
51233
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=wcVff3hFzwXEvXxxFzbV">Change my password</a></p>
51234
+
51235
+ <p>If you didn't request this, please ignore this email.</p>
51236
+ <p>Your password won't change until you access the link above and create a new one.</p>
51237
+
51238
+ Redirected to http://test.host/users/login
51239
+ Completed 302 Found in 351ms (ActiveRecord: 0.0ms)
51240
+  (0.7ms) rollback transaction
51241
+ -----------------------------------------------------------------------------
51242
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
51243
+ -----------------------------------------------------------------------------
51244
+  (0.1ms) begin transaction
51245
+ Processing by Contour::PasswordsController#new as HTML
51246
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.0ms)
51247
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (99.6ms)
51248
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (105.4ms)
51249
+ Completed 500 Internal Server Error in 232ms
51250
+  (0.1ms) rollback transaction
51251
+ -----------------------------------------------------
51252
+ ContourHelperTest: test_should_show_sort_field_helper
51253
+ -----------------------------------------------------
51254
+  (0.1ms) begin transaction
51255
+  (0.1ms) rollback transaction
51256
+ ---------------------------------------------------------------------
51257
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
51258
+ ---------------------------------------------------------------------
51259
+  (0.1ms) begin transaction
51260
+  (0.2ms) rollback transaction
51261
+ -----------------------
51262
+ ContourTest: test_truth
51263
+ -----------------------
51264
+  (0.1ms) begin transaction
51265
+  (0.1ms) rollback transaction
51266
+ --------------------------------------------------------------------
51267
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
51268
+ --------------------------------------------------------------------
51269
+  (0.1ms) begin transaction
51270
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51271
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51272
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51273
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:11:32 -0500
51274
+ Processing by WelcomeController#logged_in_page as HTML
51275
+ Completed 401 Unauthorized in 55ms
51276
+  (0.1ms) SAVEPOINT active_record_1
51277
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
51278
+ Binary data inserted for `string` type on column `encrypted_password`
51279
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:11:32 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$wRNbXHHDaGCMZdvXRv1BGu2U8uUw0jIA46mJjtPv2WoEdtPSndDTa"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 26 Feb 2013 15:11:32 UTC +00:00]]
51280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51281
+  (0.1ms) SAVEPOINT active_record_1
51282
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51283
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51284
+  (0.2ms) RELEASE SAVEPOINT active_record_1
51285
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
51286
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
51287
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:11:32 -0500
51288
+ Processing by Contour::SessionsController#create as HTML
51289
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
51290
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
51291
+  (0.1ms) SAVEPOINT active_record_1
51292
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51293
+ Completed 401 Unauthorized in 17ms
51294
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 10:11:32 -0500
51295
+ Processing by Contour::SessionsController#new as HTML
51296
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.4ms)
51297
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.6ms)
51298
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.2ms)
51299
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.8ms)
51300
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.1ms)
51301
+ Completed 500 Internal Server Error in 159ms
51302
+  (0.9ms) rollback transaction
51303
+ --------------------------------------------------------
51304
+ NavigationTest: test_friendly_url_forwarding_after_login
51305
+ --------------------------------------------------------
51306
+  (0.1ms) begin transaction
51307
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51308
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51309
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51310
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:11:32 -0500
51311
+ Processing by WelcomeController#logged_in_page as HTML
51312
+ Completed 401 Unauthorized in 2ms
51313
+  (0.2ms) SAVEPOINT active_record_1
51314
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
51315
+ Binary data inserted for `string` type on column `encrypted_password`
51316
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:11:32 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$FoRPHmIHE0lsk1JF9FaIxuXvKIb9u9SVQ6Iq9s6G99mWXF44ywAEe"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 26 Feb 2013 15:11:32 UTC +00:00]]
51317
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51318
+  (0.1ms) SAVEPOINT active_record_1
51319
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51320
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51322
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
51323
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
51324
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:11:32 -0500
51325
+ Processing by Contour::SessionsController#create as HTML
51326
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
51327
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
51328
+  (0.1ms) SAVEPOINT active_record_1
51329
+ SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 26 Feb 2013 15:11:32 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 15:11:32 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 15:11:32 UTC +00:00]]
51330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51331
+ Redirected to http://www.example.com/logged_in_page
51332
+ Completed 302 Found in 23ms (ActiveRecord: 0.0ms)
51333
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:11:32 -0500
51334
+ Processing by WelcomeController#logged_in_page as HTML
51335
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
51336
+ Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 0.2ms)
51337
+  (0.9ms) rollback transaction
51338
+ --------------------------------------------------------------------
51339
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
51340
+ --------------------------------------------------------------------
51341
+  (0.1ms) begin transaction
51342
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51343
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51344
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51345
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:11:32 -0500
51346
+ Processing by WelcomeController#logged_in_page as HTML
51347
+ Completed 401 Unauthorized in 2ms
51348
+  (0.1ms) SAVEPOINT active_record_1
51349
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
51350
+ Binary data inserted for `string` type on column `encrypted_password`
51351
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:11:32 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$wd8AVdOrq4ECFjZ.NcUB9.hbiMJ0XwgXqRhYGxuCTGAQbrJwaqWB2"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 26 Feb 2013 15:11:32 UTC +00:00]]
51352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51353
+  (0.1ms) SAVEPOINT active_record_1
51354
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51355
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51356
+  (0.3ms) RELEASE SAVEPOINT active_record_1
51357
+ SQL (33.0ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
51358
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
51359
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:11:32 -0500
51360
+ Processing by Contour::SessionsController#create as HTML
51361
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
51362
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
51363
+  (0.1ms) SAVEPOINT active_record_1
51364
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51365
+ Completed 401 Unauthorized in 13ms
51366
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 10:11:33 -0500
51367
+ Processing by Contour::SessionsController#new as HTML
51368
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
51369
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.7ms)
51370
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
51371
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.8ms)
51372
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.3ms)
51373
+ Completed 500 Internal Server Error in 80ms
51374
+  (0.9ms) rollback transaction
51375
+ -------------------------------------------------------------
51376
+ NavigationTest: test_root_navigation_redirected_to_login_page
51377
+ -------------------------------------------------------------
51378
+  (0.1ms) begin transaction
51379
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51380
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51381
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51382
+ Started GET "/" for 127.0.0.1 at 2013-02-26 10:11:33 -0500
51383
+ Processing by WelcomeController#index as HTML
51384
+ Completed 401 Unauthorized in 2ms
51385
+  (0.1ms) rollback transaction
51386
+ -------------------------------------------------------------------------
51387
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
51388
+ -------------------------------------------------------------------------
51389
+  (0.1ms) begin transaction
51390
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51391
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51392
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51393
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 10:11:33 -0500
51394
+ Processing by WelcomeController#logged_in_page as JSON
51395
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
51396
+  (0.1ms) SAVEPOINT active_record_1
51397
+ SQL (161.1ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 26 Feb 2013 15:11:33 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 15:11:33 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 15:11:33 UTC +00:00]]
51398
+  (0.3ms) RELEASE SAVEPOINT active_record_1
51399
+ Completed 200 OK in 486ms (Views: 0.7ms | ActiveRecord: 161.8ms)
51400
+  (296.2ms) rollback transaction
51401
+ ------------------------------------------------------------------------------------------------
51402
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
51403
+ ------------------------------------------------------------------------------------------------
51404
+  (0.2ms) begin transaction
51405
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51406
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51407
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51408
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 10:11:34 -0500
51409
+ Processing by WelcomeController#logged_in_page as JSON
51410
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
51411
+ Completed 401 Unauthorized in 299ms
51412
+  (0.2ms) rollback transaction
51413
+ ------------------------------------
51414
+ UserTest: test_should_apply_omniauth
51415
+ ------------------------------------
51416
+  (0.1ms) begin transaction
51417
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51418
+  (0.1ms) rollback transaction
51419
+ --------------------------------------
51420
+ UserTest: test_should_get_reverse_name
51421
+ --------------------------------------
51422
+  (0.1ms) begin transaction
51423
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51424
+  (0.1ms) rollback transaction
51425
+ -------------------------------------------------
51426
+ AuthenticationTest: test_should_get_provider_name
51427
+ -------------------------------------------------
51428
+  (9.0ms) begin transaction
51429
+ Fixture Delete (0.8ms) DELETE FROM "authentications"
51430
+ Fixture Insert (16.0ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 15:15:38', '2013-02-26 15:15:38', 949717663, 201799169)
51431
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 15:15:38', '2013-02-26 15:15:38', 876923740, 201799169)
51432
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 15:15:38', '2013-02-26 15:15:38', 864673665, 201799169)
51433
+ Fixture Delete (1.1ms) DELETE FROM "users"
51434
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:15:39', '2013-02-26 15:15:39', 201799169)
51435
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:15:39', '2013-02-26 15:15:39', 999914115)
51436
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:15:39', '2013-02-26 15:15:39', 725306934)
51437
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:15:39', '2013-02-26 15:15:39', 349534908)
51438
+  (1.9ms) commit transaction
51439
+  (0.1ms) begin transaction
51440
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
51441
+  (0.1ms) rollback transaction
51442
+ --------------------------------------------------------------------------------
51443
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
51444
+ --------------------------------------------------------------------------------
51445
+  (0.1ms) begin transaction
51446
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
51447
+  (0.1ms) rollback transaction
51448
+ -------------------------------------------------------------------------
51449
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
51450
+ -------------------------------------------------------------------------
51451
+  (0.2ms) begin transaction
51452
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51453
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
51454
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
51455
+ Processing by Contour::AuthenticationsController#create as HTML
51456
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-02-26 15:15:38 UTC", "updated_at"=>"2013-02-26 15:15:38 UTC"}}
51457
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
51458
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
51459
+ Logged in user found, creating associated authentication.
51460
+  (0.1ms) SAVEPOINT active_record_1
51461
+ SQL (42.9ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:15:39 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 26 Feb 2013 15:15:39 UTC +00:00], ["user_id", 201799169]]
51462
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51463
+ Redirected to http://test.host/authentications
51464
+ Completed 302 Found in 113ms (ActiveRecord: 43.6ms)
51465
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
51466
+  (0.8ms) rollback transaction
51467
+ --------------------------------------------------------------------------
51468
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
51469
+ --------------------------------------------------------------------------
51470
+  (0.1ms) begin transaction
51471
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51472
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
51473
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
51474
+ Processing by Contour::AuthenticationsController#destroy as HTML
51475
+ Parameters: {"id"=>"949717663"}
51476
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
51477
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
51478
+  (0.1ms) SAVEPOINT active_record_1
51479
+ SQL (0.5ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
51480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51481
+ Redirected to http://test.host/authentications
51482
+ Completed 302 Found in 7ms (ActiveRecord: 1.2ms)
51483
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
51484
+  (0.7ms) rollback transaction
51485
+ -------------------------------------------------------------
51486
+ Contour::AuthenticationsControllerTest: test_should_get_index
51487
+ -------------------------------------------------------------
51488
+  (0.1ms) begin transaction
51489
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51490
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
51491
+ Processing by Contour::AuthenticationsController#index as HTML
51492
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
51493
+ Authentication Exists (0.3ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
51494
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
51495
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (31.0ms)
51496
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.2ms)
51497
+ Completed 200 OK in 2146ms (Views: 2142.0ms | ActiveRecord: 1.0ms)
51498
+  (0.2ms) rollback transaction
51499
+ -----------------------------------------------------------------------------
51500
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
51501
+ -----------------------------------------------------------------------------
51502
+  (0.2ms) begin transaction
51503
+ Processing by Contour::PasswordsController#create as HTML
51504
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
51505
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
51506
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'L7AK3HReooprg1y2n4sL' LIMIT 1
51507
+  (0.1ms) SAVEPOINT active_record_1
51508
+ SQL (0.9ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "L7AK3HReooprg1y2n4sL"], ["reset_password_sent_at", Tue, 26 Feb 2013 15:15:41 UTC +00:00], ["updated_at", Tue, 26 Feb 2013 15:15:41 UTC +00:00]]
51509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51510
+
51511
+ Sent mail to valid@example.com (83.1ms)
51512
+ Date: Tue, 26 Feb 2013 10:15:41 -0500
51513
+ From: please-change-me-at-config-initializers-devise@example.com
51514
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
51515
+ To: valid@example.com
51516
+ Message-ID: <512cd19ddf58b_81fc3fc8a1035ad0159f2@edge2.partners.org.mail>
51517
+ Subject: Reset password instructions
51518
+ Mime-Version: 1.0
51519
+ Content-Type: text/html;
51520
+ charset=UTF-8
51521
+ Content-Transfer-Encoding: 7bit
51522
+
51523
+ <p>Hello valid@example.com!</p>
51524
+
51525
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
51526
+
51527
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=L7AK3HReooprg1y2n4sL">Change my password</a></p>
51528
+
51529
+ <p>If you didn't request this, please ignore this email.</p>
51530
+ <p>Your password won't change until you access the link above and create a new one.</p>
51531
+
51532
+ Redirected to http://test.host/users/login
51533
+ Completed 302 Found in 355ms (ActiveRecord: 0.0ms)
51534
+  (0.8ms) rollback transaction
51535
+ -----------------------------------------------------------------------------
51536
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
51537
+ -----------------------------------------------------------------------------
51538
+  (0.1ms) begin transaction
51539
+ Processing by Contour::PasswordsController#new as HTML
51540
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.1ms)
51541
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (42.4ms)
51542
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (48.2ms)
51543
+ Completed 200 OK in 138ms (Views: 136.5ms | ActiveRecord: 0.0ms)
51544
+  (0.1ms) rollback transaction
51545
+ -----------------------------------------------------
51546
+ ContourHelperTest: test_should_show_sort_field_helper
51547
+ -----------------------------------------------------
51548
+  (0.1ms) begin transaction
51549
+  (0.1ms) rollback transaction
51550
+ ---------------------------------------------------------------------
51551
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
51552
+ ---------------------------------------------------------------------
51553
+  (0.1ms) begin transaction
51554
+  (0.1ms) rollback transaction
51555
+ -----------------------
51556
+ ContourTest: test_truth
51557
+ -----------------------
51558
+  (0.1ms) begin transaction
51559
+  (0.1ms) rollback transaction
51560
+ --------------------------------------------------------------------
51561
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
51562
+ --------------------------------------------------------------------
51563
+  (0.1ms) begin transaction
51564
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51565
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51566
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51567
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:15:42 -0500
51568
+ Processing by WelcomeController#logged_in_page as HTML
51569
+ Completed 401 Unauthorized in 38ms
51570
+  (0.1ms) SAVEPOINT active_record_1
51571
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
51572
+ Binary data inserted for `string` type on column `encrypted_password`
51573
+ SQL (1.1ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:15:42 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$wxlRN.bhakGECQeOKo13POQEGbXXlgfVUK6gtjc0FG0eq70EZQEdq"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 26 Feb 2013 15:15:42 UTC +00:00]]
51574
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51575
+  (0.1ms) SAVEPOINT active_record_1
51576
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51577
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51579
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
51580
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
51581
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:15:42 -0500
51582
+ Processing by Contour::SessionsController#create as HTML
51583
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
51584
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
51585
+  (0.1ms) SAVEPOINT active_record_1
51586
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51587
+ Completed 401 Unauthorized in 17ms
51588
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 10:15:42 -0500
51589
+ Processing by Contour::SessionsController#new as HTML
51590
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
51591
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.3ms)
51592
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.2ms)
51593
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.6ms)
51594
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.2ms)
51595
+ Completed 200 OK in 113ms (Views: 110.9ms | ActiveRecord: 0.0ms)
51596
+  (0.9ms) rollback transaction
51597
+ --------------------------------------------------------
51598
+ NavigationTest: test_friendly_url_forwarding_after_login
51599
+ --------------------------------------------------------
51600
+  (0.1ms) begin transaction
51601
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51602
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51603
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51604
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:15:42 -0500
51605
+ Processing by WelcomeController#logged_in_page as HTML
51606
+ Completed 401 Unauthorized in 3ms
51607
+  (0.2ms) SAVEPOINT active_record_1
51608
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
51609
+ Binary data inserted for `string` type on column `encrypted_password`
51610
+ SQL (1.3ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:15:42 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$AcwG.K0cXVdG/tpqd28nFOc3i7YIEM/xyXSXFKoaqjNMYbdNRWHX2"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 26 Feb 2013 15:15:42 UTC +00:00]]
51611
+  (0.2ms) RELEASE SAVEPOINT active_record_1
51612
+  (0.1ms) SAVEPOINT active_record_1
51613
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51614
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51615
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51616
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
51617
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
51618
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:15:42 -0500
51619
+ Processing by Contour::SessionsController#create as HTML
51620
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
51621
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
51622
+  (0.1ms) SAVEPOINT active_record_1
51623
+ SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 26 Feb 2013 15:15:42 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 15:15:42 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 15:15:42 UTC +00:00]]
51624
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51625
+ Redirected to http://www.example.com/logged_in_page
51626
+ Completed 302 Found in 23ms (ActiveRecord: 0.0ms)
51627
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:15:43 -0500
51628
+ Processing by WelcomeController#logged_in_page as HTML
51629
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
51630
+ Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.2ms)
51631
+  (0.9ms) rollback transaction
51632
+ --------------------------------------------------------------------
51633
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
51634
+ --------------------------------------------------------------------
51635
+  (0.1ms) begin transaction
51636
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51637
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51638
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51639
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:15:43 -0500
51640
+ Processing by WelcomeController#logged_in_page as HTML
51641
+ Completed 401 Unauthorized in 2ms
51642
+  (0.1ms) SAVEPOINT active_record_1
51643
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
51644
+ Binary data inserted for `string` type on column `encrypted_password`
51645
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:15:43 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$MKgwBBMlIwqbpBoBkgoe6uKM33Yj3sEdHVucclsav6KdQPVmbf/3K"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 26 Feb 2013 15:15:43 UTC +00:00]]
51646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51647
+  (0.1ms) SAVEPOINT active_record_1
51648
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51649
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51651
+ SQL (0.5ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
51652
+ SQL (0.4ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
51653
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:15:43 -0500
51654
+ Processing by Contour::SessionsController#create as HTML
51655
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
51656
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
51657
+  (0.1ms) SAVEPOINT active_record_1
51658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51659
+ Completed 401 Unauthorized in 13ms
51660
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 10:15:43 -0500
51661
+ Processing by Contour::SessionsController#new as HTML
51662
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
51663
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.0ms)
51664
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
51665
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.0ms)
51666
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.3ms)
51667
+ Completed 200 OK in 35ms (Views: 32.7ms | ActiveRecord: 0.0ms)
51668
+  (0.7ms) rollback transaction
51669
+ -------------------------------------------------------------
51670
+ NavigationTest: test_root_navigation_redirected_to_login_page
51671
+ -------------------------------------------------------------
51672
+  (0.1ms) begin transaction
51673
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51674
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51675
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51676
+ Started GET "/" for 127.0.0.1 at 2013-02-26 10:15:43 -0500
51677
+ Processing by WelcomeController#index as HTML
51678
+ Completed 401 Unauthorized in 2ms
51679
+  (0.2ms) rollback transaction
51680
+ -------------------------------------------------------------------------
51681
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
51682
+ -------------------------------------------------------------------------
51683
+  (0.1ms) begin transaction
51684
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51685
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51686
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51687
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 10:15:43 -0500
51688
+ Processing by WelcomeController#logged_in_page as JSON
51689
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
51690
+  (0.1ms) SAVEPOINT active_record_1
51691
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 26 Feb 2013 15:15:43 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 15:15:43 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 15:15:43 UTC +00:00]]
51692
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51693
+ Completed 200 OK in 299ms (Views: 0.4ms | ActiveRecord: 1.3ms)
51694
+  (32.0ms) rollback transaction
51695
+ ------------------------------------------------------------------------------------------------
51696
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
51697
+ ------------------------------------------------------------------------------------------------
51698
+  (0.2ms) begin transaction
51699
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51700
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51701
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51702
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 10:15:43 -0500
51703
+ Processing by WelcomeController#logged_in_page as JSON
51704
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
51705
+ Completed 401 Unauthorized in 298ms
51706
+  (0.1ms) rollback transaction
51707
+ ------------------------------------
51708
+ UserTest: test_should_apply_omniauth
51709
+ ------------------------------------
51710
+  (0.1ms) begin transaction
51711
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51712
+  (0.1ms) rollback transaction
51713
+ --------------------------------------
51714
+ UserTest: test_should_get_reverse_name
51715
+ --------------------------------------
51716
+  (0.2ms) begin transaction
51717
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51718
+  (0.1ms) rollback transaction
51719
+ -------------------------------------------------
51720
+ AuthenticationTest: test_should_get_provider_name
51721
+ -------------------------------------------------
51722
+  (0.6ms) begin transaction
51723
+ Fixture Delete (0.8ms) DELETE FROM "authentications"
51724
+ Fixture Insert (16.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 15:18:45', '2013-02-26 15:18:45', 949717663, 201799169)
51725
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 15:18:45', '2013-02-26 15:18:45', 876923740, 201799169)
51726
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 15:18:45', '2013-02-26 15:18:45', 864673665, 201799169)
51727
+ Fixture Delete (0.9ms) DELETE FROM "users"
51728
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:18:45', '2013-02-26 15:18:45', 201799169)
51729
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:18:45', '2013-02-26 15:18:45', 999914115)
51730
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:18:45', '2013-02-26 15:18:45', 725306934)
51731
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:18:45', '2013-02-26 15:18:45', 349534908)
51732
+  (1.8ms) commit transaction
51733
+  (0.1ms) begin transaction
51734
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
51735
+  (0.1ms) rollback transaction
51736
+ --------------------------------------------------------------------------------
51737
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
51738
+ --------------------------------------------------------------------------------
51739
+  (0.1ms) begin transaction
51740
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
51741
+  (0.1ms) rollback transaction
51742
+ -------------------------------------------------------------------------
51743
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
51744
+ -------------------------------------------------------------------------
51745
+  (0.1ms) begin transaction
51746
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51747
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
51748
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
51749
+ Processing by Contour::AuthenticationsController#create as HTML
51750
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-02-26 15:18:45 UTC", "updated_at"=>"2013-02-26 15:18:45 UTC"}}
51751
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
51752
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
51753
+ Logged in user found, creating associated authentication.
51754
+  (0.2ms) SAVEPOINT active_record_1
51755
+ SQL (42.9ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:18:46 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 26 Feb 2013 15:18:46 UTC +00:00], ["user_id", 201799169]]
51756
+  (0.2ms) RELEASE SAVEPOINT active_record_1
51757
+ Redirected to http://test.host/authentications
51758
+ Completed 302 Found in 194ms (ActiveRecord: 43.8ms)
51759
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
51760
+  (0.8ms) rollback transaction
51761
+ --------------------------------------------------------------------------
51762
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
51763
+ --------------------------------------------------------------------------
51764
+  (0.1ms) begin transaction
51765
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51766
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
51767
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
51768
+ Processing by Contour::AuthenticationsController#destroy as HTML
51769
+ Parameters: {"id"=>"949717663"}
51770
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
51771
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
51772
+  (0.1ms) SAVEPOINT active_record_1
51773
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
51774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51775
+ Redirected to http://test.host/authentications
51776
+ Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
51777
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
51778
+  (0.6ms) rollback transaction
51779
+ -------------------------------------------------------------
51780
+ Contour::AuthenticationsControllerTest: test_should_get_index
51781
+ -------------------------------------------------------------
51782
+  (0.1ms) begin transaction
51783
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51784
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
51785
+ Processing by Contour::AuthenticationsController#index as HTML
51786
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
51787
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
51788
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
51789
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (35.6ms)
51790
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.5ms)
51791
+ Completed 200 OK in 534ms (Views: 530.1ms | ActiveRecord: 0.6ms)
51792
+  (0.1ms) rollback transaction
51793
+ -----------------------------------------------------------------------------
51794
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
51795
+ -----------------------------------------------------------------------------
51796
+  (0.1ms) begin transaction
51797
+ Processing by Contour::PasswordsController#create as HTML
51798
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
51799
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
51800
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '5NijHdseqqa8YyM4Mtik' LIMIT 1
51801
+  (0.1ms) SAVEPOINT active_record_1
51802
+ SQL (0.8ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "5NijHdseqqa8YyM4Mtik"], ["reset_password_sent_at", Tue, 26 Feb 2013 15:18:47 UTC +00:00], ["updated_at", Tue, 26 Feb 2013 15:18:47 UTC +00:00]]
51803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51804
+
51805
+ Sent mail to valid@example.com (74.1ms)
51806
+ Date: Tue, 26 Feb 2013 10:18:47 -0500
51807
+ From: please-change-me-at-config-initializers-devise@example.com
51808
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
51809
+ To: valid@example.com
51810
+ Message-ID: <512cd2575ee40_82bf3fe14d835ae0786f5@edge2.partners.org.mail>
51811
+ Subject: Reset password instructions
51812
+ Mime-Version: 1.0
51813
+ Content-Type: text/html;
51814
+ charset=UTF-8
51815
+ Content-Transfer-Encoding: 7bit
51816
+
51817
+ <p>Hello valid@example.com!</p>
51818
+
51819
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
51820
+
51821
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=5NijHdseqqa8YyM4Mtik">Change my password</a></p>
51822
+
51823
+ <p>If you didn't request this, please ignore this email.</p>
51824
+ <p>Your password won't change until you access the link above and create a new one.</p>
51825
+
51826
+ Redirected to http://test.host/users/login
51827
+ Completed 302 Found in 440ms (ActiveRecord: 0.0ms)
51828
+  (0.9ms) rollback transaction
51829
+ -----------------------------------------------------------------------------
51830
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
51831
+ -----------------------------------------------------------------------------
51832
+  (0.1ms) begin transaction
51833
+ Processing by Contour::PasswordsController#new as HTML
51834
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.7ms)
51835
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (75.7ms)
51836
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (82.5ms)
51837
+ Completed 200 OK in 144ms (Views: 143.2ms | ActiveRecord: 0.0ms)
51838
+  (0.1ms) rollback transaction
51839
+ -----------------------------------------------------
51840
+ ContourHelperTest: test_should_show_sort_field_helper
51841
+ -----------------------------------------------------
51842
+  (0.1ms) begin transaction
51843
+  (0.1ms) rollback transaction
51844
+ ---------------------------------------------------------------------
51845
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
51846
+ ---------------------------------------------------------------------
51847
+  (0.1ms) begin transaction
51848
+  (0.1ms) rollback transaction
51849
+ -----------------------
51850
+ ContourTest: test_truth
51851
+ -----------------------
51852
+  (0.1ms) begin transaction
51853
+  (0.1ms) rollback transaction
51854
+ --------------------------------------------------------------------
51855
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
51856
+ --------------------------------------------------------------------
51857
+  (0.1ms) begin transaction
51858
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51859
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51860
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51861
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:18:47 -0500
51862
+ Processing by WelcomeController#logged_in_page as HTML
51863
+ Completed 401 Unauthorized in 54ms
51864
+  (0.1ms) SAVEPOINT active_record_1
51865
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
51866
+ Binary data inserted for `string` type on column `encrypted_password`
51867
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:18:47 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$s4celVuGxkixV6DF78X9F.aQuubPzxxTLJFGYhtJrCeciGPRWtQwC"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 26 Feb 2013 15:18:47 UTC +00:00]]
51868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51869
+  (0.1ms) SAVEPOINT active_record_1
51870
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51871
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51872
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51873
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
51874
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
51875
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:18:47 -0500
51876
+ Processing by Contour::SessionsController#create as HTML
51877
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
51878
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
51879
+  (0.1ms) SAVEPOINT active_record_1
51880
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51881
+ Completed 401 Unauthorized in 17ms
51882
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 10:18:48 -0500
51883
+ Processing by Contour::SessionsController#new as HTML
51884
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
51885
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (7.3ms)
51886
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (2.7ms)
51887
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.8ms)
51888
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.4ms)
51889
+ Completed 200 OK in 115ms (Views: 112.6ms | ActiveRecord: 0.0ms)
51890
+  (0.8ms) rollback transaction
51891
+ --------------------------------------------------------
51892
+ NavigationTest: test_friendly_url_forwarding_after_login
51893
+ --------------------------------------------------------
51894
+  (0.1ms) begin transaction
51895
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51896
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51897
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51898
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:18:48 -0500
51899
+ Processing by WelcomeController#logged_in_page as HTML
51900
+ Completed 401 Unauthorized in 2ms
51901
+  (0.1ms) SAVEPOINT active_record_1
51902
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
51903
+ Binary data inserted for `string` type on column `encrypted_password`
51904
+ SQL (12.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:18:48 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$Mn/wG74ToFbMLuWFN6hKNOqFww1Lm75teSB2dBzcNH1hmh7Wa4pAu"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 26 Feb 2013 15:18:48 UTC +00:00]]
51905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51906
+  (0.1ms) SAVEPOINT active_record_1
51907
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51908
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51909
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51910
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
51911
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
51912
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:18:48 -0500
51913
+ Processing by Contour::SessionsController#create as HTML
51914
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
51915
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
51916
+  (0.1ms) SAVEPOINT active_record_1
51917
+ SQL (1.1ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 26 Feb 2013 15:18:48 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 15:18:48 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 15:18:48 UTC +00:00]]
51918
+  (0.2ms) RELEASE SAVEPOINT active_record_1
51919
+ Redirected to http://www.example.com/logged_in_page
51920
+ Completed 302 Found in 24ms (ActiveRecord: 0.0ms)
51921
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:18:48 -0500
51922
+ Processing by WelcomeController#logged_in_page as HTML
51923
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
51924
+ Completed 200 OK in 8ms (Views: 4.5ms | ActiveRecord: 0.2ms)
51925
+  (0.8ms) rollback transaction
51926
+ --------------------------------------------------------------------
51927
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
51928
+ --------------------------------------------------------------------
51929
+  (0.1ms) begin transaction
51930
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51931
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51932
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51933
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:18:48 -0500
51934
+ Processing by WelcomeController#logged_in_page as HTML
51935
+ Completed 401 Unauthorized in 2ms
51936
+  (0.1ms) SAVEPOINT active_record_1
51937
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
51938
+ Binary data inserted for `string` type on column `encrypted_password`
51939
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:18:48 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$9jMj2hy5dj0mXfTNoYGQSuXm3t98lVuO0GyZfMhulLV8wvT7.Auv6"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 26 Feb 2013 15:18:48 UTC +00:00]]
51940
+  (0.2ms) RELEASE SAVEPOINT active_record_1
51941
+  (0.1ms) SAVEPOINT active_record_1
51942
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51943
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
51944
+  (0.3ms) RELEASE SAVEPOINT active_record_1
51945
+ SQL (0.5ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
51946
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
51947
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:18:48 -0500
51948
+ Processing by Contour::SessionsController#create as HTML
51949
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
51950
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
51951
+  (0.1ms) SAVEPOINT active_record_1
51952
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51953
+ Completed 401 Unauthorized in 13ms
51954
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 10:18:48 -0500
51955
+ Processing by Contour::SessionsController#new as HTML
51956
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
51957
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.7ms)
51958
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
51959
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.9ms)
51960
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.5ms)
51961
+ Completed 200 OK in 81ms (Views: 79.2ms | ActiveRecord: 0.0ms)
51962
+  (0.9ms) rollback transaction
51963
+ -------------------------------------------------------------
51964
+ NavigationTest: test_root_navigation_redirected_to_login_page
51965
+ -------------------------------------------------------------
51966
+  (0.1ms) begin transaction
51967
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51968
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51969
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51970
+ Started GET "/" for 127.0.0.1 at 2013-02-26 10:18:48 -0500
51971
+ Processing by WelcomeController#index as HTML
51972
+ Completed 401 Unauthorized in 2ms
51973
+  (0.1ms) rollback transaction
51974
+ -------------------------------------------------------------------------
51975
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
51976
+ -------------------------------------------------------------------------
51977
+  (0.1ms) begin transaction
51978
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51979
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51980
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51981
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 10:18:48 -0500
51982
+ Processing by WelcomeController#logged_in_page as JSON
51983
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
51984
+  (0.1ms) SAVEPOINT active_record_1
51985
+ SQL (0.7ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 26 Feb 2013 15:18:48 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 15:18:48 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 15:18:48 UTC +00:00]]
51986
+  (0.1ms) RELEASE SAVEPOINT active_record_1
51987
+ Completed 200 OK in 299ms (Views: 0.4ms | ActiveRecord: 1.2ms)
51988
+  (0.9ms) rollback transaction
51989
+ ------------------------------------------------------------------------------------------------
51990
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
51991
+ ------------------------------------------------------------------------------------------------
51992
+  (0.1ms) begin transaction
51993
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
51994
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
51995
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
51996
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 10:18:48 -0500
51997
+ Processing by WelcomeController#logged_in_page as JSON
51998
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
51999
+ Completed 401 Unauthorized in 303ms
52000
+  (0.2ms) rollback transaction
52001
+ ------------------------------------
52002
+ UserTest: test_should_apply_omniauth
52003
+ ------------------------------------
52004
+  (0.1ms) begin transaction
52005
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52006
+  (0.1ms) rollback transaction
52007
+ --------------------------------------
52008
+ UserTest: test_should_get_reverse_name
52009
+ --------------------------------------
52010
+  (0.1ms) begin transaction
52011
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52012
+  (0.2ms) rollback transaction
52013
+ -------------------------------------------------
52014
+ AuthenticationTest: test_should_get_provider_name
52015
+ -------------------------------------------------
52016
+  (0.8ms) begin transaction
52017
+ Fixture Delete (0.4ms) DELETE FROM "authentications"
52018
+ Fixture Insert (0.3ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 949717663, 201799169)
52019
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 876923740, 201799169)
52020
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 864673665, 201799169)
52021
+ Fixture Delete (0.2ms) DELETE FROM "users"
52022
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 201799169)
52023
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 999914115)
52024
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 725306934)
52025
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 349534908)
52026
+  (2.1ms) commit transaction
52027
+  (0.1ms) begin transaction
52028
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
52029
+  (0.1ms) rollback transaction
52030
+ --------------------------------------------------------------------------------
52031
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
52032
+ --------------------------------------------------------------------------------
52033
+  (0.1ms) begin transaction
52034
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52035
+  (0.1ms) rollback transaction
52036
+ -------------------------------------------------------------------------
52037
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
52038
+ -------------------------------------------------------------------------
52039
+  (0.1ms) begin transaction
52040
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52041
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52042
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
52043
+ Processing by Contour::AuthenticationsController#create as HTML
52044
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-02-26 15:38:48 UTC", "updated_at"=>"2013-02-26 15:38:48 UTC"}}
52045
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
52046
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
52047
+ Logged in user found, creating associated authentication.
52048
+  (0.2ms) SAVEPOINT active_record_1
52049
+ SQL (4.1ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:38:49 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 26 Feb 2013 15:38:49 UTC +00:00], ["user_id", 201799169]]
52050
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52051
+ Redirected to http://test.host/authentications
52052
+ Completed 302 Found in 169ms (ActiveRecord: 4.8ms)
52053
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
52054
+  (0.6ms) rollback transaction
52055
+ --------------------------------------------------------------------------
52056
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
52057
+ --------------------------------------------------------------------------
52058
+  (0.2ms) begin transaction
52059
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52060
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52061
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
52062
+ Processing by Contour::AuthenticationsController#destroy as HTML
52063
+ Parameters: {"id"=>"949717663"}
52064
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
52065
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
52066
+  (0.1ms) SAVEPOINT active_record_1
52067
+ SQL (0.5ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
52068
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52069
+ Redirected to http://test.host/authentications
52070
+ Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
52071
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
52072
+  (0.6ms) rollback transaction
52073
+ -------------------------------------------------------------
52074
+ Contour::AuthenticationsControllerTest: test_should_get_index
52075
+ -------------------------------------------------------------
52076
+  (0.2ms) begin transaction
52077
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52078
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52079
+ Processing by Contour::AuthenticationsController#index as HTML
52080
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
52081
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
52082
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
52083
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (28.3ms)
52084
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.8ms)
52085
+ Completed 200 OK in 246ms (Views: 242.0ms | ActiveRecord: 0.6ms)
52086
+  (0.2ms) rollback transaction
52087
+ -----------------------------------------------------------------------------
52088
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
52089
+ -----------------------------------------------------------------------------
52090
+  (0.1ms) begin transaction
52091
+ Processing by Contour::PasswordsController#create as HTML
52092
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
52093
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
52094
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '5hTP5PqctQARCsdx4BhG' LIMIT 1
52095
+  (0.1ms) SAVEPOINT active_record_1
52096
+ SQL (0.9ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "5hTP5PqctQARCsdx4BhG"], ["reset_password_sent_at", Tue, 26 Feb 2013 15:38:49 UTC +00:00], ["updated_at", Tue, 26 Feb 2013 15:38:49 UTC +00:00]]
52097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52098
+
52099
+ Sent mail to valid@example.com (41.5ms)
52100
+ Date: Tue, 26 Feb 2013 10:38:49 -0500
52101
+ From: please-change-me-at-config-initializers-devise@example.com
52102
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
52103
+ To: valid@example.com
52104
+ Message-ID: <512cd709c0fd6_86d73ff3e0c35adc585aa@edge2.partners.org.mail>
52105
+ Subject: Reset password instructions
52106
+ Mime-Version: 1.0
52107
+ Content-Type: text/html;
52108
+ charset=UTF-8
52109
+ Content-Transfer-Encoding: 7bit
52110
+
52111
+ <p>Hello valid@example.com!</p>
52112
+
52113
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
52114
+
52115
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=5hTP5PqctQARCsdx4BhG">Change my password</a></p>
52116
+
52117
+ <p>If you didn't request this, please ignore this email.</p>
52118
+ <p>Your password won't change until you access the link above and create a new one.</p>
52119
+
52120
+ Redirected to http://test.host/users/login
52121
+ Completed 302 Found in 334ms (ActiveRecord: 0.0ms)
52122
+  (0.9ms) rollback transaction
52123
+ -----------------------------------------------------------------------------
52124
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
52125
+ -----------------------------------------------------------------------------
52126
+  (0.1ms) begin transaction
52127
+ Processing by Contour::PasswordsController#new as HTML
52128
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.8ms)
52129
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (18.3ms)
52130
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (23.4ms)
52131
+ Completed 200 OK in 105ms (Views: 104.4ms | ActiveRecord: 0.0ms)
52132
+  (0.1ms) rollback transaction
52133
+ -----------------------------------------------------
52134
+ ContourHelperTest: test_should_show_sort_field_helper
52135
+ -----------------------------------------------------
52136
+  (0.1ms) begin transaction
52137
+  (0.1ms) rollback transaction
52138
+ ---------------------------------------------------------------------
52139
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
52140
+ ---------------------------------------------------------------------
52141
+  (0.1ms) begin transaction
52142
+  (0.1ms) rollback transaction
52143
+ -----------------------
52144
+ ContourTest: test_truth
52145
+ -----------------------
52146
+  (0.1ms) begin transaction
52147
+  (0.1ms) rollback transaction
52148
+ --------------------------------------------------------------------
52149
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
52150
+ --------------------------------------------------------------------
52151
+  (0.1ms) begin transaction
52152
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52153
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52154
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52155
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:38:49 -0500
52156
+ Processing by WelcomeController#logged_in_page as HTML
52157
+ Completed 401 Unauthorized in 63ms
52158
+  (0.1ms) SAVEPOINT active_record_1
52159
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
52160
+ Binary data inserted for `string` type on column `encrypted_password`
52161
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:38:50 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$sE9fmECqTOerl4xaloT5GOBHYMAAVvUNFrp4g2cQRRQDgSMt/9eou"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 26 Feb 2013 15:38:50 UTC +00:00]]
52162
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52163
+  (0.1ms) SAVEPOINT active_record_1
52164
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52165
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52167
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
52168
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
52169
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:38:50 -0500
52170
+ Processing by Contour::SessionsController#create as HTML
52171
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
52172
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
52173
+  (0.2ms) SAVEPOINT active_record_1
52174
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52175
+ Completed 401 Unauthorized in 40ms
52176
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 10:38:50 -0500
52177
+ Processing by Contour::SessionsController#new as HTML
52178
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
52179
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.9ms)
52180
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.1ms)
52181
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.7ms)
52182
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.1ms)
52183
+ Completed 200 OK in 67ms (Views: 65.4ms | ActiveRecord: 0.0ms)
52184
+  (0.9ms) rollback transaction
52185
+ --------------------------------------------------------
52186
+ NavigationTest: test_friendly_url_forwarding_after_login
52187
+ --------------------------------------------------------
52188
+  (0.1ms) begin transaction
52189
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52190
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52191
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52192
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:38:50 -0500
52193
+ Processing by WelcomeController#logged_in_page as HTML
52194
+ Completed 401 Unauthorized in 3ms
52195
+  (0.1ms) SAVEPOINT active_record_1
52196
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
52197
+ Binary data inserted for `string` type on column `encrypted_password`
52198
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:38:50 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$a9C8DsAu3We7kjdMqoKYH.waYeI2udQsJNstWrWxgJlC8dTWYXeuW"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 26 Feb 2013 15:38:50 UTC +00:00]]
52199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52200
+  (0.1ms) SAVEPOINT active_record_1
52201
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52202
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52204
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
52205
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
52206
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:38:50 -0500
52207
+ Processing by Contour::SessionsController#create as HTML
52208
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
52209
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
52210
+  (0.1ms) SAVEPOINT active_record_1
52211
+ SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 26 Feb 2013 15:38:50 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 15:38:50 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 15:38:50 UTC +00:00]]
52212
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52213
+ Redirected to http://www.example.com/logged_in_page
52214
+ Completed 302 Found in 20ms (ActiveRecord: 0.0ms)
52215
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:38:50 -0500
52216
+ Processing by WelcomeController#logged_in_page as HTML
52217
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
52218
+ Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.2ms)
52219
+  (0.9ms) rollback transaction
52220
+ --------------------------------------------------------------------
52221
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
52222
+ --------------------------------------------------------------------
52223
+  (0.1ms) begin transaction
52224
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52225
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52226
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52227
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:38:50 -0500
52228
+ Processing by WelcomeController#logged_in_page as HTML
52229
+ Completed 401 Unauthorized in 2ms
52230
+  (0.1ms) SAVEPOINT active_record_1
52231
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
52232
+ Binary data inserted for `string` type on column `encrypted_password`
52233
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:38:50 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$QpDdcL1z6ii3GM0eJZLpuOz5mgQiLsMH2eMWP84CRVTBd6jRfQs9e"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 26 Feb 2013 15:38:50 UTC +00:00]]
52234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52235
+  (0.1ms) SAVEPOINT active_record_1
52236
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52237
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52239
+ SQL (0.6ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
52240
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
52241
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:38:50 -0500
52242
+ Processing by Contour::SessionsController#create as HTML
52243
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
52244
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
52245
+  (0.1ms) SAVEPOINT active_record_1
52246
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52247
+ Completed 401 Unauthorized in 14ms
52248
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 10:38:50 -0500
52249
+ Processing by Contour::SessionsController#new as HTML
52250
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.9ms)
52251
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.5ms)
52252
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
52253
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (4.1ms)
52254
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.4ms)
52255
+ Completed 200 OK in 32ms (Views: 30.0ms | ActiveRecord: 0.0ms)
52256
+  (0.9ms) rollback transaction
52257
+ -------------------------------------------------------------
52258
+ NavigationTest: test_root_navigation_redirected_to_login_page
52259
+ -------------------------------------------------------------
52260
+  (0.1ms) begin transaction
52261
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52262
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52263
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52264
+ Started GET "/" for 127.0.0.1 at 2013-02-26 10:38:50 -0500
52265
+ Processing by WelcomeController#index as HTML
52266
+ Completed 401 Unauthorized in 2ms
52267
+  (0.1ms) rollback transaction
52268
+ -------------------------------------------------------------------------
52269
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
52270
+ -------------------------------------------------------------------------
52271
+  (0.1ms) begin transaction
52272
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52273
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52274
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52275
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 10:38:50 -0500
52276
+ Processing by WelcomeController#logged_in_page as JSON
52277
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
52278
+  (0.1ms) SAVEPOINT active_record_1
52279
+ SQL (0.9ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 26 Feb 2013 15:38:51 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 15:38:51 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 15:38:51 UTC +00:00]]
52280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52281
+ Completed 200 OK in 302ms (Views: 0.4ms | ActiveRecord: 1.4ms)
52282
+  (0.8ms) rollback transaction
52283
+ ------------------------------------------------------------------------------------------------
52284
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
52285
+ ------------------------------------------------------------------------------------------------
52286
+  (0.1ms) begin transaction
52287
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52288
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52289
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52290
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 10:38:51 -0500
52291
+ Processing by WelcomeController#logged_in_page as JSON
52292
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
52293
+ Completed 401 Unauthorized in 311ms
52294
+  (0.2ms) rollback transaction
52295
+ ------------------------------------
52296
+ UserTest: test_should_apply_omniauth
52297
+ ------------------------------------
52298
+  (0.2ms) begin transaction
52299
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52300
+  (0.2ms) rollback transaction
52301
+ --------------------------------------
52302
+ UserTest: test_should_get_reverse_name
52303
+ --------------------------------------
52304
+  (0.2ms) begin transaction
52305
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52306
+  (0.1ms) rollback transaction
52307
+ -------------------------------------------------
52308
+ AuthenticationTest: test_should_get_provider_name
52309
+ -------------------------------------------------
52310
+  (0.4ms) begin transaction
52311
+ Fixture Delete (0.4ms) DELETE FROM "authentications"
52312
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 949717663, 201799169)
52313
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 876923740, 201799169)
52314
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 864673665, 201799169)
52315
+ Fixture Delete (0.2ms) DELETE FROM "users"
52316
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 201799169)
52317
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 999914115)
52318
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 725306934)
52319
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 349534908)
52320
+  (7.3ms) commit transaction
52321
+  (0.1ms) begin transaction
52322
+ Authentication Load (0.5ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
52323
+  (0.1ms) rollback transaction
52324
+ --------------------------------------------------------------------------------
52325
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
52326
+ --------------------------------------------------------------------------------
52327
+  (0.1ms) begin transaction
52328
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52329
+  (0.1ms) rollback transaction
52330
+ -------------------------------------------------------------------------
52331
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
52332
+ -------------------------------------------------------------------------
52333
+  (0.1ms) begin transaction
52334
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52335
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52336
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
52337
+ Processing by Contour::AuthenticationsController#create as HTML
52338
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-02-26 15:40:32 UTC", "updated_at"=>"2013-02-26 15:40:32 UTC"}}
52339
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
52340
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
52341
+ Logged in user found, creating associated authentication.
52342
+  (0.1ms) SAVEPOINT active_record_1
52343
+ SQL (17.4ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:40:32 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 26 Feb 2013 15:40:32 UTC +00:00], ["user_id", 201799169]]
52344
+  (0.2ms) RELEASE SAVEPOINT active_record_1
52345
+ Redirected to http://test.host/authentications
52346
+ Completed 302 Found in 123ms (ActiveRecord: 18.1ms)
52347
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
52348
+  (0.8ms) rollback transaction
52349
+ --------------------------------------------------------------------------
52350
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
52351
+ --------------------------------------------------------------------------
52352
+  (0.2ms) begin transaction
52353
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52354
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52355
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
52356
+ Processing by Contour::AuthenticationsController#destroy as HTML
52357
+ Parameters: {"id"=>"949717663"}
52358
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
52359
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
52360
+  (0.1ms) SAVEPOINT active_record_1
52361
+ SQL (0.4ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
52362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52363
+ Redirected to http://test.host/authentications
52364
+ Completed 302 Found in 7ms (ActiveRecord: 1.0ms)
52365
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
52366
+  (0.7ms) rollback transaction
52367
+ -------------------------------------------------------------
52368
+ Contour::AuthenticationsControllerTest: test_should_get_index
52369
+ -------------------------------------------------------------
52370
+  (0.1ms) begin transaction
52371
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52372
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52373
+ Processing by Contour::AuthenticationsController#index as HTML
52374
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
52375
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
52376
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
52377
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (27.3ms)
52378
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.9ms)
52379
+ Completed 200 OK in 250ms (Views: 245.7ms | ActiveRecord: 0.6ms)
52380
+  (0.2ms) rollback transaction
52381
+ -----------------------------------------------------------------------------
52382
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
52383
+ -----------------------------------------------------------------------------
52384
+  (0.1ms) begin transaction
52385
+ Processing by Contour::PasswordsController#create as HTML
52386
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
52387
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
52388
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'aaXaqsSuMnNhSMsrnikr' LIMIT 1
52389
+  (0.1ms) SAVEPOINT active_record_1
52390
+ SQL (0.7ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "aaXaqsSuMnNhSMsrnikr"], ["reset_password_sent_at", Tue, 26 Feb 2013 15:40:33 UTC +00:00], ["updated_at", Tue, 26 Feb 2013 15:40:33 UTC +00:00]]
52391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52392
+
52393
+ Sent mail to valid@example.com (40.5ms)
52394
+ Date: Tue, 26 Feb 2013 10:40:33 -0500
52395
+ From: please-change-me-at-config-initializers-devise@example.com
52396
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
52397
+ To: valid@example.com
52398
+ Message-ID: <512cd77138f56_872e3fd5d8c35ad0645cd@edge2.partners.org.mail>
52399
+ Subject: Reset password instructions
52400
+ Mime-Version: 1.0
52401
+ Content-Type: text/html;
52402
+ charset=UTF-8
52403
+ Content-Transfer-Encoding: 7bit
52404
+
52405
+ <p>Hello valid@example.com!</p>
52406
+
52407
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
52408
+
52409
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=aaXaqsSuMnNhSMsrnikr">Change my password</a></p>
52410
+
52411
+ <p>If you didn't request this, please ignore this email.</p>
52412
+ <p>Your password won't change until you access the link above and create a new one.</p>
52413
+
52414
+ Redirected to http://test.host/users/login
52415
+ Completed 302 Found in 292ms (ActiveRecord: 0.0ms)
52416
+  (0.8ms) rollback transaction
52417
+ -----------------------------------------------------------------------------
52418
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
52419
+ -----------------------------------------------------------------------------
52420
+  (0.1ms) begin transaction
52421
+ Processing by Contour::PasswordsController#new as HTML
52422
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.2ms)
52423
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (18.6ms)
52424
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (23.8ms)
52425
+ Completed 200 OK in 132ms (Views: 130.7ms | ActiveRecord: 0.0ms)
52426
+  (0.1ms) rollback transaction
52427
+ -----------------------------------------------------
52428
+ ContourHelperTest: test_should_show_sort_field_helper
52429
+ -----------------------------------------------------
52430
+  (0.1ms) begin transaction
52431
+  (0.1ms) rollback transaction
52432
+ ---------------------------------------------------------------------
52433
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
52434
+ ---------------------------------------------------------------------
52435
+  (0.1ms) begin transaction
52436
+  (0.1ms) rollback transaction
52437
+ -----------------------
52438
+ ContourTest: test_truth
52439
+ -----------------------
52440
+  (0.1ms) begin transaction
52441
+  (0.1ms) rollback transaction
52442
+ --------------------------------------------------------------------
52443
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
52444
+ --------------------------------------------------------------------
52445
+  (0.1ms) begin transaction
52446
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52447
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52448
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52449
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:40:33 -0500
52450
+ Processing by WelcomeController#logged_in_page as HTML
52451
+ Completed 401 Unauthorized in 38ms
52452
+  (0.1ms) SAVEPOINT active_record_1
52453
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
52454
+ Binary data inserted for `string` type on column `encrypted_password`
52455
+ SQL (1.1ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:40:33 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$UTxiZHrDwCtQk6gH.Jtv.OIe9T4Oq3jeyoZSvpBwKJ3KwnSKDtg2K"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 26 Feb 2013 15:40:33 UTC +00:00]]
52456
+  (0.2ms) RELEASE SAVEPOINT active_record_1
52457
+  (0.1ms) SAVEPOINT active_record_1
52458
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52459
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52460
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52461
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
52462
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
52463
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:40:33 -0500
52464
+ Processing by Contour::SessionsController#create as HTML
52465
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
52466
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
52467
+  (0.1ms) SAVEPOINT active_record_1
52468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52469
+ Completed 401 Unauthorized in 18ms
52470
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 10:40:33 -0500
52471
+ Processing by Contour::SessionsController#new as HTML
52472
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
52473
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.7ms)
52474
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.0ms)
52475
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.9ms)
52476
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.4ms)
52477
+ Completed 200 OK in 78ms (Views: 76.3ms | ActiveRecord: 0.0ms)
52478
+  (0.9ms) rollback transaction
52479
+ --------------------------------------------------------
52480
+ NavigationTest: test_friendly_url_forwarding_after_login
52481
+ --------------------------------------------------------
52482
+  (0.1ms) begin transaction
52483
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52484
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52485
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52486
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:40:34 -0500
52487
+ Processing by WelcomeController#logged_in_page as HTML
52488
+ Completed 401 Unauthorized in 2ms
52489
+  (0.1ms) SAVEPOINT active_record_1
52490
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
52491
+ Binary data inserted for `string` type on column `encrypted_password`
52492
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:40:34 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$54dDr3u/.g.AM9zNvq1sVes9rRdJsATPGrik/jJXxws7t8ObaZz/a"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 26 Feb 2013 15:40:34 UTC +00:00]]
52493
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52494
+  (0.1ms) SAVEPOINT active_record_1
52495
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52496
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52497
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52498
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
52499
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
52500
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:40:34 -0500
52501
+ Processing by Contour::SessionsController#create as HTML
52502
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
52503
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
52504
+  (0.1ms) SAVEPOINT active_record_1
52505
+ SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 26 Feb 2013 15:40:34 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 15:40:34 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 15:40:34 UTC +00:00]]
52506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52507
+ Redirected to http://www.example.com/logged_in_page
52508
+ Completed 302 Found in 20ms (ActiveRecord: 0.0ms)
52509
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:40:34 -0500
52510
+ Processing by WelcomeController#logged_in_page as HTML
52511
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
52512
+ Completed 200 OK in 10ms (Views: 4.4ms | ActiveRecord: 0.3ms)
52513
+  (17.4ms) rollback transaction
52514
+ --------------------------------------------------------------------
52515
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
52516
+ --------------------------------------------------------------------
52517
+  (0.1ms) begin transaction
52518
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52519
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52520
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52521
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:40:34 -0500
52522
+ Processing by WelcomeController#logged_in_page as HTML
52523
+ Completed 401 Unauthorized in 2ms
52524
+  (0.1ms) SAVEPOINT active_record_1
52525
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
52526
+ Binary data inserted for `string` type on column `encrypted_password`
52527
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:40:34 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$ETLlAwQPfBbJ9dCsAJHsFeFIlD2H0hUfnJY6Yo12ax8F4.pAIjx8."], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 26 Feb 2013 15:40:34 UTC +00:00]]
52528
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52529
+  (0.1ms) SAVEPOINT active_record_1
52530
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52531
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52533
+ SQL (0.4ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
52534
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
52535
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:40:34 -0500
52536
+ Processing by Contour::SessionsController#create as HTML
52537
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
52538
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
52539
+  (0.1ms) SAVEPOINT active_record_1
52540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52541
+ Completed 401 Unauthorized in 13ms
52542
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 10:40:34 -0500
52543
+ Processing by Contour::SessionsController#new as HTML
52544
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.9ms)
52545
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.6ms)
52546
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
52547
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.7ms)
52548
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (6.9ms)
52549
+ Completed 200 OK in 32ms (Views: 29.8ms | ActiveRecord: 0.0ms)
52550
+  (0.9ms) rollback transaction
52551
+ -------------------------------------------------------------
52552
+ NavigationTest: test_root_navigation_redirected_to_login_page
52553
+ -------------------------------------------------------------
52554
+  (0.1ms) begin transaction
52555
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52556
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52557
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52558
+ Started GET "/" for 127.0.0.1 at 2013-02-26 10:40:34 -0500
52559
+ Processing by WelcomeController#index as HTML
52560
+ Completed 401 Unauthorized in 2ms
52561
+  (0.1ms) rollback transaction
52562
+ -------------------------------------------------------------------------
52563
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
52564
+ -------------------------------------------------------------------------
52565
+  (0.1ms) begin transaction
52566
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52567
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52568
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52569
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 10:40:34 -0500
52570
+ Processing by WelcomeController#logged_in_page as JSON
52571
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
52572
+  (0.1ms) SAVEPOINT active_record_1
52573
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 26 Feb 2013 15:40:34 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 15:40:34 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 15:40:34 UTC +00:00]]
52574
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52575
+ Completed 200 OK in 300ms (Views: 0.4ms | ActiveRecord: 1.4ms)
52576
+  (0.8ms) rollback transaction
52577
+ ------------------------------------------------------------------------------------------------
52578
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
52579
+ ------------------------------------------------------------------------------------------------
52580
+  (0.1ms) begin transaction
52581
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52582
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52583
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52584
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 10:40:34 -0500
52585
+ Processing by WelcomeController#logged_in_page as JSON
52586
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
52587
+ Completed 401 Unauthorized in 290ms
52588
+  (0.1ms) rollback transaction
52589
+ ------------------------------------
52590
+ UserTest: test_should_apply_omniauth
52591
+ ------------------------------------
52592
+  (0.1ms) begin transaction
52593
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52594
+  (0.1ms) rollback transaction
52595
+ --------------------------------------
52596
+ UserTest: test_should_get_reverse_name
52597
+ --------------------------------------
52598
+  (0.1ms) begin transaction
52599
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52600
+  (0.1ms) rollback transaction
52601
+ -------------------------------------------------
52602
+ AuthenticationTest: test_should_get_provider_name
52603
+ -------------------------------------------------
52604
+  (0.5ms) begin transaction
52605
+ Fixture Delete (35.1ms) DELETE FROM "authentications"
52606
+ Fixture Insert (0.5ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 15:49:34', '2013-02-26 15:49:34', 949717663, 201799169)
52607
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 15:49:34', '2013-02-26 15:49:34', 876923740, 201799169)
52608
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 15:49:34', '2013-02-26 15:49:34', 864673665, 201799169)
52609
+ Fixture Delete (0.8ms) DELETE FROM "users"
52610
+ Fixture Insert (0.3ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:49:34', '2013-02-26 15:49:34', 201799169)
52611
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:49:34', '2013-02-26 15:49:34', 999914115)
52612
+ Fixture Insert (0.3ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:49:34', '2013-02-26 15:49:34', 725306934)
52613
+ Fixture Insert (0.3ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:49:34', '2013-02-26 15:49:34', 349534908)
52614
+  (1.4ms) commit transaction
52615
+  (0.2ms) begin transaction
52616
+ Authentication Load (0.5ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
52617
+  (0.2ms) rollback transaction
52618
+ --------------------------------------------------------------------------------
52619
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
52620
+ --------------------------------------------------------------------------------
52621
+  (0.2ms) begin transaction
52622
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52623
+  (0.1ms) rollback transaction
52624
+ -------------------------------------------------------------------------
52625
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
52626
+ -------------------------------------------------------------------------
52627
+  (0.2ms) begin transaction
52628
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52629
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52630
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
52631
+ Processing by Contour::AuthenticationsController#create as HTML
52632
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-02-26 15:49:34 UTC", "updated_at"=>"2013-02-26 15:49:34 UTC"}}
52633
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
52634
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
52635
+ Logged in user found, creating associated authentication.
52636
+  (0.2ms) SAVEPOINT active_record_1
52637
+ SQL (38.7ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:49:34 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 26 Feb 2013 15:49:34 UTC +00:00], ["user_id", 201799169]]
52638
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52639
+ Redirected to http://test.host/authentications
52640
+ Completed 302 Found in 169ms (ActiveRecord: 39.6ms)
52641
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
52642
+  (0.6ms) rollback transaction
52643
+ --------------------------------------------------------------------------
52644
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
52645
+ --------------------------------------------------------------------------
52646
+  (0.2ms) begin transaction
52647
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52648
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52649
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
52650
+ Processing by Contour::AuthenticationsController#destroy as HTML
52651
+ Parameters: {"id"=>"949717663"}
52652
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
52653
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
52654
+  (0.2ms) SAVEPOINT active_record_1
52655
+ SQL (0.5ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
52656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52657
+ Redirected to http://test.host/authentications
52658
+ Completed 302 Found in 10ms (ActiveRecord: 1.3ms)
52659
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
52660
+  (0.6ms) rollback transaction
52661
+ -------------------------------------------------------------
52662
+ Contour::AuthenticationsControllerTest: test_should_get_index
52663
+ -------------------------------------------------------------
52664
+  (0.1ms) begin transaction
52665
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52666
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52667
+ Processing by Contour::AuthenticationsController#index as HTML
52668
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
52669
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
52670
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
52671
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (44.2ms)
52672
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.2ms)
52673
+ Completed 200 OK in 587ms (Views: 581.4ms | ActiveRecord: 0.8ms)
52674
+  (0.2ms) rollback transaction
52675
+ -----------------------------------------------------------------------------
52676
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
52677
+ -----------------------------------------------------------------------------
52678
+  (0.2ms) begin transaction
52679
+ Processing by Contour::PasswordsController#create as HTML
52680
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
52681
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
52682
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'mBKQJHSuMFjFsrTf4yMF' LIMIT 1
52683
+  (0.1ms) SAVEPOINT active_record_1
52684
+ SQL (0.7ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "mBKQJHSuMFjFsrTf4yMF"], ["reset_password_sent_at", Tue, 26 Feb 2013 15:49:35 UTC +00:00], ["updated_at", Tue, 26 Feb 2013 15:49:35 UTC +00:00]]
52685
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52686
+
52687
+ Sent mail to valid@example.com (56.2ms)
52688
+ Date: Tue, 26 Feb 2013 10:49:35 -0500
52689
+ From: please-change-me-at-config-initializers-devise@example.com
52690
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
52691
+ To: valid@example.com
52692
+ Message-ID: <512cd98fc9450_88d73fe644435ad426589@edge2.partners.org.mail>
52693
+ Subject: Reset password instructions
52694
+ Mime-Version: 1.0
52695
+ Content-Type: text/html;
52696
+ charset=UTF-8
52697
+ Content-Transfer-Encoding: 7bit
52698
+
52699
+ <p>Hello valid@example.com!</p>
52700
+
52701
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
52702
+
52703
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=mBKQJHSuMFjFsrTf4yMF">Change my password</a></p>
52704
+
52705
+ <p>If you didn't request this, please ignore this email.</p>
52706
+ <p>Your password won't change until you access the link above and create a new one.</p>
52707
+
52708
+ Redirected to http://test.host/users/login
52709
+ Completed 302 Found in 375ms (ActiveRecord: 0.0ms)
52710
+  (0.7ms) rollback transaction
52711
+ -----------------------------------------------------------------------------
52712
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
52713
+ -----------------------------------------------------------------------------
52714
+  (0.1ms) begin transaction
52715
+ Processing by Contour::PasswordsController#new as HTML
52716
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (4.5ms)
52717
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (49.8ms)
52718
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (56.8ms)
52719
+ Completed 200 OK in 193ms (Views: 192.0ms | ActiveRecord: 0.0ms)
52720
+  (0.1ms) rollback transaction
52721
+ -----------------------------------------------------
52722
+ ContourHelperTest: test_should_show_sort_field_helper
52723
+ -----------------------------------------------------
52724
+  (0.1ms) begin transaction
52725
+  (0.1ms) rollback transaction
52726
+ ---------------------------------------------------------------------
52727
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
52728
+ ---------------------------------------------------------------------
52729
+  (0.1ms) begin transaction
52730
+  (0.1ms) rollback transaction
52731
+ -----------------------
52732
+ ContourTest: test_truth
52733
+ -----------------------
52734
+  (0.1ms) begin transaction
52735
+  (0.1ms) rollback transaction
52736
+ --------------------------------------------------------------------
52737
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
52738
+ --------------------------------------------------------------------
52739
+  (0.1ms) begin transaction
52740
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52741
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52742
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52743
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:49:36 -0500
52744
+ Processing by WelcomeController#logged_in_page as HTML
52745
+ Completed 401 Unauthorized in 54ms
52746
+  (0.2ms) SAVEPOINT active_record_1
52747
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
52748
+ Binary data inserted for `string` type on column `encrypted_password`
52749
+ SQL (1.3ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:49:36 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$ATJtYQaf8/S1ncd09Utsj.k1N02UWAjRxKpDypuXzoJsd95EdlIzG"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 26 Feb 2013 15:49:36 UTC +00:00]]
52750
+  (0.2ms) RELEASE SAVEPOINT active_record_1
52751
+  (0.1ms) SAVEPOINT active_record_1
52752
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52753
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52754
+  (0.2ms) RELEASE SAVEPOINT active_record_1
52755
+ SQL (0.6ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
52756
+ SQL (0.3ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
52757
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:49:36 -0500
52758
+ Processing by Contour::SessionsController#create as HTML
52759
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
52760
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
52761
+  (0.1ms) SAVEPOINT active_record_1
52762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52763
+ Completed 401 Unauthorized in 20ms
52764
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 10:49:36 -0500
52765
+ Processing by Contour::SessionsController#new as HTML
52766
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.0ms)
52767
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (7.8ms)
52768
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.4ms)
52769
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (5.4ms)
52770
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (9.6ms)
52771
+ Completed 200 OK in 142ms (Views: 139.7ms | ActiveRecord: 0.0ms)
52772
+  (0.6ms) rollback transaction
52773
+ --------------------------------------------------------
52774
+ NavigationTest: test_friendly_url_forwarding_after_login
52775
+ --------------------------------------------------------
52776
+  (0.1ms) begin transaction
52777
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52778
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52779
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52780
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:49:36 -0500
52781
+ Processing by WelcomeController#logged_in_page as HTML
52782
+ Completed 401 Unauthorized in 2ms
52783
+  (0.1ms) SAVEPOINT active_record_1
52784
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
52785
+ Binary data inserted for `string` type on column `encrypted_password`
52786
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:49:37 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$7MNZcWKI7VDXwfOu4OOmRuWqc5ionegjD8jlRXj132nGIVJJUzat."], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 26 Feb 2013 15:49:37 UTC +00:00]]
52787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52788
+  (0.1ms) SAVEPOINT active_record_1
52789
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52790
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52791
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52792
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
52793
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
52794
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:49:37 -0500
52795
+ Processing by Contour::SessionsController#create as HTML
52796
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
52797
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
52798
+  (0.2ms) SAVEPOINT active_record_1
52799
+ SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 26 Feb 2013 15:49:37 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 15:49:37 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 15:49:37 UTC +00:00]]
52800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52801
+ Redirected to http://www.example.com/logged_in_page
52802
+ Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
52803
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:49:37 -0500
52804
+ Processing by WelcomeController#logged_in_page as HTML
52805
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
52806
+ Completed 200 OK in 23ms (Views: 18.3ms | ActiveRecord: 0.2ms)
52807
+  (9.8ms) rollback transaction
52808
+ --------------------------------------------------------------------
52809
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
52810
+ --------------------------------------------------------------------
52811
+  (0.2ms) begin transaction
52812
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52813
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52814
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52815
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 10:49:37 -0500
52816
+ Processing by WelcomeController#logged_in_page as HTML
52817
+ Completed 401 Unauthorized in 2ms
52818
+  (0.1ms) SAVEPOINT active_record_1
52819
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
52820
+ Binary data inserted for `string` type on column `encrypted_password`
52821
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 15:49:37 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$.wzjVF9mDzsB0IUsezvs8OshmTlO2mzQHn7UkOnL.w70PGAoIAwQC"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 26 Feb 2013 15:49:37 UTC +00:00]]
52822
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52823
+  (0.1ms) SAVEPOINT active_record_1
52824
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52825
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
52826
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52827
+ SQL (0.4ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
52828
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
52829
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 10:49:37 -0500
52830
+ Processing by Contour::SessionsController#create as HTML
52831
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
52832
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
52833
+  (0.1ms) SAVEPOINT active_record_1
52834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52835
+ Completed 401 Unauthorized in 15ms
52836
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 10:49:37 -0500
52837
+ Processing by Contour::SessionsController#new as HTML
52838
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
52839
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.5ms)
52840
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
52841
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.7ms)
52842
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.1ms)
52843
+ Completed 200 OK in 50ms (Views: 47.7ms | ActiveRecord: 0.0ms)
52844
+  (11.5ms) rollback transaction
52845
+ -------------------------------------------------------------
52846
+ NavigationTest: test_root_navigation_redirected_to_login_page
52847
+ -------------------------------------------------------------
52848
+  (0.2ms) begin transaction
52849
+ User Load (23.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52850
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52851
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52852
+ Started GET "/" for 127.0.0.1 at 2013-02-26 10:49:37 -0500
52853
+ Processing by WelcomeController#index as HTML
52854
+ Completed 401 Unauthorized in 3ms
52855
+  (0.1ms) rollback transaction
52856
+ -------------------------------------------------------------------------
52857
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
52858
+ -------------------------------------------------------------------------
52859
+  (0.2ms) begin transaction
52860
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52861
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52862
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52863
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 10:49:37 -0500
52864
+ Processing by WelcomeController#logged_in_page as JSON
52865
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
52866
+  (0.2ms) SAVEPOINT active_record_1
52867
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 26 Feb 2013 15:49:37 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 15:49:37 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 15:49:37 UTC +00:00]]
52868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52869
+ Completed 200 OK in 321ms (Views: 0.4ms | ActiveRecord: 1.4ms)
52870
+  (0.5ms) rollback transaction
52871
+ ------------------------------------------------------------------------------------------------
52872
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
52873
+ ------------------------------------------------------------------------------------------------
52874
+  (0.1ms) begin transaction
52875
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52876
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
52877
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
52878
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 10:49:37 -0500
52879
+ Processing by WelcomeController#logged_in_page as JSON
52880
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
52881
+ Completed 401 Unauthorized in 297ms
52882
+  (0.1ms) rollback transaction
52883
+ ------------------------------------
52884
+ UserTest: test_should_apply_omniauth
52885
+ ------------------------------------
52886
+  (0.1ms) begin transaction
52887
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52888
+  (0.1ms) rollback transaction
52889
+ --------------------------------------
52890
+ UserTest: test_should_get_reverse_name
52891
+ --------------------------------------
52892
+  (0.1ms) begin transaction
52893
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52894
+  (0.1ms) rollback transaction
52895
+ -------------------------------------------------
52896
+ AuthenticationTest: test_should_get_provider_name
52897
+ -------------------------------------------------
52898
+  (0.5ms) begin transaction
52899
+ Fixture Delete (0.7ms) DELETE FROM "authentications"
52900
+ Fixture Insert (25.9ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 16:08:16', '2013-02-26 16:08:16', 949717663, 201799169)
52901
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 16:08:16', '2013-02-26 16:08:16', 876923740, 201799169)
52902
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 16:08:16', '2013-02-26 16:08:16', 864673665, 201799169)
52903
+ Fixture Delete (5.5ms) DELETE FROM "users"
52904
+ Fixture Insert (0.3ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 16:08:16', '2013-02-26 16:08:16', 201799169)
52905
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 16:08:16', '2013-02-26 16:08:16', 999914115)
52906
+ Fixture Insert (0.3ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 16:08:16', '2013-02-26 16:08:16', 725306934)
52907
+ Fixture Insert (0.3ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 16:08:16', '2013-02-26 16:08:16', 349534908)
52908
+  (12.4ms) commit transaction
52909
+  (0.2ms) begin transaction
52910
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
52911
+  (0.2ms) rollback transaction
52912
+ --------------------------------------------------------------------------------
52913
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
52914
+ --------------------------------------------------------------------------------
52915
+  (0.2ms) begin transaction
52916
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52917
+  (0.1ms) rollback transaction
52918
+ -------------------------------------------------------------------------
52919
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
52920
+ -------------------------------------------------------------------------
52921
+  (0.1ms) begin transaction
52922
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52923
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52924
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
52925
+ Processing by Contour::AuthenticationsController#create as HTML
52926
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-02-26 16:08:16 UTC", "updated_at"=>"2013-02-26 16:08:16 UTC"}}
52927
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
52928
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
52929
+ Logged in user found, creating associated authentication.
52930
+  (0.1ms) SAVEPOINT active_record_1
52931
+ SQL (51.8ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 16:08:16 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 26 Feb 2013 16:08:16 UTC +00:00], ["user_id", 201799169]]
52932
+  (0.2ms) RELEASE SAVEPOINT active_record_1
52933
+ Redirected to http://test.host/authentications
52934
+ Completed 302 Found in 169ms (ActiveRecord: 52.5ms)
52935
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
52936
+  (0.9ms) rollback transaction
52937
+ --------------------------------------------------------------------------
52938
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
52939
+ --------------------------------------------------------------------------
52940
+  (0.1ms) begin transaction
52941
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52942
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52943
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
52944
+ Processing by Contour::AuthenticationsController#destroy as HTML
52945
+ Parameters: {"id"=>"949717663"}
52946
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
52947
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
52948
+  (0.1ms) SAVEPOINT active_record_1
52949
+ SQL (0.5ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
52950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52951
+ Redirected to http://test.host/authentications
52952
+ Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
52953
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
52954
+  (0.6ms) rollback transaction
52955
+ -------------------------------------------------------------
52956
+ Contour::AuthenticationsControllerTest: test_should_get_index
52957
+ -------------------------------------------------------------
52958
+  (0.1ms) begin transaction
52959
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
52960
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
52961
+ Processing by Contour::AuthenticationsController#index as HTML
52962
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
52963
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
52964
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
52965
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (65.1ms)
52966
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.1ms)
52967
+ Completed 200 OK in 604ms (Views: 600.5ms | ActiveRecord: 0.7ms)
52968
+  (0.2ms) rollback transaction
52969
+ -----------------------------------------------------------------------------
52970
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
52971
+ -----------------------------------------------------------------------------
52972
+  (0.1ms) begin transaction
52973
+ Processing by Contour::PasswordsController#create as HTML
52974
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
52975
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
52976
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'KFUFYRQyDyix6ExJWEZy' LIMIT 1
52977
+  (0.1ms) SAVEPOINT active_record_1
52978
+ SQL (0.8ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "KFUFYRQyDyix6ExJWEZy"], ["reset_password_sent_at", Tue, 26 Feb 2013 16:08:17 UTC +00:00], ["updated_at", Tue, 26 Feb 2013 16:08:17 UTC +00:00]]
52979
+  (0.1ms) RELEASE SAVEPOINT active_record_1
52980
+
52981
+ Sent mail to valid@example.com (41.4ms)
52982
+ Date: Tue, 26 Feb 2013 11:08:17 -0500
52983
+ From: please-change-me-at-config-initializers-devise@example.com
52984
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
52985
+ To: valid@example.com
52986
+ Message-ID: <512cddf1bf444_8c343fd840435adc878e8@edge2.partners.org.mail>
52987
+ Subject: Reset password instructions
52988
+ Mime-Version: 1.0
52989
+ Content-Type: text/html;
52990
+ charset=UTF-8
52991
+ Content-Transfer-Encoding: 7bit
52992
+
52993
+ <p>Hello valid@example.com!</p>
52994
+
52995
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
52996
+
52997
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=KFUFYRQyDyix6ExJWEZy">Change my password</a></p>
52998
+
52999
+ <p>If you didn't request this, please ignore this email.</p>
53000
+ <p>Your password won't change until you access the link above and create a new one.</p>
53001
+
53002
+ Redirected to http://test.host/users/login
53003
+ Completed 302 Found in 345ms (ActiveRecord: 0.0ms)
53004
+  (0.8ms) rollback transaction
53005
+ -----------------------------------------------------------------------------
53006
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
53007
+ -----------------------------------------------------------------------------
53008
+  (0.1ms) begin transaction
53009
+ Processing by Contour::PasswordsController#new as HTML
53010
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.1ms)
53011
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (50.0ms)
53012
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (55.7ms)
53013
+ Completed 200 OK in 174ms (Views: 173.3ms | ActiveRecord: 0.0ms)
53014
+  (0.1ms) rollback transaction
53015
+ -----------------------------------------------------
53016
+ ContourHelperTest: test_should_show_sort_field_helper
53017
+ -----------------------------------------------------
53018
+  (0.1ms) begin transaction
53019
+  (0.1ms) rollback transaction
53020
+ ---------------------------------------------------------------------
53021
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
53022
+ ---------------------------------------------------------------------
53023
+  (0.1ms) begin transaction
53024
+  (0.1ms) rollback transaction
53025
+ -----------------------
53026
+ ContourTest: test_truth
53027
+ -----------------------
53028
+  (0.1ms) begin transaction
53029
+  (0.1ms) rollback transaction
53030
+ --------------------------------------------------------------------
53031
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
53032
+ --------------------------------------------------------------------
53033
+  (0.1ms) begin transaction
53034
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53035
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53036
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53037
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 11:08:18 -0500
53038
+ Processing by WelcomeController#logged_in_page as HTML
53039
+ Completed 401 Unauthorized in 39ms
53040
+  (0.2ms) SAVEPOINT active_record_1
53041
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
53042
+ Binary data inserted for `string` type on column `encrypted_password`
53043
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 16:08:18 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$L.qVErs/4tIq9oPmVf6iKOU3uhW3Fm0SUpfbd5S3FN.kTFE6cP3R2"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 26 Feb 2013 16:08:18 UTC +00:00]]
53044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53045
+  (0.1ms) SAVEPOINT active_record_1
53046
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53047
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53049
+ SQL (1.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
53050
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
53051
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 11:08:18 -0500
53052
+ Processing by Contour::SessionsController#create as HTML
53053
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
53054
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
53055
+  (0.1ms) SAVEPOINT active_record_1
53056
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53057
+ Completed 401 Unauthorized in 17ms
53058
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 11:08:18 -0500
53059
+ Processing by Contour::SessionsController#new as HTML
53060
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.7ms)
53061
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (7.1ms)
53062
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (2.3ms)
53063
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.9ms)
53064
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.4ms)
53065
+ Completed 200 OK in 167ms (Views: 164.1ms | ActiveRecord: 0.0ms)
53066
+  (0.9ms) rollback transaction
53067
+ --------------------------------------------------------
53068
+ NavigationTest: test_friendly_url_forwarding_after_login
53069
+ --------------------------------------------------------
53070
+  (0.1ms) begin transaction
53071
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53072
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53073
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53074
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 11:08:18 -0500
53075
+ Processing by WelcomeController#logged_in_page as HTML
53076
+ Completed 401 Unauthorized in 47ms
53077
+  (0.1ms) SAVEPOINT active_record_1
53078
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
53079
+ Binary data inserted for `string` type on column `encrypted_password`
53080
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 16:08:19 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$077gADk8wTavsbQhIy1NBOsZKe0PDmLjHqF.ytHmSUz8ZjQ5rIiHW"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 26 Feb 2013 16:08:19 UTC +00:00]]
53081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53082
+  (0.1ms) SAVEPOINT active_record_1
53083
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53084
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53086
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
53087
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
53088
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 11:08:19 -0500
53089
+ Processing by Contour::SessionsController#create as HTML
53090
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
53091
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
53092
+  (0.1ms) SAVEPOINT active_record_1
53093
+ SQL (0.7ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 26 Feb 2013 16:08:19 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 16:08:19 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 16:08:19 UTC +00:00]]
53094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53095
+ Redirected to http://www.example.com/logged_in_page
53096
+ Completed 302 Found in 21ms (ActiveRecord: 0.0ms)
53097
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 11:08:19 -0500
53098
+ Processing by WelcomeController#logged_in_page as HTML
53099
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
53100
+ Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.2ms)
53101
+  (0.8ms) rollback transaction
53102
+ --------------------------------------------------------------------
53103
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
53104
+ --------------------------------------------------------------------
53105
+  (0.1ms) begin transaction
53106
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53107
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53108
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53109
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 11:08:19 -0500
53110
+ Processing by WelcomeController#logged_in_page as HTML
53111
+ Completed 401 Unauthorized in 2ms
53112
+  (0.1ms) SAVEPOINT active_record_1
53113
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
53114
+ Binary data inserted for `string` type on column `encrypted_password`
53115
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 16:08:19 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$SiKJcDwvpf6Ki3NLEzcLE.qhpa.RsP4kRQZg/sDmCshqtVqLsx7re"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 26 Feb 2013 16:08:19 UTC +00:00]]
53116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53117
+  (0.1ms) SAVEPOINT active_record_1
53118
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53119
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53121
+ SQL (0.5ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
53122
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
53123
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 11:08:19 -0500
53124
+ Processing by Contour::SessionsController#create as HTML
53125
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
53126
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
53127
+  (0.1ms) SAVEPOINT active_record_1
53128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53129
+ Completed 401 Unauthorized in 12ms
53130
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 11:08:19 -0500
53131
+ Processing by Contour::SessionsController#new as HTML
53132
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
53133
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.7ms)
53134
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
53135
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.8ms)
53136
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.1ms)
53137
+ Completed 200 OK in 33ms (Views: 31.0ms | ActiveRecord: 0.0ms)
53138
+  (0.9ms) rollback transaction
53139
+ -------------------------------------------------------------
53140
+ NavigationTest: test_root_navigation_redirected_to_login_page
53141
+ -------------------------------------------------------------
53142
+  (0.1ms) begin transaction
53143
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53144
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53145
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53146
+ Started GET "/" for 127.0.0.1 at 2013-02-26 11:08:19 -0500
53147
+ Processing by WelcomeController#index as HTML
53148
+ Completed 401 Unauthorized in 2ms
53149
+  (0.1ms) rollback transaction
53150
+ -------------------------------------------------------------------------
53151
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
53152
+ -------------------------------------------------------------------------
53153
+  (0.1ms) begin transaction
53154
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53155
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53156
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53157
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 11:08:19 -0500
53158
+ Processing by WelcomeController#logged_in_page as JSON
53159
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
53160
+  (0.1ms) SAVEPOINT active_record_1
53161
+ SQL (0.9ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 26 Feb 2013 16:08:19 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 16:08:19 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 16:08:19 UTC +00:00]]
53162
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53163
+ Completed 200 OK in 296ms (Views: 0.4ms | ActiveRecord: 1.3ms)
53164
+  (26.9ms) rollback transaction
53165
+ ------------------------------------------------------------------------------------------------
53166
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
53167
+ ------------------------------------------------------------------------------------------------
53168
+  (0.2ms) begin transaction
53169
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53170
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53171
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53172
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 11:08:19 -0500
53173
+ Processing by WelcomeController#logged_in_page as JSON
53174
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
53175
+ Completed 401 Unauthorized in 297ms
53176
+  (0.2ms) rollback transaction
53177
+ ------------------------------------
53178
+ UserTest: test_should_apply_omniauth
53179
+ ------------------------------------
53180
+  (0.2ms) begin transaction
53181
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53182
+  (0.2ms) rollback transaction
53183
+ --------------------------------------
53184
+ UserTest: test_should_get_reverse_name
53185
+ --------------------------------------
53186
+  (0.2ms) begin transaction
53187
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53188
+  (0.2ms) rollback transaction
53189
+ -------------------------------------------------
53190
+ AuthenticationTest: test_should_get_provider_name
53191
+ -------------------------------------------------
53192
+  (18.6ms) begin transaction
53193
+ Fixture Delete (0.4ms) DELETE FROM "authentications"
53194
+ Fixture Insert (0.3ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 949717663, 201799169)
53195
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 876923740, 201799169)
53196
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 864673665, 201799169)
53197
+ Fixture Delete (0.2ms) DELETE FROM "users"
53198
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 201799169)
53199
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 999914115)
53200
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 725306934)
53201
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 349534908)
53202
+  (2.6ms) commit transaction
53203
+  (0.1ms) begin transaction
53204
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
53205
+  (0.1ms) rollback transaction
53206
+ --------------------------------------------------------------------------------
53207
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
53208
+ --------------------------------------------------------------------------------
53209
+  (0.1ms) begin transaction
53210
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
53211
+  (0.1ms) rollback transaction
53212
+ -------------------------------------------------------------------------
53213
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
53214
+ -------------------------------------------------------------------------
53215
+  (0.1ms) begin transaction
53216
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53217
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
53218
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
53219
+ Processing by Contour::AuthenticationsController#create as HTML
53220
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-02-26 17:45:41 UTC", "updated_at"=>"2013-02-26 17:45:41 UTC"}}
53221
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
53222
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
53223
+ Logged in user found, creating associated authentication.
53224
+  (0.1ms) SAVEPOINT active_record_1
53225
+ SQL (27.2ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 17:45:41 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 26 Feb 2013 17:45:41 UTC +00:00], ["user_id", 201799169]]
53226
+  (0.2ms) RELEASE SAVEPOINT active_record_1
53227
+ Redirected to http://test.host/authentications
53228
+ Completed 302 Found in 162ms (ActiveRecord: 27.9ms)
53229
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
53230
+  (1.3ms) rollback transaction
53231
+ --------------------------------------------------------------------------
53232
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
53233
+ --------------------------------------------------------------------------
53234
+  (0.1ms) begin transaction
53235
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53236
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
53237
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
53238
+ Processing by Contour::AuthenticationsController#destroy as HTML
53239
+ Parameters: {"id"=>"949717663"}
53240
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
53241
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
53242
+  (0.1ms) SAVEPOINT active_record_1
53243
+ SQL (0.5ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
53244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53245
+ Redirected to http://test.host/authentications
53246
+ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)
53247
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
53248
+  (0.7ms) rollback transaction
53249
+ -------------------------------------------------------------
53250
+ Contour::AuthenticationsControllerTest: test_should_get_index
53251
+ -------------------------------------------------------------
53252
+  (0.1ms) begin transaction
53253
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53254
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
53255
+ Processing by Contour::AuthenticationsController#index as HTML
53256
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
53257
+ Authentication Exists (0.3ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
53258
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
53259
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (28.4ms)
53260
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.4ms)
53261
+ Completed 200 OK in 1052ms (Views: 1047.7ms | ActiveRecord: 0.6ms)
53262
+  (0.2ms) rollback transaction
53263
+ -----------------------------------------------------------------------------
53264
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
53265
+ -----------------------------------------------------------------------------
53266
+  (0.1ms) begin transaction
53267
+ Processing by Contour::PasswordsController#create as HTML
53268
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
53269
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
53270
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'RmVii3g7ySg6jttpzVq1' LIMIT 1
53271
+  (0.1ms) SAVEPOINT active_record_1
53272
+ SQL (0.9ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "RmVii3g7ySg6jttpzVq1"], ["reset_password_sent_at", Tue, 26 Feb 2013 17:45:43 UTC +00:00], ["updated_at", Tue, 26 Feb 2013 17:45:43 UTC +00:00]]
53273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53274
+
53275
+ Sent mail to valid@example.com (47.3ms)
53276
+ Date: Tue, 26 Feb 2013 12:45:43 -0500
53277
+ From: please-change-me-at-config-initializers-devise@example.com
53278
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
53279
+ To: valid@example.com
53280
+ Message-ID: <512cf4c783964_9b123fe9c4c35ad0813df@edge2.partners.org.mail>
53281
+ Subject: Reset password instructions
53282
+ Mime-Version: 1.0
53283
+ Content-Type: text/html;
53284
+ charset=UTF-8
53285
+ Content-Transfer-Encoding: 7bit
53286
+
53287
+ <p>Hello valid@example.com!</p>
53288
+
53289
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
53290
+
53291
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=RmVii3g7ySg6jttpzVq1">Change my password</a></p>
53292
+
53293
+ <p>If you didn't request this, please ignore this email.</p>
53294
+ <p>Your password won't change until you access the link above and create a new one.</p>
53295
+
53296
+ Redirected to http://test.host/users/login
53297
+ Completed 302 Found in 261ms (ActiveRecord: 0.0ms)
53298
+  (0.8ms) rollback transaction
53299
+ -----------------------------------------------------------------------------
53300
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
53301
+ -----------------------------------------------------------------------------
53302
+  (0.1ms) begin transaction
53303
+ Processing by Contour::PasswordsController#new as HTML
53304
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (3.4ms)
53305
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (19.6ms)
53306
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (24.7ms)
53307
+ Completed 200 OK in 78ms (Views: 75.7ms | ActiveRecord: 0.0ms)
53308
+  (0.1ms) rollback transaction
53309
+ -----------------------------------------------------
53310
+ ContourHelperTest: test_should_show_sort_field_helper
53311
+ -----------------------------------------------------
53312
+  (0.1ms) begin transaction
53313
+  (0.1ms) rollback transaction
53314
+ ---------------------------------------------------------------------
53315
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
53316
+ ---------------------------------------------------------------------
53317
+  (0.1ms) begin transaction
53318
+  (0.1ms) rollback transaction
53319
+ -----------------------
53320
+ ContourTest: test_truth
53321
+ -----------------------
53322
+  (0.1ms) begin transaction
53323
+  (0.1ms) rollback transaction
53324
+ --------------------------------------------------------------------
53325
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
53326
+ --------------------------------------------------------------------
53327
+  (0.1ms) begin transaction
53328
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53329
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53330
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53331
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 12:45:43 -0500
53332
+ Processing by WelcomeController#logged_in_page as HTML
53333
+ Completed 401 Unauthorized in 29ms
53334
+  (0.1ms) SAVEPOINT active_record_1
53335
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
53336
+ Binary data inserted for `string` type on column `encrypted_password`
53337
+ SQL (1.3ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 17:45:43 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$vYCiFwjvdkzHv1ZWvxf8I.R5jfrmiZCjiv6rXN7BUGYpfuUPrytfC"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 26 Feb 2013 17:45:43 UTC +00:00]]
53338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53339
+  (0.1ms) SAVEPOINT active_record_1
53340
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53341
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53342
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53343
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
53344
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
53345
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 12:45:43 -0500
53346
+ Processing by Contour::SessionsController#create as HTML
53347
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
53348
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
53349
+  (0.2ms) SAVEPOINT active_record_1
53350
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53351
+ Completed 401 Unauthorized in 39ms
53352
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 12:45:44 -0500
53353
+ Processing by Contour::SessionsController#new as HTML
53354
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.5ms)
53355
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.7ms)
53356
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.1ms)
53357
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.7ms)
53358
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.1ms)
53359
+ Completed 200 OK in 110ms (Views: 107.8ms | ActiveRecord: 0.0ms)
53360
+  (0.8ms) rollback transaction
53361
+ --------------------------------------------------------
53362
+ NavigationTest: test_friendly_url_forwarding_after_login
53363
+ --------------------------------------------------------
53364
+  (0.1ms) begin transaction
53365
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53366
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53367
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53368
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 12:45:44 -0500
53369
+ Processing by WelcomeController#logged_in_page as HTML
53370
+ Completed 401 Unauthorized in 2ms
53371
+  (0.1ms) SAVEPOINT active_record_1
53372
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
53373
+ Binary data inserted for `string` type on column `encrypted_password`
53374
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 17:45:44 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$PhJl6Z8OUcRbY.vXkEF6butL2zygceJ/NHJ66y8gz7lnT4ftXTs8y"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 26 Feb 2013 17:45:44 UTC +00:00]]
53375
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53376
+  (0.1ms) SAVEPOINT active_record_1
53377
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53378
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53379
+  (0.2ms) RELEASE SAVEPOINT active_record_1
53380
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
53381
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
53382
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 12:45:44 -0500
53383
+ Processing by Contour::SessionsController#create as HTML
53384
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
53385
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
53386
+  (0.1ms) SAVEPOINT active_record_1
53387
+ SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 26 Feb 2013 17:45:44 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 17:45:44 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 17:45:44 UTC +00:00]]
53388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53389
+ Redirected to http://www.example.com/logged_in_page
53390
+ Completed 302 Found in 21ms (ActiveRecord: 0.0ms)
53391
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 12:45:44 -0500
53392
+ Processing by WelcomeController#logged_in_page as HTML
53393
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
53394
+ Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.2ms)
53395
+  (0.9ms) rollback transaction
53396
+ --------------------------------------------------------------------
53397
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
53398
+ --------------------------------------------------------------------
53399
+  (0.1ms) begin transaction
53400
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53401
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53402
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53403
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 12:45:44 -0500
53404
+ Processing by WelcomeController#logged_in_page as HTML
53405
+ Completed 401 Unauthorized in 2ms
53406
+  (0.2ms) SAVEPOINT active_record_1
53407
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
53408
+ Binary data inserted for `string` type on column `encrypted_password`
53409
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 17:45:44 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$jtp0C9jR4WMaho0hmLnQ/.wmf35RIP.QZPD2fQIDnrysU04zs8P6q"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 26 Feb 2013 17:45:44 UTC +00:00]]
53410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53411
+  (0.1ms) SAVEPOINT active_record_1
53412
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53413
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53415
+ SQL (0.4ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
53416
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
53417
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 12:45:44 -0500
53418
+ Processing by Contour::SessionsController#create as HTML
53419
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
53420
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
53421
+  (0.1ms) SAVEPOINT active_record_1
53422
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53423
+ Completed 401 Unauthorized in 13ms
53424
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 12:45:44 -0500
53425
+ Processing by Contour::SessionsController#new as HTML
53426
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.9ms)
53427
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.5ms)
53428
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
53429
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.9ms)
53430
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (8.0ms)
53431
+ Completed 200 OK in 34ms (Views: 32.1ms | ActiveRecord: 0.0ms)
53432
+  (0.9ms) rollback transaction
53433
+ -------------------------------------------------------------
53434
+ NavigationTest: test_root_navigation_redirected_to_login_page
53435
+ -------------------------------------------------------------
53436
+  (0.1ms) begin transaction
53437
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53438
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53439
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53440
+ Started GET "/" for 127.0.0.1 at 2013-02-26 12:45:44 -0500
53441
+ Processing by WelcomeController#index as HTML
53442
+ Completed 401 Unauthorized in 2ms
53443
+  (0.1ms) rollback transaction
53444
+ -------------------------------------------------------------------------
53445
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
53446
+ -------------------------------------------------------------------------
53447
+  (0.1ms) begin transaction
53448
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53449
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53450
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53451
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 12:45:44 -0500
53452
+ Processing by WelcomeController#logged_in_page as JSON
53453
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
53454
+  (0.1ms) SAVEPOINT active_record_1
53455
+ SQL (0.9ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 26 Feb 2013 17:45:44 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 17:45:44 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 17:45:44 UTC +00:00]]
53456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53457
+ Completed 200 OK in 302ms (Views: 0.4ms | ActiveRecord: 1.3ms)
53458
+  (0.9ms) rollback transaction
53459
+ ------------------------------------------------------------------------------------------------
53460
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
53461
+ ------------------------------------------------------------------------------------------------
53462
+  (0.1ms) begin transaction
53463
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53464
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53465
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53466
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 12:45:44 -0500
53467
+ Processing by WelcomeController#logged_in_page as JSON
53468
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
53469
+ Completed 401 Unauthorized in 291ms
53470
+  (0.1ms) rollback transaction
53471
+ ------------------------------------
53472
+ UserTest: test_should_apply_omniauth
53473
+ ------------------------------------
53474
+  (0.1ms) begin transaction
53475
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53476
+  (0.1ms) rollback transaction
53477
+ --------------------------------------
53478
+ UserTest: test_should_get_reverse_name
53479
+ --------------------------------------
53480
+  (0.1ms) begin transaction
53481
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53482
+  (0.1ms) rollback transaction
53483
+ -------------------------------------------------
53484
+ AuthenticationTest: test_should_get_provider_name
53485
+ -------------------------------------------------
53486
+  (0.5ms) begin transaction
53487
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
53488
+ Fixture Insert (0.3ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 17:50:30', '2013-02-26 17:50:30', 949717663, 201799169)
53489
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 17:50:30', '2013-02-26 17:50:30', 876923740, 201799169)
53490
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 17:50:30', '2013-02-26 17:50:30', 864673665, 201799169)
53491
+ Fixture Delete (0.2ms) DELETE FROM "users"
53492
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 17:50:30', '2013-02-26 17:50:30', 201799169)
53493
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 17:50:30', '2013-02-26 17:50:30', 999914115)
53494
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 17:50:30', '2013-02-26 17:50:30', 725306934)
53495
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 17:50:30', '2013-02-26 17:50:30', 349534908)
53496
+  (1.9ms) commit transaction
53497
+  (0.1ms) begin transaction
53498
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
53499
+  (0.1ms) rollback transaction
53500
+ --------------------------------------------------------------------------------
53501
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
53502
+ --------------------------------------------------------------------------------
53503
+  (0.1ms) begin transaction
53504
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
53505
+  (0.1ms) rollback transaction
53506
+ -------------------------------------------------------------------------
53507
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
53508
+ -------------------------------------------------------------------------
53509
+  (0.1ms) begin transaction
53510
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53511
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
53512
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
53513
+ Processing by Contour::AuthenticationsController#create as HTML
53514
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-02-26 17:50:30 UTC", "updated_at"=>"2013-02-26 17:50:30 UTC"}}
53515
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
53516
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
53517
+ Logged in user found, creating associated authentication.
53518
+  (0.1ms) SAVEPOINT active_record_1
53519
+ SQL (27.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 17:50:31 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 26 Feb 2013 17:50:31 UTC +00:00], ["user_id", 201799169]]
53520
+  (0.2ms) RELEASE SAVEPOINT active_record_1
53521
+ Redirected to http://test.host/authentications
53522
+ Completed 302 Found in 119ms (ActiveRecord: 28.2ms)
53523
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
53524
+  (0.8ms) rollback transaction
53525
+ --------------------------------------------------------------------------
53526
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
53527
+ --------------------------------------------------------------------------
53528
+  (0.1ms) begin transaction
53529
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53530
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
53531
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
53532
+ Processing by Contour::AuthenticationsController#destroy as HTML
53533
+ Parameters: {"id"=>"949717663"}
53534
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
53535
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
53536
+  (0.1ms) SAVEPOINT active_record_1
53537
+ SQL (0.3ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
53538
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53539
+ Redirected to http://test.host/authentications
53540
+ Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
53541
+  (0.2ms) SELECT COUNT(*) FROM "authentications"
53542
+  (0.7ms) rollback transaction
53543
+ -------------------------------------------------------------
53544
+ Contour::AuthenticationsControllerTest: test_should_get_index
53545
+ -------------------------------------------------------------
53546
+  (0.1ms) begin transaction
53547
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53548
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
53549
+ Processing by Contour::AuthenticationsController#index as HTML
53550
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
53551
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
53552
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
53553
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (29.8ms)
53554
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.0ms)
53555
+ Completed 200 OK in 237ms (Views: 233.3ms | ActiveRecord: 0.7ms)
53556
+  (0.1ms) rollback transaction
53557
+ -----------------------------------------------------------------------------
53558
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
53559
+ -----------------------------------------------------------------------------
53560
+  (0.2ms) begin transaction
53561
+ Processing by Contour::PasswordsController#create as HTML
53562
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
53563
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
53564
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'sEnZQdwqYWajpDhuxUnA' LIMIT 1
53565
+  (0.1ms) SAVEPOINT active_record_1
53566
+ SQL (0.8ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "sEnZQdwqYWajpDhuxUnA"], ["reset_password_sent_at", Tue, 26 Feb 2013 17:50:31 UTC +00:00], ["updated_at", Tue, 26 Feb 2013 17:50:31 UTC +00:00]]
53567
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53568
+
53569
+ Sent mail to valid@example.com (39.8ms)
53570
+ Date: Tue, 26 Feb 2013 12:50:31 -0500
53571
+ From: please-change-me-at-config-initializers-devise@example.com
53572
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
53573
+ To: valid@example.com
53574
+ Message-ID: <512cf5e77c7b6_9ca63ffa9dc35adc783d1@edge2.partners.org.mail>
53575
+ Subject: Reset password instructions
53576
+ Mime-Version: 1.0
53577
+ Content-Type: text/html;
53578
+ charset=UTF-8
53579
+ Content-Transfer-Encoding: 7bit
53580
+
53581
+ <p>Hello valid@example.com!</p>
53582
+
53583
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
53584
+
53585
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=sEnZQdwqYWajpDhuxUnA">Change my password</a></p>
53586
+
53587
+ <p>If you didn't request this, please ignore this email.</p>
53588
+ <p>Your password won't change until you access the link above and create a new one.</p>
53589
+
53590
+ Redirected to http://test.host/users/login
53591
+ Completed 302 Found in 342ms (ActiveRecord: 0.0ms)
53592
+  (21.8ms) rollback transaction
53593
+ -----------------------------------------------------------------------------
53594
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
53595
+ -----------------------------------------------------------------------------
53596
+  (0.2ms) begin transaction
53597
+ Processing by Contour::PasswordsController#new as HTML
53598
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.8ms)
53599
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (18.5ms)
53600
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (23.8ms)
53601
+ Completed 200 OK in 109ms (Views: 108.1ms | ActiveRecord: 0.0ms)
53602
+  (0.1ms) rollback transaction
53603
+ -----------------------------------------------------
53604
+ ContourHelperTest: test_should_show_sort_field_helper
53605
+ -----------------------------------------------------
53606
+  (0.1ms) begin transaction
53607
+  (0.1ms) rollback transaction
53608
+ ---------------------------------------------------------------------
53609
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
53610
+ ---------------------------------------------------------------------
53611
+  (0.1ms) begin transaction
53612
+  (0.1ms) rollback transaction
53613
+ -----------------------
53614
+ ContourTest: test_truth
53615
+ -----------------------
53616
+  (0.1ms) begin transaction
53617
+  (0.1ms) rollback transaction
53618
+ --------------------------------------------------------------------
53619
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
53620
+ --------------------------------------------------------------------
53621
+  (0.1ms) begin transaction
53622
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53623
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53624
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53625
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 12:50:31 -0500
53626
+ Processing by WelcomeController#logged_in_page as HTML
53627
+ Completed 401 Unauthorized in 37ms
53628
+  (0.1ms) SAVEPOINT active_record_1
53629
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
53630
+ Binary data inserted for `string` type on column `encrypted_password`
53631
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 17:50:32 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$mqoW1bb/hIgkx67uMR8PouSw/tBDbx2DWsPbQQ/VTawsttdW/mhNa"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 26 Feb 2013 17:50:32 UTC +00:00]]
53632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53633
+  (0.1ms) SAVEPOINT active_record_1
53634
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53635
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53636
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53637
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
53638
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
53639
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 12:50:32 -0500
53640
+ Processing by Contour::SessionsController#create as HTML
53641
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
53642
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
53643
+  (0.1ms) SAVEPOINT active_record_1
53644
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53645
+ Completed 401 Unauthorized in 17ms
53646
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 12:50:32 -0500
53647
+ Processing by Contour::SessionsController#new as HTML
53648
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.4ms)
53649
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.7ms)
53650
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.0ms)
53651
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.7ms)
53652
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.1ms)
53653
+ Completed 200 OK in 49ms (Views: 47.2ms | ActiveRecord: 0.0ms)
53654
+  (1.1ms) rollback transaction
53655
+ --------------------------------------------------------
53656
+ NavigationTest: test_friendly_url_forwarding_after_login
53657
+ --------------------------------------------------------
53658
+  (0.1ms) begin transaction
53659
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53660
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53661
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53662
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 12:50:32 -0500
53663
+ Processing by WelcomeController#logged_in_page as HTML
53664
+ Completed 401 Unauthorized in 2ms
53665
+  (0.1ms) SAVEPOINT active_record_1
53666
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
53667
+ Binary data inserted for `string` type on column `encrypted_password`
53668
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 17:50:32 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$YDJc/COy0XxXbM0SsjR5QehtVWhGpiWvoHf7kfsdioEuVWcXDWsyS"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 26 Feb 2013 17:50:32 UTC +00:00]]
53669
+  (0.2ms) RELEASE SAVEPOINT active_record_1
53670
+  (0.1ms) SAVEPOINT active_record_1
53671
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53672
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53674
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
53675
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
53676
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 12:50:32 -0500
53677
+ Processing by Contour::SessionsController#create as HTML
53678
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
53679
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
53680
+  (0.1ms) SAVEPOINT active_record_1
53681
+ SQL (0.8ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 26 Feb 2013 17:50:32 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 17:50:32 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 17:50:32 UTC +00:00]]
53682
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53683
+ Redirected to http://www.example.com/logged_in_page
53684
+ Completed 302 Found in 23ms (ActiveRecord: 0.0ms)
53685
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 12:50:32 -0500
53686
+ Processing by WelcomeController#logged_in_page as HTML
53687
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
53688
+ Completed 200 OK in 8ms (Views: 3.9ms | ActiveRecord: 0.2ms)
53689
+  (0.7ms) rollback transaction
53690
+ --------------------------------------------------------------------
53691
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
53692
+ --------------------------------------------------------------------
53693
+  (0.1ms) begin transaction
53694
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53695
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53696
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53697
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 12:50:32 -0500
53698
+ Processing by WelcomeController#logged_in_page as HTML
53699
+ Completed 401 Unauthorized in 2ms
53700
+  (0.1ms) SAVEPOINT active_record_1
53701
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
53702
+ Binary data inserted for `string` type on column `encrypted_password`
53703
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 17:50:32 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$lNJVq8ODwduWursEeRaShOEyi85CxG9LsUw7qPHTgoG6okvZ4jHDq"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 26 Feb 2013 17:50:32 UTC +00:00]]
53704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53705
+  (0.1ms) SAVEPOINT active_record_1
53706
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53707
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53708
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53709
+ SQL (0.5ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
53710
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
53711
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 12:50:32 -0500
53712
+ Processing by Contour::SessionsController#create as HTML
53713
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
53714
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
53715
+  (0.1ms) SAVEPOINT active_record_1
53716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53717
+ Completed 401 Unauthorized in 13ms
53718
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 12:50:32 -0500
53719
+ Processing by Contour::SessionsController#new as HTML
53720
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
53721
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (3.8ms)
53722
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
53723
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.6ms)
53724
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (6.8ms)
53725
+ Completed 200 OK in 35ms (Views: 33.3ms | ActiveRecord: 0.0ms)
53726
+  (6.2ms) rollback transaction
53727
+ -------------------------------------------------------------
53728
+ NavigationTest: test_root_navigation_redirected_to_login_page
53729
+ -------------------------------------------------------------
53730
+  (0.1ms) begin transaction
53731
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53732
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53733
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53734
+ Started GET "/" for 127.0.0.1 at 2013-02-26 12:50:32 -0500
53735
+ Processing by WelcomeController#index as HTML
53736
+ Completed 401 Unauthorized in 2ms
53737
+  (0.2ms) rollback transaction
53738
+ -------------------------------------------------------------------------
53739
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
53740
+ -------------------------------------------------------------------------
53741
+  (0.1ms) begin transaction
53742
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53743
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53744
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53745
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 12:50:32 -0500
53746
+ Processing by WelcomeController#logged_in_page as JSON
53747
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
53748
+  (0.1ms) SAVEPOINT active_record_1
53749
+ SQL (0.7ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 26 Feb 2013 17:50:33 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 17:50:33 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 17:50:33 UTC +00:00]]
53750
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53751
+ Completed 200 OK in 298ms (Views: 0.4ms | ActiveRecord: 1.2ms)
53752
+  (1.1ms) rollback transaction
53753
+ ------------------------------------------------------------------------------------------------
53754
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
53755
+ ------------------------------------------------------------------------------------------------
53756
+  (0.1ms) begin transaction
53757
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53758
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53759
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53760
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 12:50:33 -0500
53761
+ Processing by WelcomeController#logged_in_page as JSON
53762
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
53763
+ Completed 401 Unauthorized in 292ms
53764
+  (0.1ms) rollback transaction
53765
+ ------------------------------------
53766
+ UserTest: test_should_apply_omniauth
53767
+ ------------------------------------
53768
+  (0.1ms) begin transaction
53769
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53770
+  (0.1ms) rollback transaction
53771
+ --------------------------------------
53772
+ UserTest: test_should_get_reverse_name
53773
+ --------------------------------------
53774
+  (0.1ms) begin transaction
53775
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53776
+  (0.1ms) rollback transaction
53777
+ -------------------------------------------------
53778
+ AuthenticationTest: test_should_get_provider_name
53779
+ -------------------------------------------------
53780
+  (0.4ms) begin transaction
53781
+ Fixture Delete (0.3ms) DELETE FROM "authentications"
53782
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 17:54:29', '2013-02-26 17:54:29', 949717663, 201799169)
53783
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 17:54:29', '2013-02-26 17:54:29', 876923740, 201799169)
53784
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 17:54:29', '2013-02-26 17:54:29', 864673665, 201799169)
53785
+ Fixture Delete (0.2ms) DELETE FROM "users"
53786
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 17:54:29', '2013-02-26 17:54:29', 201799169)
53787
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 17:54:29', '2013-02-26 17:54:29', 999914115)
53788
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 17:54:29', '2013-02-26 17:54:29', 725306934)
53789
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 17:54:29', '2013-02-26 17:54:29', 349534908)
53790
+  (1.8ms) commit transaction
53791
+  (0.1ms) begin transaction
53792
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
53793
+  (0.2ms) rollback transaction
53794
+ --------------------------------------------------------------------------------
53795
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
53796
+ --------------------------------------------------------------------------------
53797
+  (0.1ms) begin transaction
53798
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
53799
+  (0.1ms) rollback transaction
53800
+ -------------------------------------------------------------------------
53801
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
53802
+ -------------------------------------------------------------------------
53803
+  (0.1ms) begin transaction
53804
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53805
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
53806
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
53807
+ Processing by Contour::AuthenticationsController#create as HTML
53808
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-02-26 17:54:29 UTC", "updated_at"=>"2013-02-26 17:54:29 UTC"}}
53809
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
53810
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
53811
+ Logged in user found, creating associated authentication.
53812
+  (0.1ms) SAVEPOINT active_record_1
53813
+ SQL (3.4ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 17:54:29 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 26 Feb 2013 17:54:29 UTC +00:00], ["user_id", 201799169]]
53814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53815
+ Redirected to http://test.host/authentications
53816
+ Completed 302 Found in 89ms (ActiveRecord: 4.0ms)
53817
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
53818
+  (0.7ms) rollback transaction
53819
+ --------------------------------------------------------------------------
53820
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
53821
+ --------------------------------------------------------------------------
53822
+  (0.1ms) begin transaction
53823
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53824
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
53825
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
53826
+ Processing by Contour::AuthenticationsController#destroy as HTML
53827
+ Parameters: {"id"=>"949717663"}
53828
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
53829
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
53830
+  (0.1ms) SAVEPOINT active_record_1
53831
+ SQL (0.5ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
53832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53833
+ Redirected to http://test.host/authentications
53834
+ Completed 302 Found in 7ms (ActiveRecord: 1.1ms)
53835
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
53836
+  (0.7ms) rollback transaction
53837
+ -------------------------------------------------------------
53838
+ Contour::AuthenticationsControllerTest: test_should_get_index
53839
+ -------------------------------------------------------------
53840
+  (0.1ms) begin transaction
53841
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53842
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
53843
+ Processing by Contour::AuthenticationsController#index as HTML
53844
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
53845
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
53846
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
53847
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (28.4ms)
53848
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.5ms)
53849
+ Completed 200 OK in 247ms (Views: 242.6ms | ActiveRecord: 0.6ms)
53850
+  (0.1ms) rollback transaction
53851
+ -----------------------------------------------------------------------------
53852
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
53853
+ -----------------------------------------------------------------------------
53854
+  (0.1ms) begin transaction
53855
+ Processing by Contour::PasswordsController#create as HTML
53856
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
53857
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
53858
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'tAEzrTAuyzLnRzspH4PY' LIMIT 1
53859
+  (0.1ms) SAVEPOINT active_record_1
53860
+ SQL (1.0ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "tAEzrTAuyzLnRzspH4PY"], ["reset_password_sent_at", Tue, 26 Feb 2013 17:54:29 UTC +00:00], ["updated_at", Tue, 26 Feb 2013 17:54:29 UTC +00:00]]
53861
+  (0.2ms) RELEASE SAVEPOINT active_record_1
53862
+
53863
+ Sent mail to valid@example.com (38.3ms)
53864
+ Date: Tue, 26 Feb 2013 12:54:29 -0500
53865
+ From: please-change-me-at-config-initializers-devise@example.com
53866
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
53867
+ To: valid@example.com
53868
+ Message-ID: <512cf6d5b9ee5_9d493fd11d435ad459298@edge2.partners.org.mail>
53869
+ Subject: Reset password instructions
53870
+ Mime-Version: 1.0
53871
+ Content-Type: text/html;
53872
+ charset=UTF-8
53873
+ Content-Transfer-Encoding: 7bit
53874
+
53875
+ <p>Hello valid@example.com!</p>
53876
+
53877
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
53878
+
53879
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=tAEzrTAuyzLnRzspH4PY">Change my password</a></p>
53880
+
53881
+ <p>If you didn't request this, please ignore this email.</p>
53882
+ <p>Your password won't change until you access the link above and create a new one.</p>
53883
+
53884
+ Redirected to http://test.host/users/login
53885
+ Completed 302 Found in 231ms (ActiveRecord: 0.0ms)
53886
+  (0.8ms) rollback transaction
53887
+ -----------------------------------------------------------------------------
53888
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
53889
+ -----------------------------------------------------------------------------
53890
+  (0.1ms) begin transaction
53891
+ Processing by Contour::PasswordsController#new as HTML
53892
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (4.4ms)
53893
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (18.2ms)
53894
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (23.3ms)
53895
+ Completed 200 OK in 107ms (Views: 105.9ms | ActiveRecord: 0.0ms)
53896
+  (0.1ms) rollback transaction
53897
+ -----------------------------------------------------
53898
+ ContourHelperTest: test_should_show_sort_field_helper
53899
+ -----------------------------------------------------
53900
+  (0.1ms) begin transaction
53901
+  (0.1ms) rollback transaction
53902
+ ---------------------------------------------------------------------
53903
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
53904
+ ---------------------------------------------------------------------
53905
+  (0.1ms) begin transaction
53906
+  (0.1ms) rollback transaction
53907
+ -----------------------
53908
+ ContourTest: test_truth
53909
+ -----------------------
53910
+  (0.1ms) begin transaction
53911
+  (0.1ms) rollback transaction
53912
+ --------------------------------------------------------------------
53913
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
53914
+ --------------------------------------------------------------------
53915
+  (0.1ms) begin transaction
53916
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53917
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53918
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53919
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 12:54:29 -0500
53920
+ Processing by WelcomeController#logged_in_page as HTML
53921
+ Completed 401 Unauthorized in 33ms
53922
+  (0.1ms) SAVEPOINT active_record_1
53923
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
53924
+ Binary data inserted for `string` type on column `encrypted_password`
53925
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 17:54:30 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$WUlx.4o272A7u9rBf0tY1uDp7zde5g.nqLoWUBcXPcz5U5Ii.pIZO"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 26 Feb 2013 17:54:30 UTC +00:00]]
53926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53927
+  (0.1ms) SAVEPOINT active_record_1
53928
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53929
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53930
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53931
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
53932
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
53933
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 12:54:30 -0500
53934
+ Processing by Contour::SessionsController#create as HTML
53935
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
53936
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
53937
+  (0.1ms) SAVEPOINT active_record_1
53938
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53939
+ Completed 401 Unauthorized in 16ms
53940
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 12:54:30 -0500
53941
+ Processing by Contour::SessionsController#new as HTML
53942
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.4ms)
53943
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (4.9ms)
53944
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.1ms)
53945
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.9ms)
53946
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.2ms)
53947
+ Completed 200 OK in 51ms (Views: 48.5ms | ActiveRecord: 0.0ms)
53948
+  (1.0ms) rollback transaction
53949
+ --------------------------------------------------------
53950
+ NavigationTest: test_friendly_url_forwarding_after_login
53951
+ --------------------------------------------------------
53952
+  (0.1ms) begin transaction
53953
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53954
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53955
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53956
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 12:54:30 -0500
53957
+ Processing by WelcomeController#logged_in_page as HTML
53958
+ Completed 401 Unauthorized in 2ms
53959
+  (0.1ms) SAVEPOINT active_record_1
53960
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
53961
+ Binary data inserted for `string` type on column `encrypted_password`
53962
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 17:54:30 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$LnMEf/B.4.WoJqB07oaKR.iuPb8E3fPZT02ZzZ638yA3ODNewlJHy"], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 26 Feb 2013 17:54:30 UTC +00:00]]
53963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53964
+  (0.1ms) SAVEPOINT active_record_1
53965
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53966
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
53967
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53968
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
53969
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
53970
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 12:54:30 -0500
53971
+ Processing by Contour::SessionsController#create as HTML
53972
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
53973
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
53974
+  (0.1ms) SAVEPOINT active_record_1
53975
+ SQL (0.6ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 26 Feb 2013 17:54:30 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 17:54:30 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 17:54:30 UTC +00:00]]
53976
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53977
+ Redirected to http://www.example.com/logged_in_page
53978
+ Completed 302 Found in 21ms (ActiveRecord: 0.0ms)
53979
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 12:54:30 -0500
53980
+ Processing by WelcomeController#logged_in_page as HTML
53981
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
53982
+ Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.2ms)
53983
+  (0.9ms) rollback transaction
53984
+ --------------------------------------------------------------------
53985
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
53986
+ --------------------------------------------------------------------
53987
+  (0.1ms) begin transaction
53988
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
53989
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
53990
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
53991
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-02-26 12:54:30 -0500
53992
+ Processing by WelcomeController#logged_in_page as HTML
53993
+ Completed 401 Unauthorized in 2ms
53994
+  (0.1ms) SAVEPOINT active_record_1
53995
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
53996
+ Binary data inserted for `string` type on column `encrypted_password`
53997
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 26 Feb 2013 17:54:30 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$uEuhRL7wmLoHlHeKhj.XgugGA2826GqfkmsPXOBDjLZT9lA9x17zG"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 26 Feb 2013 17:54:30 UTC +00:00]]
53998
+  (0.1ms) RELEASE SAVEPOINT active_record_1
53999
+  (0.1ms) SAVEPOINT active_record_1
54000
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54001
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
54002
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54003
+ SQL (0.5ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
54004
+ SQL (0.2ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
54005
+ Started POST "/users/login" for 127.0.0.1 at 2013-02-26 12:54:30 -0500
54006
+ Processing by Contour::SessionsController#create as HTML
54007
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
54008
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
54009
+  (0.1ms) SAVEPOINT active_record_1
54010
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54011
+ Completed 401 Unauthorized in 14ms
54012
+ Started GET "/users/login" for 127.0.0.1 at 2013-02-26 12:54:30 -0500
54013
+ Processing by Contour::SessionsController#new as HTML
54014
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.6ms)
54015
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (5.2ms)
54016
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.2ms)
54017
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.8ms)
54018
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (7.2ms)
54019
+ Completed 200 OK in 40ms (Views: 38.1ms | ActiveRecord: 0.0ms)
54020
+  (0.8ms) rollback transaction
54021
+ -------------------------------------------------------------
54022
+ NavigationTest: test_root_navigation_redirected_to_login_page
54023
+ -------------------------------------------------------------
54024
+  (0.1ms) begin transaction
54025
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54026
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54027
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54028
+ Started GET "/" for 127.0.0.1 at 2013-02-26 12:54:30 -0500
54029
+ Processing by WelcomeController#index as HTML
54030
+ Completed 401 Unauthorized in 2ms
54031
+  (0.1ms) rollback transaction
54032
+ -------------------------------------------------------------------------
54033
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
54034
+ -------------------------------------------------------------------------
54035
+  (0.1ms) begin transaction
54036
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54037
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54038
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54039
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 12:54:30 -0500
54040
+ Processing by WelcomeController#logged_in_page as JSON
54041
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
54042
+  (0.1ms) SAVEPOINT active_record_1
54043
+ SQL (0.7ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 26 Feb 2013 17:54:30 UTC +00:00], ["current_sign_in_at", Tue, 26 Feb 2013 17:54:30 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 26 Feb 2013 17:54:30 UTC +00:00]]
54044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
54045
+ Completed 200 OK in 298ms (Views: 0.4ms | ActiveRecord: 1.2ms)
54046
+  (1.0ms) rollback transaction
54047
+ ------------------------------------------------------------------------------------------------
54048
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
54049
+ ------------------------------------------------------------------------------------------------
54050
+  (0.1ms) begin transaction
54051
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54052
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
54053
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
54054
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-02-26 12:54:31 -0500
54055
+ Processing by WelcomeController#logged_in_page as JSON
54056
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
54057
+ Completed 401 Unauthorized in 294ms
54058
+  (0.1ms) rollback transaction
54059
+ ------------------------------------
54060
+ UserTest: test_should_apply_omniauth
54061
+ ------------------------------------
54062
+  (0.1ms) begin transaction
54063
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54064
+  (0.1ms) rollback transaction
54065
+ --------------------------------------
54066
+ UserTest: test_should_get_reverse_name
54067
+ --------------------------------------
54068
+  (0.1ms) begin transaction
54069
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
54070
+  (0.1ms) rollback transaction