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.
- checksums.yaml +8 -8
- data/CHANGELOG.md +6 -0
- data/README.md +9 -30
- data/Rakefile +14 -25
- data/app/assets/javascripts/contour/global.js.coffee +16 -15
- data/app/controllers/contour/authentications_controller.rb +2 -0
- data/app/models/authentication.rb +2 -5
- data/app/models/concerns/contour_authenticatable.rb +12 -0
- data/app/models/concerns/contourable.rb +19 -0
- data/app/views/contour/layouts/application.html.erb +2 -2
- data/config/routes.rb +4 -4
- data/contour.gemspec +4 -2
- data/lib/contour/version.rb +3 -3
- data/lib/generators/contour/scaffold/templates/_paginate.html.erb +1 -1
- data/lib/generators/contour/scaffold/templates/controller.rb +31 -52
- data/lib/generators/contour/scaffold/templates/index.html.erb +1 -1
- data/test/{functional → controllers}/authentications_controller_test.rb +0 -0
- data/test/{functional → controllers}/passwords_controller_test.rb +0 -0
- data/test/{functional → controllers}/registrations_controller_test.rb +0 -0
- data/test/dummy/app/models/user.rb +6 -20
- data/test/dummy/config/application.rb +3 -24
- data/test/dummy/config/boot.rb +1 -1
- data/test/dummy/config/environments/development.rb +10 -13
- data/test/dummy/config/environments/production.rb +44 -24
- data/test/dummy/config/environments/test.rb +14 -17
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +9 -3
- data/test/dummy/config/initializers/secret_token.rb +6 -1
- data/test/dummy/config/initializers/session_store.rb +1 -6
- data/test/dummy/config/initializers/wrap_parameters.rb +6 -6
- data/test/dummy/config/locales/en.yml +20 -2
- data/test/dummy/config/routes.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +3178 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/015542ca3fee2683eedd21c586e8f4d7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/04f8cd84302394fd96a5a1837da2c435 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/097505e114b875201dffa335d293ea3f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/09eb485019a1180e44fa6e443aa47503 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0b793dc498fe65856d1b31a805f114dc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0e3daa6e1f20f19c7f6f41a866d36e37 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/10912716ee41871536663637aac9d90b +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/10b862dc2fcb57e871b350f99445089a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1421ef9eb96cc5dd00cd50105a186f79 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2316c3ab821288d9cc78527e3b6272a9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/25129d82803be264eda19543144ce764 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/25e897b572b78b9e7872682d1a1722e0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/29e65a0b15bf594999939014080494b0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/3ed734f0003effb5248235744ea7cfbf +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/408c90980fca5a250881bafa3ef0ca63 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/42bbea7a13ce140463a5486a3ae03c94 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4556873bdb635e908edb1b44651d42e4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/484869e0e90da89451d284b6ea1b97ea +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4c1f9630c371980e45f3ae2dfaec8a28 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4e7d7c035444f1095fa7dc67721581db +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/501011855a4cc902996843acadb9c797 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/52cdaf963c787c0aa7e2741ce4340be0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/565a4c5a5681bc36489ea1beae4553b0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5735b70ef1f983b248a47ab1f71fe267 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5aa48c4b9b88fd0c67e1480c677ac489 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6565915e91061b9bb42eda9dfa4cf3fc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6666059cb20313a69e518d351e00eb1f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6836a9eb9975c10c93f447fc315b8349 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6897902b615db6d106af2822a6e2eb62 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/715b9d65172e5d82f05fe7f179e4f641 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/768fc2641c0e22c57679e02ed8543d36 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7d06b47b0fa66ce19b154d2355b1ccd1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7e0eb4be88d9d9a70cd09bbf4007f4a4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/807cd6bd5e0c02ec0772daa3868f9d61 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/80cc7db99ad2b64556de9b8229a8f3e7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/844ae5de3828b76089f39336c6f3f6c8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/864e4f1898b310dcf0316a99ba0a3067 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/87f0cc2881f608195fdaec58ee54fbfe +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/884005c51eb580c211fdf86f83cbd7d4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8c0ac229a3088e0cd0d9db95df428103 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8e0772a1c692d481d2e5ef800602c9b3 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8f0d12234b16caea73d930c4658554e8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8fdd783b1b18cf2bf735a31f68b32131 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/939a36ef1c8fe174ef51ff8a4c5322a8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/950cf58a7bd174e827f4a73f6996e8bd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/98e808b2266a0668a608206151fa43d9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a049654e5ab2df058699bd8968c0f493 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a143a0bc0632c5cb89f596cf5272528e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a3041faa4e334801f4f495371a8cced2 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a3a6cd207915c1867e51fa92ea7827b8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a4faa95d6bafec287fc59ff59eec9625 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a7b222735fc6d94f5713fa8e4c00feec +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ac9180e2a5edc87eec65cd47141d2e80 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ae168f5fd9c4439b289abdb476b026b7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b0b29e7227617890cf734f30d2ec810e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b3b0b443293be8cc1ebeefa441c1d56f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bd73f0158510de99a53a18f4aeb1fb90 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bec5edffa453a85a42afd4849f868e81 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c04795d4fdfb36d2041fd2ee97edfdfe +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c16b6da8711e06b53e78abd01064762c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c1ccccbc73ad9c18a4f6e82a196a2fc2 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c8030c204c8e82370802bab4d708040d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cc7bd06bb71f2155aeeb684d0d880988 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cd0653a7baafdb4f0f1d06fd848a93ad +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cd0d14bed7965532879e84a4b6df7188 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ce2d46fba538c6756b32019ae8500047 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cfd79f791d02847181f8fcf1dcf2763e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d3d217eee875712c702e7b5aa7f61a5f +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/dda16ed9cc1e54fd0d97a6036e928d8d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e07c4addcee44a21398170318c44a63c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e26d2dade8b9049db6fe17631d69c20e +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e988f9e2cbcefc5fc9b5d9961bb5da0d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f1555999bb69d971b3a4a7128e83efea +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/fc1a71f26b662f0fdb7dc872c0d12cc2 +0 -0
- data/test/{unit/helpers → helpers}/contour_helper_test.rb +0 -0
- data/test/{unit → models}/authentication_test.rb +0 -0
- data/test/{unit → models}/user_test.rb +0 -0
- 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' %>
|
File without changes
|
File without changes
|
File without changes
|
@@ -7,14 +7,14 @@ class User < ActiveRecord::Base
|
|
7
7
|
devise :database_authenticatable, :registerable, :timeoutable,
|
8
8
|
:recoverable, :rememberable, :trackable, :validatable
|
9
9
|
|
10
|
-
#
|
11
|
-
|
10
|
+
# Concerns
|
11
|
+
include Contourable
|
12
12
|
|
13
|
-
#
|
14
|
-
|
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
|
-
#
|
17
|
-
|
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
|
-
|
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
|
-
|
data/test/dummy/config/boot.rb
CHANGED
@@ -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.
|
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
|
-
#
|
10
|
-
config.
|
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
|
-
#
|
23
|
-
config.
|
22
|
+
# Raise an error on page load if there are pending migrations
|
23
|
+
config.active_record.migration_error = :page_load
|
24
24
|
|
25
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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.
|
25
|
+
# Compress JavaScripts and CSS.
|
26
|
+
config.assets.js_compressor = :uglifier
|
27
|
+
# config.assets.css_compressor = :sass
|
16
28
|
|
17
|
-
#
|
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
|
-
#
|
24
|
-
|
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
|
-
#
|
34
|
-
|
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
|
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
|
-
#
|
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.
|
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.
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
8
|
config.cache_classes = true
|
9
9
|
|
10
|
-
#
|
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
|
-
#
|
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
|
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
|
-
#
|
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
|
@@ -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
|
-
#
|
5
|
-
#
|
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
|
-
|
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 :
|
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
|
-
#
|
12
|
-
ActiveSupport.on_load(:active_record) do
|
13
|
-
self.include_root_in_json =
|
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
|
-
#
|
2
|
-
#
|
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"
|
data/test/dummy/config/routes.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -50890,3 +50890,3181 @@ Completed 401 Unauthorized in 320ms
|
|
50890
50890
|
[1m[35m (0.1ms)[0m begin transaction
|
50891
50891
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
50892
50892
|
[1m[35m (0.1ms)[0m rollback transaction
|
50893
|
+
Connecting to database specified by database.yml
|
50894
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
50895
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "authentications"
|
50896
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 14:31:17', '2013-02-26 14:31:17', 949717663, 201799169)[0m
|
50897
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 14:31:17', '2013-02-26 14:31:17', 876923740, 201799169)
|
50898
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
50899
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
50900
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 14:31:17', '2013-02-26 14:31:17', 201799169)[0m
|
50901
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 14:31:17', '2013-02-26 14:31:17', 999914115)
|
50902
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('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)[0m
|
50903
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '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
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
50905
|
+
[1m[35m (0.1ms)[0m begin transaction
|
50906
|
+
[1m[36mAuthentication Load (4.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
50907
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
50908
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
50909
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
50910
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
50911
|
+
[1m[35m (0.1ms)[0m begin transaction
|
50912
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
50913
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
50914
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications" [0m
|
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
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
50918
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1[0m
|
50919
|
+
Logged in user found, creating associated authentication.
|
50920
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
50921
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
50923
|
+
Redirected to http://test.host/authentications
|
50924
|
+
Completed 302 Found in 137ms (ActiveRecord: 1.5ms)
|
50925
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications" [0m
|
50926
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
50927
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
50928
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
50929
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
50930
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
50931
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
50932
|
+
Parameters: {"id"=>"949717663"}
|
50933
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1[0m
|
50934
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
|
50935
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
50936
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
50937
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
50938
|
+
Redirected to http://test.host/authentications
|
50939
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.0ms)
|
50940
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
50941
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
50942
|
+
[1m[35m (0.1ms)[0m begin transaction
|
50943
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
50944
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
50945
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
50946
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1[0m
|
50947
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
|
50948
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
50953
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
50954
|
+
Processing by Contour::PasswordsController#create as HTML
|
50955
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
50956
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
50957
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'ZV67nri2ktxDGq7fHfsQ' LIMIT 1[0m
|
50958
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
50959
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "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[0m
|
50960
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
50986
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
50993
|
+
[1m[35m (0.1ms)[0m begin transaction
|
50994
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
50995
|
+
[1m[35m (0.1ms)[0m begin transaction
|
50996
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
50997
|
+
[1m[35m (0.1ms)[0m begin transaction
|
50998
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
50999
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51000
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51001
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51002
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
51007
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
51008
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
51009
|
+
[1m[35mSQL (1.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51011
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51012
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116[0m
|
51013
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
51014
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116[0m
|
51015
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
51020
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51021
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
51032
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51033
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
51034
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
51035
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51040
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
51044
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
51045
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
|
51046
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51047
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
51048
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
51053
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51054
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
|
51061
|
+
Completed 200 OK in 15ms (Views: 12.6ms | ActiveRecord: 0.2ms)
|
51062
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
51063
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51064
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51065
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51066
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51071
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
51072
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
51073
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51075
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51076
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116[0m
|
51077
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
51078
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116[0m
|
51079
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
51084
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51085
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
51096
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51097
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
51098
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
51099
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51104
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51105
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51106
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51107
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
51111
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51112
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51114
|
+
Completed 200 OK in 324ms (Views: 0.7ms | ActiveRecord: 0.8ms)
|
51115
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
51116
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51117
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
51118
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
51119
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
51123
|
+
Completed 401 Unauthorized in 313ms
|
51124
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51125
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51126
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
51127
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51128
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51129
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51130
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51131
|
+
-------------------------------------------------
|
51132
|
+
AuthenticationTest: test_should_get_provider_name
|
51133
|
+
-------------------------------------------------
|
51134
|
+
[1m[36m (0.9ms)[0m [1mbegin transaction[0m
|
51135
|
+
[1m[35mFixture Delete (12.8ms)[0m DELETE FROM "authentications"
|
51136
|
+
[1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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)[0m
|
51137
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 876923740, 201799169)
|
51138
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 864673665, 201799169)[0m
|
51139
|
+
[1m[35mFixture Delete (1.0ms)[0m DELETE FROM "users"
|
51140
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 201799169)[0m
|
51141
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 999914115)
|
51142
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 725306934)[0m
|
51143
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:11:29', '2013-02-26 15:11:29', 349534908)
|
51144
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
51145
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51146
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
51147
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
51148
|
+
--------------------------------------------------------------------------------
|
51149
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
51150
|
+
--------------------------------------------------------------------------------
|
51151
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51152
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
51153
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51154
|
+
-------------------------------------------------------------------------
|
51155
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
51156
|
+
-------------------------------------------------------------------------
|
51157
|
+
[1m[35m (0.2ms)[0m begin transaction
|
51158
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51159
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
51160
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.3ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
51164
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
51165
|
+
Logged in user found, creating associated authentication.
|
51166
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51167
|
+
[1m[36mSQL (43.0ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
51169
|
+
Redirected to http://test.host/authentications
|
51170
|
+
Completed 302 Found in 261ms (ActiveRecord: 43.8ms)
|
51171
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
51172
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
51173
|
+
--------------------------------------------------------------------------
|
51174
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
51175
|
+
--------------------------------------------------------------------------
|
51176
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51177
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
51178
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
51179
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
51180
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
51181
|
+
Parameters: {"id"=>"949717663"}
|
51182
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
51183
|
+
[1m[35mAuthentication Load (0.3ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
51184
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51185
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
51186
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51187
|
+
Redirected to http://test.host/authentications
|
51188
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.3ms)
|
51189
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
51190
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
51191
|
+
-------------------------------------------------------------
|
51192
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
51193
|
+
-------------------------------------------------------------
|
51194
|
+
[1m[35m (0.2ms)[0m begin transaction
|
51195
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51196
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
51197
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
51198
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
51199
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
51200
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
51205
|
+
-----------------------------------------------------------------------------
|
51206
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
51207
|
+
-----------------------------------------------------------------------------
|
51208
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51209
|
+
Processing by Contour::PasswordsController#create as HTML
|
51210
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
51211
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
51212
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'wcVff3hFzwXEvXxxFzbV' LIMIT 1[0m
|
51213
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51214
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
51241
|
+
-----------------------------------------------------------------------------
|
51242
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
51243
|
+
-----------------------------------------------------------------------------
|
51244
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51251
|
+
-----------------------------------------------------
|
51252
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
51253
|
+
-----------------------------------------------------
|
51254
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51255
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51256
|
+
---------------------------------------------------------------------
|
51257
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
51258
|
+
---------------------------------------------------------------------
|
51259
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51260
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
51261
|
+
-----------------------
|
51262
|
+
ContourTest: test_truth
|
51263
|
+
-----------------------
|
51264
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51265
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51266
|
+
--------------------------------------------------------------------
|
51267
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
51268
|
+
--------------------------------------------------------------------
|
51269
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51270
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51271
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51272
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51277
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
51278
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
51279
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51281
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51282
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
51283
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
51284
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51285
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
51286
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
51291
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51292
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
51303
|
+
--------------------------------------------------------
|
51304
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
51305
|
+
--------------------------------------------------------
|
51306
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51307
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51308
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51309
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
51314
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
51315
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
51316
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51318
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51319
|
+
[1m[36mAuthentication Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
51320
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
51321
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51322
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
51323
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
51328
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51329
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
51338
|
+
--------------------------------------------------------------------
|
51339
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
51340
|
+
--------------------------------------------------------------------
|
51341
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51342
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51343
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51344
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51349
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
51350
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
51351
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51353
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51354
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
51355
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
51356
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51357
|
+
[1m[35mSQL (33.0ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
51358
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
51363
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51364
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
51375
|
+
-------------------------------------------------------------
|
51376
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
51377
|
+
-------------------------------------------------------------
|
51378
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51379
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51380
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51381
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51386
|
+
-------------------------------------------------------------------------
|
51387
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
51388
|
+
-------------------------------------------------------------------------
|
51389
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51390
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
51391
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
51392
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
51396
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51397
|
+
[1m[36mSQL (161.1ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
51399
|
+
Completed 200 OK in 486ms (Views: 0.7ms | ActiveRecord: 161.8ms)
|
51400
|
+
[1m[36m (296.2ms)[0m [1mrollback transaction[0m
|
51401
|
+
------------------------------------------------------------------------------------------------
|
51402
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
51403
|
+
------------------------------------------------------------------------------------------------
|
51404
|
+
[1m[35m (0.2ms)[0m begin transaction
|
51405
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51406
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51407
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
51411
|
+
Completed 401 Unauthorized in 299ms
|
51412
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
51413
|
+
------------------------------------
|
51414
|
+
UserTest: test_should_apply_omniauth
|
51415
|
+
------------------------------------
|
51416
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51417
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51418
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51419
|
+
--------------------------------------
|
51420
|
+
UserTest: test_should_get_reverse_name
|
51421
|
+
--------------------------------------
|
51422
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51423
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
51424
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51425
|
+
-------------------------------------------------
|
51426
|
+
AuthenticationTest: test_should_get_provider_name
|
51427
|
+
-------------------------------------------------
|
51428
|
+
[1m[36m (9.0ms)[0m [1mbegin transaction[0m
|
51429
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "authentications"
|
51430
|
+
[1m[36mFixture Insert (16.0ms)[0m [1mINSERT 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)[0m
|
51431
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
51433
|
+
[1m[35mFixture Delete (1.1ms)[0m DELETE FROM "users"
|
51434
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:15:39', '2013-02-26 15:15:39', 201799169)[0m
|
51435
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:15:39', '2013-02-26 15:15:39', 999914115)
|
51436
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:15:39', '2013-02-26 15:15:39', 725306934)[0m
|
51437
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:15:39', '2013-02-26 15:15:39', 349534908)
|
51438
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
51439
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51440
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
51441
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51442
|
+
--------------------------------------------------------------------------------
|
51443
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
51444
|
+
--------------------------------------------------------------------------------
|
51445
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51446
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
51447
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51448
|
+
-------------------------------------------------------------------------
|
51449
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
51450
|
+
-------------------------------------------------------------------------
|
51451
|
+
[1m[35m (0.2ms)[0m begin transaction
|
51452
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51453
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
51454
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
51458
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
51459
|
+
Logged in user found, creating associated authentication.
|
51460
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51461
|
+
[1m[36mSQL (42.9ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
51463
|
+
Redirected to http://test.host/authentications
|
51464
|
+
Completed 302 Found in 113ms (ActiveRecord: 43.6ms)
|
51465
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
51466
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
51467
|
+
--------------------------------------------------------------------------
|
51468
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
51469
|
+
--------------------------------------------------------------------------
|
51470
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51471
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
51472
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
51473
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
51474
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
51475
|
+
Parameters: {"id"=>"949717663"}
|
51476
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
51477
|
+
[1m[35mAuthentication Load (0.3ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
51478
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51479
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
51480
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51481
|
+
Redirected to http://test.host/authentications
|
51482
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.2ms)
|
51483
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
51484
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
51485
|
+
-------------------------------------------------------------
|
51486
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
51487
|
+
-------------------------------------------------------------
|
51488
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51489
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51490
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
51491
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
51492
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
51493
|
+
[1m[35mAuthentication Exists (0.3ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
51494
|
+
[1m[36mAuthentication Load (0.4ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
51499
|
+
-----------------------------------------------------------------------------
|
51500
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
51501
|
+
-----------------------------------------------------------------------------
|
51502
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
51503
|
+
Processing by Contour::PasswordsController#create as HTML
|
51504
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
51505
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
51506
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'L7AK3HReooprg1y2n4sL' LIMIT 1[0m
|
51507
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51508
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
51535
|
+
-----------------------------------------------------------------------------
|
51536
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
51537
|
+
-----------------------------------------------------------------------------
|
51538
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51545
|
+
-----------------------------------------------------
|
51546
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
51547
|
+
-----------------------------------------------------
|
51548
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51549
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51550
|
+
---------------------------------------------------------------------
|
51551
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
51552
|
+
---------------------------------------------------------------------
|
51553
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51554
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51555
|
+
-----------------------
|
51556
|
+
ContourTest: test_truth
|
51557
|
+
-----------------------
|
51558
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51559
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51560
|
+
--------------------------------------------------------------------
|
51561
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
51562
|
+
--------------------------------------------------------------------
|
51563
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51564
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51565
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51566
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51571
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
51572
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
51573
|
+
[1m[35mSQL (1.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51575
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51576
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
51577
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
51578
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51579
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
51580
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
51585
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51586
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
51597
|
+
--------------------------------------------------------
|
51598
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
51599
|
+
--------------------------------------------------------
|
51600
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51601
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51602
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51603
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
51608
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
51609
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
51610
|
+
[1m[35mSQL (1.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51612
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51613
|
+
[1m[36mAuthentication Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
51614
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
51615
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51616
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
51617
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
51622
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51623
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
51632
|
+
--------------------------------------------------------------------
|
51633
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
51634
|
+
--------------------------------------------------------------------
|
51635
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51636
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51637
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51638
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51643
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
51644
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
51645
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51647
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51648
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
51649
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
51650
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51651
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
51652
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
51657
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51658
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
51669
|
+
-------------------------------------------------------------
|
51670
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
51671
|
+
-------------------------------------------------------------
|
51672
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51673
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51674
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51675
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
51680
|
+
-------------------------------------------------------------------------
|
51681
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
51682
|
+
-------------------------------------------------------------------------
|
51683
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51684
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
51685
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
51686
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
51690
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51691
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
51693
|
+
Completed 200 OK in 299ms (Views: 0.4ms | ActiveRecord: 1.3ms)
|
51694
|
+
[1m[36m (32.0ms)[0m [1mrollback transaction[0m
|
51695
|
+
------------------------------------------------------------------------------------------------
|
51696
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
51697
|
+
------------------------------------------------------------------------------------------------
|
51698
|
+
[1m[35m (0.2ms)[0m begin transaction
|
51699
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51700
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51701
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
51705
|
+
Completed 401 Unauthorized in 298ms
|
51706
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51707
|
+
------------------------------------
|
51708
|
+
UserTest: test_should_apply_omniauth
|
51709
|
+
------------------------------------
|
51710
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51711
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51712
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51713
|
+
--------------------------------------
|
51714
|
+
UserTest: test_should_get_reverse_name
|
51715
|
+
--------------------------------------
|
51716
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
51717
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
51718
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51719
|
+
-------------------------------------------------
|
51720
|
+
AuthenticationTest: test_should_get_provider_name
|
51721
|
+
-------------------------------------------------
|
51722
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
51723
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "authentications"
|
51724
|
+
[1m[36mFixture Insert (16.1ms)[0m [1mINSERT 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)[0m
|
51725
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 15:18:45', '2013-02-26 15:18:45', 864673665, 201799169)[0m
|
51727
|
+
[1m[35mFixture Delete (0.9ms)[0m DELETE FROM "users"
|
51728
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:18:45', '2013-02-26 15:18:45', 201799169)[0m
|
51729
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:18:45', '2013-02-26 15:18:45', 999914115)
|
51730
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:18:45', '2013-02-26 15:18:45', 725306934)[0m
|
51731
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:18:45', '2013-02-26 15:18:45', 349534908)
|
51732
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
51733
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51734
|
+
[1m[36mAuthentication Load (0.4ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
51735
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51736
|
+
--------------------------------------------------------------------------------
|
51737
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
51738
|
+
--------------------------------------------------------------------------------
|
51739
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51740
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
51741
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51742
|
+
-------------------------------------------------------------------------
|
51743
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
51744
|
+
-------------------------------------------------------------------------
|
51745
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51746
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51747
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
51748
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.3ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
51752
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
51753
|
+
Logged in user found, creating associated authentication.
|
51754
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
51755
|
+
[1m[36mSQL (42.9ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
51757
|
+
Redirected to http://test.host/authentications
|
51758
|
+
Completed 302 Found in 194ms (ActiveRecord: 43.8ms)
|
51759
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
51760
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
51761
|
+
--------------------------------------------------------------------------
|
51762
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
51763
|
+
--------------------------------------------------------------------------
|
51764
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51765
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
51766
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
51767
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
51768
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
51769
|
+
Parameters: {"id"=>"949717663"}
|
51770
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
51771
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
51772
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51773
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
51774
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51775
|
+
Redirected to http://test.host/authentications
|
51776
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
|
51777
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
51778
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
51779
|
+
-------------------------------------------------------------
|
51780
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
51781
|
+
-------------------------------------------------------------
|
51782
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51783
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51784
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
51785
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
51786
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
51787
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
51788
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51793
|
+
-----------------------------------------------------------------------------
|
51794
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
51795
|
+
-----------------------------------------------------------------------------
|
51796
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51797
|
+
Processing by Contour::PasswordsController#create as HTML
|
51798
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
51799
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
51800
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '5NijHdseqqa8YyM4Mtik' LIMIT 1[0m
|
51801
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51802
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
51829
|
+
-----------------------------------------------------------------------------
|
51830
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
51831
|
+
-----------------------------------------------------------------------------
|
51832
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51839
|
+
-----------------------------------------------------
|
51840
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
51841
|
+
-----------------------------------------------------
|
51842
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51843
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51844
|
+
---------------------------------------------------------------------
|
51845
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
51846
|
+
---------------------------------------------------------------------
|
51847
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51848
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51849
|
+
-----------------------
|
51850
|
+
ContourTest: test_truth
|
51851
|
+
-----------------------
|
51852
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51853
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
51854
|
+
--------------------------------------------------------------------
|
51855
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
51856
|
+
--------------------------------------------------------------------
|
51857
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51858
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51859
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51860
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51865
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
51866
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
51867
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51869
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51870
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
51871
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
51872
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51873
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
51874
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
51879
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51880
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
51891
|
+
--------------------------------------------------------
|
51892
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
51893
|
+
--------------------------------------------------------
|
51894
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51895
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51896
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51897
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51902
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
51903
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
51904
|
+
[1m[35mSQL (12.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51906
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51907
|
+
[1m[36mAuthentication Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
51908
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
51909
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51910
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
51911
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
51916
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51917
|
+
[1m[35mSQL (1.1ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
51926
|
+
--------------------------------------------------------------------
|
51927
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
51928
|
+
--------------------------------------------------------------------
|
51929
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51930
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51931
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51932
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51937
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
51938
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
51939
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51941
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51942
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
51943
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
51944
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51945
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
51946
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
51951
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
51952
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
51963
|
+
-------------------------------------------------------------
|
51964
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
51965
|
+
-------------------------------------------------------------
|
51966
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51967
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51968
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51969
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51974
|
+
-------------------------------------------------------------------------
|
51975
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
51976
|
+
-------------------------------------------------------------------------
|
51977
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
51978
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
51979
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
51980
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
51984
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
51985
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
51987
|
+
Completed 200 OK in 299ms (Views: 0.4ms | ActiveRecord: 1.2ms)
|
51988
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
51989
|
+
------------------------------------------------------------------------------------------------
|
51990
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
51991
|
+
------------------------------------------------------------------------------------------------
|
51992
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51993
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
51994
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
51995
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
51999
|
+
Completed 401 Unauthorized in 303ms
|
52000
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
52001
|
+
------------------------------------
|
52002
|
+
UserTest: test_should_apply_omniauth
|
52003
|
+
------------------------------------
|
52004
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52005
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52006
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
52007
|
+
--------------------------------------
|
52008
|
+
UserTest: test_should_get_reverse_name
|
52009
|
+
--------------------------------------
|
52010
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52011
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
52012
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
52013
|
+
-------------------------------------------------
|
52014
|
+
AuthenticationTest: test_should_get_provider_name
|
52015
|
+
-------------------------------------------------
|
52016
|
+
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
52017
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "authentications"
|
52018
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 949717663, 201799169)[0m
|
52019
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 876923740, 201799169)
|
52020
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 864673665, 201799169)[0m
|
52021
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
52022
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 201799169)[0m
|
52023
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 999914115)
|
52024
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 725306934)[0m
|
52025
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:38:48', '2013-02-26 15:38:48', 349534908)
|
52026
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
52027
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52028
|
+
[1m[36mAuthentication Load (0.4ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
52029
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
52030
|
+
--------------------------------------------------------------------------------
|
52031
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
52032
|
+
--------------------------------------------------------------------------------
|
52033
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52034
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
52035
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52036
|
+
-------------------------------------------------------------------------
|
52037
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
52038
|
+
-------------------------------------------------------------------------
|
52039
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52040
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52041
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
52042
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
52046
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
52047
|
+
Logged in user found, creating associated authentication.
|
52048
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
52049
|
+
[1m[36mSQL (4.1ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
52051
|
+
Redirected to http://test.host/authentications
|
52052
|
+
Completed 302 Found in 169ms (ActiveRecord: 4.8ms)
|
52053
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
52054
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
52055
|
+
--------------------------------------------------------------------------
|
52056
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
52057
|
+
--------------------------------------------------------------------------
|
52058
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
52059
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
52060
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
52061
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
52062
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
52063
|
+
Parameters: {"id"=>"949717663"}
|
52064
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
52065
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
52066
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
52067
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
52068
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52069
|
+
Redirected to http://test.host/authentications
|
52070
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
|
52071
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
52072
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
52073
|
+
-------------------------------------------------------------
|
52074
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
52075
|
+
-------------------------------------------------------------
|
52076
|
+
[1m[35m (0.2ms)[0m begin transaction
|
52077
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52078
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
52079
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
52080
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
52081
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
52082
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
52087
|
+
-----------------------------------------------------------------------------
|
52088
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
52089
|
+
-----------------------------------------------------------------------------
|
52090
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52091
|
+
Processing by Contour::PasswordsController#create as HTML
|
52092
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
52093
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
52094
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = '5hTP5PqctQARCsdx4BhG' LIMIT 1[0m
|
52095
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52096
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
52123
|
+
-----------------------------------------------------------------------------
|
52124
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
52125
|
+
-----------------------------------------------------------------------------
|
52126
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52133
|
+
-----------------------------------------------------
|
52134
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
52135
|
+
-----------------------------------------------------
|
52136
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52137
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52138
|
+
---------------------------------------------------------------------
|
52139
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
52140
|
+
---------------------------------------------------------------------
|
52141
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52142
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52143
|
+
-----------------------
|
52144
|
+
ContourTest: test_truth
|
52145
|
+
-----------------------
|
52146
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52147
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52148
|
+
--------------------------------------------------------------------
|
52149
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
52150
|
+
--------------------------------------------------------------------
|
52151
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52152
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52153
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52154
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52159
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
52160
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
52161
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52163
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52164
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
52165
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
52166
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52167
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
52168
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
52173
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
52174
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
52185
|
+
--------------------------------------------------------
|
52186
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
52187
|
+
--------------------------------------------------------
|
52188
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52189
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52190
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52191
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52196
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
52197
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
52198
|
+
[1m[35mSQL (1.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52200
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52201
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
52202
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
52203
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52204
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
52205
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
52210
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
52211
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
52220
|
+
--------------------------------------------------------------------
|
52221
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
52222
|
+
--------------------------------------------------------------------
|
52223
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52224
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52225
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52226
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52231
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
52232
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
52233
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52235
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52236
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
52237
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
52238
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52239
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
52240
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
52245
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
52246
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
52257
|
+
-------------------------------------------------------------
|
52258
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
52259
|
+
-------------------------------------------------------------
|
52260
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52261
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52262
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52263
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
52268
|
+
-------------------------------------------------------------------------
|
52269
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
52270
|
+
-------------------------------------------------------------------------
|
52271
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52272
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
52273
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
52274
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
52278
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52279
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
52281
|
+
Completed 200 OK in 302ms (Views: 0.4ms | ActiveRecord: 1.4ms)
|
52282
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
52283
|
+
------------------------------------------------------------------------------------------------
|
52284
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
52285
|
+
------------------------------------------------------------------------------------------------
|
52286
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52287
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52288
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52289
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
52293
|
+
Completed 401 Unauthorized in 311ms
|
52294
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
52295
|
+
------------------------------------
|
52296
|
+
UserTest: test_should_apply_omniauth
|
52297
|
+
------------------------------------
|
52298
|
+
[1m[35m (0.2ms)[0m begin transaction
|
52299
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52300
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
52301
|
+
--------------------------------------
|
52302
|
+
UserTest: test_should_get_reverse_name
|
52303
|
+
--------------------------------------
|
52304
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
52305
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
52306
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52307
|
+
-------------------------------------------------
|
52308
|
+
AuthenticationTest: test_should_get_provider_name
|
52309
|
+
-------------------------------------------------
|
52310
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
52311
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "authentications"
|
52312
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 949717663, 201799169)[0m
|
52313
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 876923740, 201799169)
|
52314
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 864673665, 201799169)[0m
|
52315
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
52316
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 201799169)[0m
|
52317
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 999914115)
|
52318
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 725306934)[0m
|
52319
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:40:32', '2013-02-26 15:40:32', 349534908)
|
52320
|
+
[1m[36m (7.3ms)[0m [1mcommit transaction[0m
|
52321
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52322
|
+
[1m[36mAuthentication Load (0.5ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
52323
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
52324
|
+
--------------------------------------------------------------------------------
|
52325
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
52326
|
+
--------------------------------------------------------------------------------
|
52327
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52328
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
52329
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52330
|
+
-------------------------------------------------------------------------
|
52331
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
52332
|
+
-------------------------------------------------------------------------
|
52333
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52334
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52335
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
52336
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
52340
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
52341
|
+
Logged in user found, creating associated authentication.
|
52342
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52343
|
+
[1m[36mSQL (17.4ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
52345
|
+
Redirected to http://test.host/authentications
|
52346
|
+
Completed 302 Found in 123ms (ActiveRecord: 18.1ms)
|
52347
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
52348
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
52349
|
+
--------------------------------------------------------------------------
|
52350
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
52351
|
+
--------------------------------------------------------------------------
|
52352
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
52353
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
52354
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
52355
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
52356
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
52357
|
+
Parameters: {"id"=>"949717663"}
|
52358
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
52359
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
52360
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
52361
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
52362
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52363
|
+
Redirected to http://test.host/authentications
|
52364
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.0ms)
|
52365
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
52366
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
52367
|
+
-------------------------------------------------------------
|
52368
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
52369
|
+
-------------------------------------------------------------
|
52370
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52371
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52372
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
52373
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
52374
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
52375
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
52376
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
52381
|
+
-----------------------------------------------------------------------------
|
52382
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
52383
|
+
-----------------------------------------------------------------------------
|
52384
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52385
|
+
Processing by Contour::PasswordsController#create as HTML
|
52386
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
52387
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
52388
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'aaXaqsSuMnNhSMsrnikr' LIMIT 1[0m
|
52389
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52390
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
52417
|
+
-----------------------------------------------------------------------------
|
52418
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
52419
|
+
-----------------------------------------------------------------------------
|
52420
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52427
|
+
-----------------------------------------------------
|
52428
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
52429
|
+
-----------------------------------------------------
|
52430
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52431
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52432
|
+
---------------------------------------------------------------------
|
52433
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
52434
|
+
---------------------------------------------------------------------
|
52435
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52436
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52437
|
+
-----------------------
|
52438
|
+
ContourTest: test_truth
|
52439
|
+
-----------------------
|
52440
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52441
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52442
|
+
--------------------------------------------------------------------
|
52443
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
52444
|
+
--------------------------------------------------------------------
|
52445
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52446
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52447
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52448
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52453
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
52454
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
52455
|
+
[1m[35mSQL (1.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52457
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52458
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
52459
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
52460
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52461
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
52462
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
52467
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
52468
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
52479
|
+
--------------------------------------------------------
|
52480
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
52481
|
+
--------------------------------------------------------
|
52482
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52483
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52484
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52485
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52490
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
52491
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
52492
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52494
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52495
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
52496
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
52497
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52498
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
52499
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
52504
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
52505
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.3ms)[0m 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
|
+
[1m[36m (17.4ms)[0m [1mrollback transaction[0m
|
52514
|
+
--------------------------------------------------------------------
|
52515
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
52516
|
+
--------------------------------------------------------------------
|
52517
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52518
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52519
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52520
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52525
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
52526
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
52527
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52529
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52530
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
52531
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
52532
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52533
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
52534
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
52539
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
52540
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
52551
|
+
-------------------------------------------------------------
|
52552
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
52553
|
+
-------------------------------------------------------------
|
52554
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52555
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52556
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52557
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
52562
|
+
-------------------------------------------------------------------------
|
52563
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
52564
|
+
-------------------------------------------------------------------------
|
52565
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52566
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
52567
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
52568
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
52572
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52573
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
52575
|
+
Completed 200 OK in 300ms (Views: 0.4ms | ActiveRecord: 1.4ms)
|
52576
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
52577
|
+
------------------------------------------------------------------------------------------------
|
52578
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
52579
|
+
------------------------------------------------------------------------------------------------
|
52580
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52581
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52582
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52583
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
52587
|
+
Completed 401 Unauthorized in 290ms
|
52588
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52589
|
+
------------------------------------
|
52590
|
+
UserTest: test_should_apply_omniauth
|
52591
|
+
------------------------------------
|
52592
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52593
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52594
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
52595
|
+
--------------------------------------
|
52596
|
+
UserTest: test_should_get_reverse_name
|
52597
|
+
--------------------------------------
|
52598
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52599
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
52600
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52601
|
+
-------------------------------------------------
|
52602
|
+
AuthenticationTest: test_should_get_provider_name
|
52603
|
+
-------------------------------------------------
|
52604
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
52605
|
+
[1m[35mFixture Delete (35.1ms)[0m DELETE FROM "authentications"
|
52606
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m
|
52607
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
52609
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "users"
|
52610
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:49:34', '2013-02-26 15:49:34', 201799169)[0m
|
52611
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 15:49:34', '2013-02-26 15:49:34', 999914115)
|
52612
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:49:34', '2013-02-26 15:49:34', 725306934)[0m
|
52613
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 15:49:34', '2013-02-26 15:49:34', 349534908)
|
52614
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
52615
|
+
[1m[35m (0.2ms)[0m begin transaction
|
52616
|
+
[1m[36mAuthentication Load (0.5ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
52617
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
52618
|
+
--------------------------------------------------------------------------------
|
52619
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
52620
|
+
--------------------------------------------------------------------------------
|
52621
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
52622
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
52623
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52624
|
+
-------------------------------------------------------------------------
|
52625
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
52626
|
+
-------------------------------------------------------------------------
|
52627
|
+
[1m[35m (0.2ms)[0m begin transaction
|
52628
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52629
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
52630
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
52634
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
52635
|
+
Logged in user found, creating associated authentication.
|
52636
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
52637
|
+
[1m[36mSQL (38.7ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
52639
|
+
Redirected to http://test.host/authentications
|
52640
|
+
Completed 302 Found in 169ms (ActiveRecord: 39.6ms)
|
52641
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
52642
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
52643
|
+
--------------------------------------------------------------------------
|
52644
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
52645
|
+
--------------------------------------------------------------------------
|
52646
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
52647
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
52648
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
52649
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "authentications"
|
52650
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
52651
|
+
Parameters: {"id"=>"949717663"}
|
52652
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
52653
|
+
[1m[35mAuthentication Load (0.3ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
52654
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
52655
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
52656
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52657
|
+
Redirected to http://test.host/authentications
|
52658
|
+
Completed 302 Found in 10ms (ActiveRecord: 1.3ms)
|
52659
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "authentications"
|
52660
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
52661
|
+
-------------------------------------------------------------
|
52662
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
52663
|
+
-------------------------------------------------------------
|
52664
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52665
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52666
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
52667
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
52668
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
52669
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
52670
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
52675
|
+
-----------------------------------------------------------------------------
|
52676
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
52677
|
+
-----------------------------------------------------------------------------
|
52678
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
52679
|
+
Processing by Contour::PasswordsController#create as HTML
|
52680
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
52681
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
52682
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'mBKQJHSuMFjFsrTf4yMF' LIMIT 1[0m
|
52683
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52684
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
52711
|
+
-----------------------------------------------------------------------------
|
52712
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
52713
|
+
-----------------------------------------------------------------------------
|
52714
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52721
|
+
-----------------------------------------------------
|
52722
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
52723
|
+
-----------------------------------------------------
|
52724
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52725
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52726
|
+
---------------------------------------------------------------------
|
52727
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
52728
|
+
---------------------------------------------------------------------
|
52729
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52730
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52731
|
+
-----------------------
|
52732
|
+
ContourTest: test_truth
|
52733
|
+
-----------------------
|
52734
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52735
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52736
|
+
--------------------------------------------------------------------
|
52737
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
52738
|
+
--------------------------------------------------------------------
|
52739
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52740
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52741
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52742
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
52747
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
52748
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
52749
|
+
[1m[35mSQL (1.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52751
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52752
|
+
[1m[36mAuthentication Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
52753
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
52754
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52755
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
52756
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
52761
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
52762
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
52773
|
+
--------------------------------------------------------
|
52774
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
52775
|
+
--------------------------------------------------------
|
52776
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52777
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52778
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52779
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52784
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
52785
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
52786
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52788
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52789
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
52790
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
52791
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52792
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
52793
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
52798
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
52799
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (9.8ms)[0m [1mrollback transaction[0m
|
52808
|
+
--------------------------------------------------------------------
|
52809
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
52810
|
+
--------------------------------------------------------------------
|
52811
|
+
[1m[35m (0.2ms)[0m begin transaction
|
52812
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52813
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52814
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52819
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
52820
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
52821
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52823
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52824
|
+
[1m[36mAuthentication Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
52825
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
52826
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52827
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
52828
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
52833
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
52834
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (11.5ms)[0m [1mrollback transaction[0m
|
52845
|
+
-------------------------------------------------------------
|
52846
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
52847
|
+
-------------------------------------------------------------
|
52848
|
+
[1m[35m (0.2ms)[0m begin transaction
|
52849
|
+
[1m[36mUser Load (23.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52850
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52851
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
52856
|
+
-------------------------------------------------------------------------
|
52857
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
52858
|
+
-------------------------------------------------------------------------
|
52859
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
52860
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
52861
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
52862
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
52866
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
52867
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
52869
|
+
Completed 200 OK in 321ms (Views: 0.4ms | ActiveRecord: 1.4ms)
|
52870
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
52871
|
+
------------------------------------------------------------------------------------------------
|
52872
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
52873
|
+
------------------------------------------------------------------------------------------------
|
52874
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52875
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52876
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
52877
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
52881
|
+
Completed 401 Unauthorized in 297ms
|
52882
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52883
|
+
------------------------------------
|
52884
|
+
UserTest: test_should_apply_omniauth
|
52885
|
+
------------------------------------
|
52886
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52887
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52888
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
52889
|
+
--------------------------------------
|
52890
|
+
UserTest: test_should_get_reverse_name
|
52891
|
+
--------------------------------------
|
52892
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52893
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
52894
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52895
|
+
-------------------------------------------------
|
52896
|
+
AuthenticationTest: test_should_get_provider_name
|
52897
|
+
-------------------------------------------------
|
52898
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
52899
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "authentications"
|
52900
|
+
[1m[36mFixture Insert (25.9ms)[0m [1mINSERT 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)[0m
|
52901
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
52903
|
+
[1m[35mFixture Delete (5.5ms)[0m DELETE FROM "users"
|
52904
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 16:08:16', '2013-02-26 16:08:16', 201799169)[0m
|
52905
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 16:08:16', '2013-02-26 16:08:16', 999914115)
|
52906
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 16:08:16', '2013-02-26 16:08:16', 725306934)[0m
|
52907
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 16:08:16', '2013-02-26 16:08:16', 349534908)
|
52908
|
+
[1m[36m (12.4ms)[0m [1mcommit transaction[0m
|
52909
|
+
[1m[35m (0.2ms)[0m begin transaction
|
52910
|
+
[1m[36mAuthentication Load (0.4ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
52911
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
52912
|
+
--------------------------------------------------------------------------------
|
52913
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
52914
|
+
--------------------------------------------------------------------------------
|
52915
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
52916
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
52917
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
52918
|
+
-------------------------------------------------------------------------
|
52919
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
52920
|
+
-------------------------------------------------------------------------
|
52921
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52922
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52923
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
52924
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
52928
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
52929
|
+
Logged in user found, creating associated authentication.
|
52930
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52931
|
+
[1m[36mSQL (51.8ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
52933
|
+
Redirected to http://test.host/authentications
|
52934
|
+
Completed 302 Found in 169ms (ActiveRecord: 52.5ms)
|
52935
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
52936
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
52937
|
+
--------------------------------------------------------------------------
|
52938
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
52939
|
+
--------------------------------------------------------------------------
|
52940
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52941
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
52942
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
52943
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
52944
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
52945
|
+
Parameters: {"id"=>"949717663"}
|
52946
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
52947
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
52948
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
52949
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
52950
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
52951
|
+
Redirected to http://test.host/authentications
|
52952
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
|
52953
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
52954
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
52955
|
+
-------------------------------------------------------------
|
52956
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
52957
|
+
-------------------------------------------------------------
|
52958
|
+
[1m[35m (0.1ms)[0m begin transaction
|
52959
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
52960
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
52961
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
52962
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
52963
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
52964
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
52969
|
+
-----------------------------------------------------------------------------
|
52970
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
52971
|
+
-----------------------------------------------------------------------------
|
52972
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52973
|
+
Processing by Contour::PasswordsController#create as HTML
|
52974
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
52975
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
52976
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'KFUFYRQyDyix6ExJWEZy' LIMIT 1[0m
|
52977
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
52978
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
53005
|
+
-----------------------------------------------------------------------------
|
53006
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
53007
|
+
-----------------------------------------------------------------------------
|
53008
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53015
|
+
-----------------------------------------------------
|
53016
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
53017
|
+
-----------------------------------------------------
|
53018
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53019
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53020
|
+
---------------------------------------------------------------------
|
53021
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
53022
|
+
---------------------------------------------------------------------
|
53023
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53024
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53025
|
+
-----------------------
|
53026
|
+
ContourTest: test_truth
|
53027
|
+
-----------------------
|
53028
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53029
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53030
|
+
--------------------------------------------------------------------
|
53031
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
53032
|
+
--------------------------------------------------------------------
|
53033
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53034
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53035
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53036
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
53041
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
53042
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
53043
|
+
[1m[35mSQL (1.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53045
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53046
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
53047
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
53048
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53049
|
+
[1m[35mSQL (1.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
53050
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
53055
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53056
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
53067
|
+
--------------------------------------------------------
|
53068
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
53069
|
+
--------------------------------------------------------
|
53070
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53071
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53072
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53073
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53078
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
53079
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
53080
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53082
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53083
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
53084
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
53085
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53086
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
53087
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
53092
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53093
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
53102
|
+
--------------------------------------------------------------------
|
53103
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
53104
|
+
--------------------------------------------------------------------
|
53105
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53106
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53107
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53108
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53113
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
53114
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
53115
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53117
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53118
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
53119
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
53120
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53121
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
53122
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
53127
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53128
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
53139
|
+
-------------------------------------------------------------
|
53140
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
53141
|
+
-------------------------------------------------------------
|
53142
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53143
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53144
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53145
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
53150
|
+
-------------------------------------------------------------------------
|
53151
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
53152
|
+
-------------------------------------------------------------------------
|
53153
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53154
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
53155
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
53156
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
53160
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53161
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
53163
|
+
Completed 200 OK in 296ms (Views: 0.4ms | ActiveRecord: 1.3ms)
|
53164
|
+
[1m[36m (26.9ms)[0m [1mrollback transaction[0m
|
53165
|
+
------------------------------------------------------------------------------------------------
|
53166
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
53167
|
+
------------------------------------------------------------------------------------------------
|
53168
|
+
[1m[35m (0.2ms)[0m begin transaction
|
53169
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53170
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53171
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
53175
|
+
Completed 401 Unauthorized in 297ms
|
53176
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
53177
|
+
------------------------------------
|
53178
|
+
UserTest: test_should_apply_omniauth
|
53179
|
+
------------------------------------
|
53180
|
+
[1m[35m (0.2ms)[0m begin transaction
|
53181
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53182
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
53183
|
+
--------------------------------------
|
53184
|
+
UserTest: test_should_get_reverse_name
|
53185
|
+
--------------------------------------
|
53186
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
53187
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
53188
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
53189
|
+
-------------------------------------------------
|
53190
|
+
AuthenticationTest: test_should_get_provider_name
|
53191
|
+
-------------------------------------------------
|
53192
|
+
[1m[36m (18.6ms)[0m [1mbegin transaction[0m
|
53193
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "authentications"
|
53194
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 949717663, 201799169)[0m
|
53195
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 876923740, 201799169)
|
53196
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 864673665, 201799169)[0m
|
53197
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
53198
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 201799169)[0m
|
53199
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 999914115)
|
53200
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 725306934)[0m
|
53201
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 17:45:41', '2013-02-26 17:45:41', 349534908)
|
53202
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
53203
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53204
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
53205
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
53206
|
+
--------------------------------------------------------------------------------
|
53207
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
53208
|
+
--------------------------------------------------------------------------------
|
53209
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53210
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
53211
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53212
|
+
-------------------------------------------------------------------------
|
53213
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
53214
|
+
-------------------------------------------------------------------------
|
53215
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53216
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53217
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
53218
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
53222
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
53223
|
+
Logged in user found, creating associated authentication.
|
53224
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53225
|
+
[1m[36mSQL (27.2ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
53227
|
+
Redirected to http://test.host/authentications
|
53228
|
+
Completed 302 Found in 162ms (ActiveRecord: 27.9ms)
|
53229
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
53230
|
+
[1m[35m (1.3ms)[0m rollback transaction
|
53231
|
+
--------------------------------------------------------------------------
|
53232
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
53233
|
+
--------------------------------------------------------------------------
|
53234
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53235
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
53236
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
53237
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
53238
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
53239
|
+
Parameters: {"id"=>"949717663"}
|
53240
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
53241
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
53242
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53243
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
53244
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53245
|
+
Redirected to http://test.host/authentications
|
53246
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.1ms)
|
53247
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
53248
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
53249
|
+
-------------------------------------------------------------
|
53250
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
53251
|
+
-------------------------------------------------------------
|
53252
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53253
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53254
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
53255
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
53256
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
53257
|
+
[1m[35mAuthentication Exists (0.3ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
53258
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
53263
|
+
-----------------------------------------------------------------------------
|
53264
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
53265
|
+
-----------------------------------------------------------------------------
|
53266
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53267
|
+
Processing by Contour::PasswordsController#create as HTML
|
53268
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
53269
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
53270
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'RmVii3g7ySg6jttpzVq1' LIMIT 1[0m
|
53271
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53272
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
53299
|
+
-----------------------------------------------------------------------------
|
53300
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
53301
|
+
-----------------------------------------------------------------------------
|
53302
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53309
|
+
-----------------------------------------------------
|
53310
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
53311
|
+
-----------------------------------------------------
|
53312
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53313
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53314
|
+
---------------------------------------------------------------------
|
53315
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
53316
|
+
---------------------------------------------------------------------
|
53317
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53318
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53319
|
+
-----------------------
|
53320
|
+
ContourTest: test_truth
|
53321
|
+
-----------------------
|
53322
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53323
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53324
|
+
--------------------------------------------------------------------
|
53325
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
53326
|
+
--------------------------------------------------------------------
|
53327
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53328
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53329
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53330
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53335
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
53336
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
53337
|
+
[1m[35mSQL (1.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53339
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53340
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
53341
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
53342
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53343
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
53344
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
53349
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
53350
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
53361
|
+
--------------------------------------------------------
|
53362
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
53363
|
+
--------------------------------------------------------
|
53364
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53365
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53366
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53367
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53372
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
53373
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
53374
|
+
[1m[35mSQL (1.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53376
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53377
|
+
[1m[36mAuthentication Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
53378
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
53379
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53380
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
53381
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
53386
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53387
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
53396
|
+
--------------------------------------------------------------------
|
53397
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
53398
|
+
--------------------------------------------------------------------
|
53399
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53400
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53401
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53402
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
53407
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
53408
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
53409
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53411
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53412
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
53413
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
53414
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53415
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
53416
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
53421
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53422
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
53433
|
+
-------------------------------------------------------------
|
53434
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
53435
|
+
-------------------------------------------------------------
|
53436
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53437
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53438
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53439
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
53444
|
+
-------------------------------------------------------------------------
|
53445
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
53446
|
+
-------------------------------------------------------------------------
|
53447
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53448
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
53449
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
53450
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
53454
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53455
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
53457
|
+
Completed 200 OK in 302ms (Views: 0.4ms | ActiveRecord: 1.3ms)
|
53458
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
53459
|
+
------------------------------------------------------------------------------------------------
|
53460
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
53461
|
+
------------------------------------------------------------------------------------------------
|
53462
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53463
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53464
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53465
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
53469
|
+
Completed 401 Unauthorized in 291ms
|
53470
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53471
|
+
------------------------------------
|
53472
|
+
UserTest: test_should_apply_omniauth
|
53473
|
+
------------------------------------
|
53474
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53475
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53476
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
53477
|
+
--------------------------------------
|
53478
|
+
UserTest: test_should_get_reverse_name
|
53479
|
+
--------------------------------------
|
53480
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53481
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
53482
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53483
|
+
-------------------------------------------------
|
53484
|
+
AuthenticationTest: test_should_get_provider_name
|
53485
|
+
-------------------------------------------------
|
53486
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
53487
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "authentications"
|
53488
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 17:50:30', '2013-02-26 17:50:30', 949717663, 201799169)[0m
|
53489
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
53491
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
53492
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 17:50:30', '2013-02-26 17:50:30', 201799169)[0m
|
53493
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 17:50:30', '2013-02-26 17:50:30', 999914115)
|
53494
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 17:50:30', '2013-02-26 17:50:30', 725306934)[0m
|
53495
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 17:50:30', '2013-02-26 17:50:30', 349534908)
|
53496
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
53497
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53498
|
+
[1m[36mAuthentication Load (0.4ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
53499
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
53500
|
+
--------------------------------------------------------------------------------
|
53501
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
53502
|
+
--------------------------------------------------------------------------------
|
53503
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53504
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
53505
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53506
|
+
-------------------------------------------------------------------------
|
53507
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
53508
|
+
-------------------------------------------------------------------------
|
53509
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53510
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53511
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
53512
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
53516
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
53517
|
+
Logged in user found, creating associated authentication.
|
53518
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53519
|
+
[1m[36mSQL (27.5ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
53521
|
+
Redirected to http://test.host/authentications
|
53522
|
+
Completed 302 Found in 119ms (ActiveRecord: 28.2ms)
|
53523
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
53524
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
53525
|
+
--------------------------------------------------------------------------
|
53526
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
53527
|
+
--------------------------------------------------------------------------
|
53528
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53529
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
53530
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
53531
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
53532
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
53533
|
+
Parameters: {"id"=>"949717663"}
|
53534
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
53535
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
53536
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53537
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
53538
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53539
|
+
Redirected to http://test.host/authentications
|
53540
|
+
Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
|
53541
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "authentications"
|
53542
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
53543
|
+
-------------------------------------------------------------
|
53544
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
53545
|
+
-------------------------------------------------------------
|
53546
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53547
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53548
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
53549
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
53550
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
53551
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
53552
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
53557
|
+
-----------------------------------------------------------------------------
|
53558
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
53559
|
+
-----------------------------------------------------------------------------
|
53560
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
53561
|
+
Processing by Contour::PasswordsController#create as HTML
|
53562
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
53563
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
53564
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'sEnZQdwqYWajpDhuxUnA' LIMIT 1[0m
|
53565
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53566
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (21.8ms)[0m [1mrollback transaction[0m
|
53593
|
+
-----------------------------------------------------------------------------
|
53594
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
53595
|
+
-----------------------------------------------------------------------------
|
53596
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53603
|
+
-----------------------------------------------------
|
53604
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
53605
|
+
-----------------------------------------------------
|
53606
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53607
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53608
|
+
---------------------------------------------------------------------
|
53609
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
53610
|
+
---------------------------------------------------------------------
|
53611
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53612
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53613
|
+
-----------------------
|
53614
|
+
ContourTest: test_truth
|
53615
|
+
-----------------------
|
53616
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53617
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53618
|
+
--------------------------------------------------------------------
|
53619
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
53620
|
+
--------------------------------------------------------------------
|
53621
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53622
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53623
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53624
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53629
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
53630
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
53631
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53633
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53634
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
53635
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
53636
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53637
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
53638
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
53643
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53644
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
53655
|
+
--------------------------------------------------------
|
53656
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
53657
|
+
--------------------------------------------------------
|
53658
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53659
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53660
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53661
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53666
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
53667
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
53668
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53670
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53671
|
+
[1m[36mAuthentication Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
53672
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
53673
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53674
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
53675
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
53680
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53681
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
53690
|
+
--------------------------------------------------------------------
|
53691
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
53692
|
+
--------------------------------------------------------------------
|
53693
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53694
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53695
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53696
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53701
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
53702
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
53703
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53705
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53706
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
53707
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
53708
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53709
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
53710
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
53715
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53716
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (6.2ms)[0m [1mrollback transaction[0m
|
53727
|
+
-------------------------------------------------------------
|
53728
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
53729
|
+
-------------------------------------------------------------
|
53730
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53731
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53732
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53733
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
53738
|
+
-------------------------------------------------------------------------
|
53739
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
53740
|
+
-------------------------------------------------------------------------
|
53741
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53742
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
53743
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
53744
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
53748
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53749
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
53751
|
+
Completed 200 OK in 298ms (Views: 0.4ms | ActiveRecord: 1.2ms)
|
53752
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
53753
|
+
------------------------------------------------------------------------------------------------
|
53754
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
53755
|
+
------------------------------------------------------------------------------------------------
|
53756
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53757
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53758
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53759
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
53763
|
+
Completed 401 Unauthorized in 292ms
|
53764
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53765
|
+
------------------------------------
|
53766
|
+
UserTest: test_should_apply_omniauth
|
53767
|
+
------------------------------------
|
53768
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53769
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53770
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
53771
|
+
--------------------------------------
|
53772
|
+
UserTest: test_should_get_reverse_name
|
53773
|
+
--------------------------------------
|
53774
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53775
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
53776
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53777
|
+
-------------------------------------------------
|
53778
|
+
AuthenticationTest: test_should_get_provider_name
|
53779
|
+
-------------------------------------------------
|
53780
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
53781
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "authentications"
|
53782
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-02-26 17:54:29', '2013-02-26 17:54:29', 949717663, 201799169)[0m
|
53783
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
53785
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
53786
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 17:54:29', '2013-02-26 17:54:29', 201799169)[0m
|
53787
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-02-26 17:54:29', '2013-02-26 17:54:29', 999914115)
|
53788
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 17:54:29', '2013-02-26 17:54:29', 725306934)[0m
|
53789
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-02-26 17:54:29', '2013-02-26 17:54:29', 349534908)
|
53790
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
53791
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53792
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
53793
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
53794
|
+
--------------------------------------------------------------------------------
|
53795
|
+
AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
|
53796
|
+
--------------------------------------------------------------------------------
|
53797
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53798
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
53799
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53800
|
+
-------------------------------------------------------------------------
|
53801
|
+
Contour::AuthenticationsControllerTest: test_should_create_authentication
|
53802
|
+
-------------------------------------------------------------------------
|
53803
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53804
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53805
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
53806
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
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
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
53810
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
53811
|
+
Logged in user found, creating associated authentication.
|
53812
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53813
|
+
[1m[36mSQL (3.4ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
53815
|
+
Redirected to http://test.host/authentications
|
53816
|
+
Completed 302 Found in 89ms (ActiveRecord: 4.0ms)
|
53817
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications"[0m
|
53818
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
53819
|
+
--------------------------------------------------------------------------
|
53820
|
+
Contour::AuthenticationsControllerTest: test_should_destroy_authentication
|
53821
|
+
--------------------------------------------------------------------------
|
53822
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53823
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
53824
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
53825
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
53826
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
53827
|
+
Parameters: {"id"=>"949717663"}
|
53828
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
53829
|
+
[1m[35mAuthentication Load (0.2ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
|
53830
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53831
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
53832
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53833
|
+
Redirected to http://test.host/authentications
|
53834
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.1ms)
|
53835
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
53836
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
53837
|
+
-------------------------------------------------------------
|
53838
|
+
Contour::AuthenticationsControllerTest: test_should_get_index
|
53839
|
+
-------------------------------------------------------------
|
53840
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53841
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53842
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
53843
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
53844
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1[0m
|
53845
|
+
[1m[35mAuthentication Exists (0.2ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
|
53846
|
+
[1m[36mAuthentication Load (0.2ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
53851
|
+
-----------------------------------------------------------------------------
|
53852
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
|
53853
|
+
-----------------------------------------------------------------------------
|
53854
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
53855
|
+
Processing by Contour::PasswordsController#create as HTML
|
53856
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
53857
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
53858
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'tAEzrTAuyzLnRzspH4PY' LIMIT 1[0m
|
53859
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53860
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["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
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
53887
|
+
-----------------------------------------------------------------------------
|
53888
|
+
Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
|
53889
|
+
-----------------------------------------------------------------------------
|
53890
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53897
|
+
-----------------------------------------------------
|
53898
|
+
ContourHelperTest: test_should_show_sort_field_helper
|
53899
|
+
-----------------------------------------------------
|
53900
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53901
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53902
|
+
---------------------------------------------------------------------
|
53903
|
+
ContourHelperTest: test_should_show_sort_field_helper_with_same_order
|
53904
|
+
---------------------------------------------------------------------
|
53905
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53906
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53907
|
+
-----------------------
|
53908
|
+
ContourTest: test_truth
|
53909
|
+
-----------------------
|
53910
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53911
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53912
|
+
--------------------------------------------------------------------
|
53913
|
+
NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
|
53914
|
+
--------------------------------------------------------------------
|
53915
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53916
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53917
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53918
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53923
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
53924
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
53925
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53927
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53928
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
53929
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
53930
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53931
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
53932
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
|
53937
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53938
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
53949
|
+
--------------------------------------------------------
|
53950
|
+
NavigationTest: test_friendly_url_forwarding_after_login
|
53951
|
+
--------------------------------------------------------
|
53952
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53953
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53954
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53955
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53960
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
53961
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
53962
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53964
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53965
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
53966
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
53967
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53968
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
|
53969
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
|
53974
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53975
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
53984
|
+
--------------------------------------------------------------------
|
53985
|
+
NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
|
53986
|
+
--------------------------------------------------------------------
|
53987
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53988
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
53989
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
53990
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
53995
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1[0m
|
53996
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
53997
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53999
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54000
|
+
[1m[36mAuthentication Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1[0m [["user_id", 999914116]]
|
54001
|
+
[1m[35mAuthentication Exists (0.1ms)[0m SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
|
54002
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54003
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
|
54004
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
54009
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
54010
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
54021
|
+
-------------------------------------------------------------
|
54022
|
+
NavigationTest: test_root_navigation_redirected_to_login_page
|
54023
|
+
-------------------------------------------------------------
|
54024
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54025
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54026
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
54027
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54032
|
+
-------------------------------------------------------------------------
|
54033
|
+
NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
|
54034
|
+
-------------------------------------------------------------------------
|
54035
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54036
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54037
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
54038
|
+
[1m[35mUser Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
54042
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
54043
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169[0m [["last_sign_in_at", Tue, 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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
54045
|
+
Completed 200 OK in 298ms (Views: 0.4ms | ActiveRecord: 1.2ms)
|
54046
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
54047
|
+
------------------------------------------------------------------------------------------------
|
54048
|
+
NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
|
54049
|
+
------------------------------------------------------------------------------------------------
|
54050
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54051
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54052
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
54053
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
54057
|
+
Completed 401 Unauthorized in 294ms
|
54058
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
54059
|
+
------------------------------------
|
54060
|
+
UserTest: test_should_apply_omniauth
|
54061
|
+
------------------------------------
|
54062
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54063
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
54064
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
54065
|
+
--------------------------------------
|
54066
|
+
UserTest: test_should_get_reverse_name
|
54067
|
+
--------------------------------------
|
54068
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
54069
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
54070
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|