knock 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +37 -0
- data/app/controllers/knock/application_controller.rb +11 -0
- data/app/controllers/knock/auth_token_controller.rb +28 -0
- data/app/model/knock/auth_token.rb +31 -0
- data/config/routes.rb +3 -0
- data/lib/knock.rb +4 -0
- data/lib/knock/authenticable.rb +13 -0
- data/lib/knock/engine.rb +6 -0
- data/lib/knock/version.rb +3 -0
- data/lib/tasks/knock_tasks.rake +4 -0
- data/test/controllers/knock/auth_token_controller_test.rb +28 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +7 -0
- data/test/dummy/app/controllers/protected_resources_controller.rb +7 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/migrate/20150713101607_create_users.rb +10 -0
- data/test/dummy/db/schema.rb +23 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +2853 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/controllers/protected_resources_controller_test.rb +27 -0
- data/test/dummy/test/fixtures/users.yml +9 -0
- data/test/dummy/test/models/user_test.rb +4 -0
- data/test/fixtures/users.yml +9 -0
- data/test/knock_test.rb +4 -0
- data/test/test_helper.rb +23 -0
- metadata +206 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send.
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger.
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Raise an error on page load if there are pending migrations.
|
23
|
+
config.active_record.migration_error = :page_load
|
24
|
+
|
25
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
+
# This option may cause significant delays in view rendering with a large
|
27
|
+
# number of complex assets.
|
28
|
+
config.assets.debug = true
|
29
|
+
|
30
|
+
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
31
|
+
# yet still be able to expire them through the digest params.
|
32
|
+
config.assets.digest = true
|
33
|
+
|
34
|
+
# Adds additional error checking when serving assets at runtime.
|
35
|
+
# Checks for improperly declared sprockets dependencies.
|
36
|
+
# Raises helpful error messages.
|
37
|
+
config.assets.raise_runtime_errors = true
|
38
|
+
|
39
|
+
# Raises error for missing translations
|
40
|
+
# config.action_view.raise_on_missing_translations = true
|
41
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both threaded 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.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
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
|
20
|
+
# NGINX, varnish or squid.
|
21
|
+
# config.action_dispatch.rack_cache = true
|
22
|
+
|
23
|
+
# Disable serving static files from the `/public` folder by default since
|
24
|
+
# Apache or NGINX already handles this.
|
25
|
+
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
26
|
+
|
27
|
+
# Compress JavaScripts and CSS.
|
28
|
+
config.assets.js_compressor = :uglifier
|
29
|
+
# config.assets.css_compressor = :sass
|
30
|
+
|
31
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
32
|
+
config.assets.compile = false
|
33
|
+
|
34
|
+
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
35
|
+
# yet still be able to expire them through the digest params.
|
36
|
+
config.assets.digest = true
|
37
|
+
|
38
|
+
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
39
|
+
|
40
|
+
# Specifies the header that your server uses for sending files.
|
41
|
+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
42
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
43
|
+
|
44
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
45
|
+
# config.force_ssl = true
|
46
|
+
|
47
|
+
# Use the lowest log level to ensure availability of diagnostic information
|
48
|
+
# when problems arise.
|
49
|
+
config.log_level = :debug
|
50
|
+
|
51
|
+
# Prepend all log lines with the following tags.
|
52
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
53
|
+
|
54
|
+
# Use a different logger for distributed setups.
|
55
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
56
|
+
|
57
|
+
# Use a different cache store in production.
|
58
|
+
# config.cache_store = :mem_cache_store
|
59
|
+
|
60
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
61
|
+
# config.action_controller.asset_host = 'http://assets.example.com'
|
62
|
+
|
63
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
64
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
65
|
+
# config.action_mailer.raise_delivery_errors = false
|
66
|
+
|
67
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
68
|
+
# the I18n.default_locale when a translation cannot be found).
|
69
|
+
config.i18n.fallbacks = true
|
70
|
+
|
71
|
+
# Send deprecation notices to registered listeners.
|
72
|
+
config.active_support.deprecation = :notify
|
73
|
+
|
74
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
75
|
+
config.log_formatter = ::Logger::Formatter.new
|
76
|
+
|
77
|
+
# Do not dump schema after migrations.
|
78
|
+
config.active_record.dump_schema_after_migration = false
|
79
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
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 file server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_files = true
|
17
|
+
config.static_cache_control = 'public, max-age=3600'
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Randomize the order test cases are executed.
|
35
|
+
config.active_support.test_order = :random
|
36
|
+
|
37
|
+
# Print deprecation notices to the stderr.
|
38
|
+
config.active_support.deprecation = :stderr
|
39
|
+
|
40
|
+
# Raises error for missing translations
|
41
|
+
# config.action_view.raise_on_missing_translations = true
|
42
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
|
9
|
+
# Precompile additional assets.
|
10
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
11
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
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|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
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
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
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
|
@@ -0,0 +1,23 @@
|
|
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.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 488bdeac12dec04d250e26f9066540eb82ca9972ad62dc7002a0434ea0573e584dba30dc62c38454cd915b453c02790ee81d41a0ba2c324b7d1db02ee116d412
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: d0b2c379485efedaf6ae2633caf9cb9f7f74297528ef736930c2adaf8e2e7d0654ff1e3f1634217244177511c545de40c84571c3e2be5fc0e6f783fd4d520080
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20150713101607) do
|
15
|
+
|
16
|
+
create_table "users", force: :cascade do |t|
|
17
|
+
t.string "email", null: false
|
18
|
+
t.string "password_digest", null: false
|
19
|
+
t.datetime "created_at", null: false
|
20
|
+
t.datetime "updated_at", null: false
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
Binary file
|
@@ -0,0 +1,2853 @@
|
|
1
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
3
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
4
|
+
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150713101607')
|
7
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
10
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$4/OjAPR3mb75XlBBp/FdjeGhQ0tozKt74xdi3b5ZCz6IjMiazXv.W', '2015-07-13 16:07:45', '2015-07-13 16:07:45', 980190962)
|
11
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$GqR5xSzt6I115UUYQtyqJOYIEDdn/3LVK30emJq1q5wCLncAh7LB.', '2015-07-13 16:07:45', '2015-07-13 16:07:45', 298486374)[0m
|
12
|
+
[1m[35m (1.1ms)[0m commit transaction
|
13
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
14
|
+
------------------------------------------------------------------------------
|
15
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
16
|
+
------------------------------------------------------------------------------
|
17
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
18
|
+
Processing by ProtectedResourcesController#index as HTML
|
19
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
20
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
|
21
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
22
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23
|
+
-----------------------------------------------------------------
|
24
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
25
|
+
-----------------------------------------------------------------
|
26
|
+
Processing by ProtectedResourcesController#index as HTML
|
27
|
+
Filter chain halted as :authenticate rendered or redirected
|
28
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
29
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
30
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31
|
+
-----------------------------------------------------------------------------
|
32
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
33
|
+
-----------------------------------------------------------------------------
|
34
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
35
|
+
Processing by ProtectedResourcesController#index as HTML
|
36
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
37
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
38
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
39
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
40
|
+
-------------------------------------------------------
|
41
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
42
|
+
-------------------------------------------------------
|
43
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
44
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
45
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
46
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
47
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
48
|
+
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)
|
49
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
50
|
+
[1m[35m (0.0ms)[0m begin transaction
|
51
|
+
------------------------------------------------------------------------------
|
52
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
53
|
+
------------------------------------------------------------------------------
|
54
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
55
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
56
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
57
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
58
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
59
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
60
|
+
[1m[35m (0.0ms)[0m begin transaction
|
61
|
+
------------------------------------------------------------------------------
|
62
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
63
|
+
------------------------------------------------------------------------------
|
64
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
65
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
66
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
67
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
68
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
69
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
70
|
+
[1m[35m (0.1ms)[0m begin transaction
|
71
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
72
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$CT3woqlQFAyK6x.V0jY53uhSTpVCa28jpwDj8D8XeLEAHr3.pgr/e', '2015-07-13 16:09:48', '2015-07-13 16:09:48', 980190962)
|
73
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$Mhv4Kjy7czQPvY1QXS/1QeBA8nUNpjJ83er7XStgaVmBnxqnEXsaK', '2015-07-13 16:09:48', '2015-07-13 16:09:48', 298486374)[0m
|
74
|
+
[1m[35m (1.4ms)[0m commit transaction
|
75
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
76
|
+
------------------------------------------------------------------------------
|
77
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
78
|
+
------------------------------------------------------------------------------
|
79
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
80
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
81
|
+
------------------------------------------------------------------------------
|
82
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
83
|
+
------------------------------------------------------------------------------
|
84
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
85
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
86
|
+
-------------------------------------------------------
|
87
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
88
|
+
-------------------------------------------------------
|
89
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
90
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
91
|
+
------------------------------------------------------------------------------
|
92
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
93
|
+
------------------------------------------------------------------------------
|
94
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
95
|
+
Processing by ProtectedResourcesController#index as HTML
|
96
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
97
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.0ms)
|
98
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
99
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
100
|
+
-----------------------------------------------------------------------------
|
101
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
102
|
+
-----------------------------------------------------------------------------
|
103
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
104
|
+
Processing by ProtectedResourcesController#index as HTML
|
105
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
106
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
107
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
108
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
109
|
+
-----------------------------------------------------------------
|
110
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
111
|
+
-----------------------------------------------------------------
|
112
|
+
Processing by ProtectedResourcesController#index as HTML
|
113
|
+
Filter chain halted as :authenticate rendered or redirected
|
114
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
115
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
116
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
117
|
+
[1m[35m (0.1ms)[0m begin transaction
|
118
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
119
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$1websxXQyATM3wThbEMA3u85UTKYfBcfbB1l23MN0hrVxe/DY.YMG', '2015-07-13 16:10:02', '2015-07-13 16:10:02', 980190962)
|
120
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$rh1flCcuXZr.grwFo55axukIiF2T21j2m3g8bSSZxz.q091cjNLGy', '2015-07-13 16:10:02', '2015-07-13 16:10:02', 298486374)[0m
|
121
|
+
[1m[35m (1.4ms)[0m commit transaction
|
122
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
123
|
+
------------------------------------------------------------------------------
|
124
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
125
|
+
------------------------------------------------------------------------------
|
126
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
127
|
+
Processing by ProtectedResourcesController#index as HTML
|
128
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
129
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.1ms)
|
130
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
132
|
+
-----------------------------------------------------------------
|
133
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
134
|
+
-----------------------------------------------------------------
|
135
|
+
Processing by ProtectedResourcesController#index as HTML
|
136
|
+
Filter chain halted as :authenticate rendered or redirected
|
137
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
138
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
139
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
140
|
+
-----------------------------------------------------------------------------
|
141
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
142
|
+
-----------------------------------------------------------------------------
|
143
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
144
|
+
Processing by ProtectedResourcesController#index as HTML
|
145
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
146
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
147
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
148
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
149
|
+
------------------------------------------------------------------------------
|
150
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
151
|
+
------------------------------------------------------------------------------
|
152
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
153
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
154
|
+
-------------------------------------------------------
|
155
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
156
|
+
-------------------------------------------------------
|
157
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
158
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
159
|
+
------------------------------------------------------------------------------
|
160
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
161
|
+
------------------------------------------------------------------------------
|
162
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
163
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
164
|
+
[1m[35m (0.1ms)[0m begin transaction
|
165
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
166
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$y4YPhy34TK2T7xdS2kbve.q4MszmJchEIIsgTaks4WfJkT9mxrYVC', '2015-07-13 16:10:18', '2015-07-13 16:10:18', 980190962)
|
167
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$0VU4tg2/opnST35Tx0Jp8.glVnFCOkxb.C6PNYqdbpF2fWu.s5BP6', '2015-07-13 16:10:18', '2015-07-13 16:10:18', 298486374)[0m
|
168
|
+
[1m[35m (1.1ms)[0m commit transaction
|
169
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
170
|
+
------------------------------------------------------------------------------
|
171
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
172
|
+
------------------------------------------------------------------------------
|
173
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
174
|
+
Processing by ProtectedResourcesController#index as HTML
|
175
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
176
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.1ms)
|
177
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
178
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
179
|
+
-----------------------------------------------------------------------------
|
180
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
181
|
+
-----------------------------------------------------------------------------
|
182
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
183
|
+
Processing by ProtectedResourcesController#index as HTML
|
184
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
185
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
186
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
187
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
188
|
+
-----------------------------------------------------------------
|
189
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
190
|
+
-----------------------------------------------------------------
|
191
|
+
Processing by ProtectedResourcesController#index as HTML
|
192
|
+
Filter chain halted as :authenticate rendered or redirected
|
193
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
194
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
195
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
196
|
+
------------------------------------------------------------------------------
|
197
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
198
|
+
------------------------------------------------------------------------------
|
199
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
200
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
201
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
202
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
203
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
204
|
+
[1m[35m (0.1ms)[0m begin transaction
|
205
|
+
------------------------------------------------------------------------------
|
206
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
207
|
+
------------------------------------------------------------------------------
|
208
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
209
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
210
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
211
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
212
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
213
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
214
|
+
[1m[35m (0.0ms)[0m begin transaction
|
215
|
+
-------------------------------------------------------
|
216
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
217
|
+
-------------------------------------------------------
|
218
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
219
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
220
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
221
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
222
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
223
|
+
Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
224
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
225
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
226
|
+
[1m[35m (0.1ms)[0m begin transaction
|
227
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "users"[0m
|
228
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Z.9drVVBUm3fJIuCJhg5vugcd8dc3WAcCVP2br.bc1IBYGoy351Kq', '2015-07-13 16:10:27', '2015-07-13 16:10:27', 980190962)
|
229
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$cqg5dnt7ksIxClDmx3AgO.3W1MBFD5VyGid4KcV9w1QMCflMyBfdK', '2015-07-13 16:10:27', '2015-07-13 16:10:27', 298486374)[0m
|
230
|
+
[1m[35m (1.4ms)[0m commit transaction
|
231
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
232
|
+
------------------------------------------------------------------------------
|
233
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
234
|
+
------------------------------------------------------------------------------
|
235
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
236
|
+
Processing by ProtectedResourcesController#index as HTML
|
237
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
238
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
|
239
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
240
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
241
|
+
-----------------------------------------------------------------------------
|
242
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
243
|
+
-----------------------------------------------------------------------------
|
244
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
245
|
+
Processing by ProtectedResourcesController#index as HTML
|
246
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
247
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
248
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
249
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
250
|
+
-----------------------------------------------------------------
|
251
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
252
|
+
-----------------------------------------------------------------
|
253
|
+
Processing by ProtectedResourcesController#index as HTML
|
254
|
+
Filter chain halted as :authenticate rendered or redirected
|
255
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
256
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
257
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
258
|
+
------------------------------------------------------------------------------
|
259
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
260
|
+
------------------------------------------------------------------------------
|
261
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
262
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
263
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
264
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
265
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
266
|
+
[1m[35m (0.0ms)[0m begin transaction
|
267
|
+
------------------------------------------------------------------------------
|
268
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
269
|
+
------------------------------------------------------------------------------
|
270
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
271
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
272
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
273
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
274
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
275
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
276
|
+
[1m[35m (0.1ms)[0m begin transaction
|
277
|
+
-------------------------------------------------------
|
278
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
279
|
+
-------------------------------------------------------
|
280
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
281
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
282
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
283
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
284
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
285
|
+
Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
286
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
287
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
288
|
+
[1m[35m (0.1ms)[0m begin transaction
|
289
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
290
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$fsAEXgwkQazGBNPXEnKxFuZ5COzjKhYnJPu9UBILy9fy9Ls1lcI76', '2015-07-13 16:11:53', '2015-07-13 16:11:53', 980190962)
|
291
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$AYBbMKz6e16IHlgSfwnWBesmIxjtDxO7W9RD6I5FyU9mqhKsPVUHq', '2015-07-13 16:11:53', '2015-07-13 16:11:53', 298486374)[0m
|
292
|
+
[1m[35m (1.4ms)[0m commit transaction
|
293
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
294
|
+
-------------------------------------------------------
|
295
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
296
|
+
-------------------------------------------------------
|
297
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
298
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
299
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
300
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
301
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
302
|
+
Completed 201 Created in 5ms (Views: 0.1ms | ActiveRecord: 0.2ms)
|
303
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
304
|
+
[1m[35m (0.1ms)[0m begin transaction
|
305
|
+
------------------------------------------------------------------------------
|
306
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
307
|
+
------------------------------------------------------------------------------
|
308
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
309
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
310
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
311
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
312
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
313
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
314
|
+
[1m[35m (0.1ms)[0m begin transaction
|
315
|
+
------------------------------------------------------------------------------
|
316
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
317
|
+
------------------------------------------------------------------------------
|
318
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
319
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
320
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
321
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
322
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
323
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
324
|
+
-----------------------------------------------------------------------------
|
325
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
326
|
+
-----------------------------------------------------------------------------
|
327
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
328
|
+
Processing by ProtectedResourcesController#index as HTML
|
329
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
330
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
331
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
332
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
333
|
+
-----------------------------------------------------------------
|
334
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
335
|
+
-----------------------------------------------------------------
|
336
|
+
Processing by ProtectedResourcesController#index as HTML
|
337
|
+
Filter chain halted as :authenticate rendered or redirected
|
338
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
339
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
340
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
341
|
+
------------------------------------------------------------------------------
|
342
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
343
|
+
------------------------------------------------------------------------------
|
344
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
345
|
+
Processing by ProtectedResourcesController#index as HTML
|
346
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
347
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
348
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
349
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
350
|
+
[1m[35m (0.1ms)[0m begin transaction
|
351
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
352
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$VRUTDYwNRdVcnytZn1P2f.MnS7LB050ypZ4lItjiLV0nsNd4LVQj.', '2015-07-13 16:12:39', '2015-07-13 16:12:39', 980190962)
|
353
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$5XPZiAeeyWj1L0BtwNxNp.MnEJzCd6V69OqPXgkbRlVYmFcA3.876', '2015-07-13 16:12:39', '2015-07-13 16:12:39', 298486374)[0m
|
354
|
+
[1m[35m (1.7ms)[0m commit transaction
|
355
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
356
|
+
-------------------------------------------------------
|
357
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
358
|
+
-------------------------------------------------------
|
359
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
360
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
361
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
362
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
363
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
364
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
365
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
366
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
367
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
368
|
+
Completed 201 Created in 427987ms (Views: 0.7ms | ActiveRecord: 0.9ms)
|
369
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
370
|
+
[1m[35m (0.2ms)[0m begin transaction
|
371
|
+
------------------------------------------------------------------------------
|
372
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
373
|
+
------------------------------------------------------------------------------
|
374
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
375
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
376
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
377
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
378
|
+
Completed 404 Not Found in 6ms (ActiveRecord: 0.3ms)
|
379
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
380
|
+
[1m[35m (0.3ms)[0m begin transaction
|
381
|
+
------------------------------------------------------------------------------
|
382
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
383
|
+
------------------------------------------------------------------------------
|
384
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
385
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
386
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
387
|
+
Completed 404 Not Found in 3ms (ActiveRecord: 0.2ms)
|
388
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
389
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
390
|
+
------------------------------------------------------------------------------
|
391
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
392
|
+
------------------------------------------------------------------------------
|
393
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
394
|
+
Processing by ProtectedResourcesController#index as HTML
|
395
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
396
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.2ms)
|
397
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
398
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
399
|
+
-----------------------------------------------------------------------------
|
400
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
401
|
+
-----------------------------------------------------------------------------
|
402
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
403
|
+
Processing by ProtectedResourcesController#index as HTML
|
404
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
405
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
|
406
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
407
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
408
|
+
-----------------------------------------------------------------
|
409
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
410
|
+
-----------------------------------------------------------------
|
411
|
+
Processing by ProtectedResourcesController#index as HTML
|
412
|
+
Filter chain halted as :authenticate rendered or redirected
|
413
|
+
Completed 401 Unauthorized in 7ms (ActiveRecord: 0.0ms)
|
414
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
415
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
416
|
+
[1m[35m (0.1ms)[0m begin transaction
|
417
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
418
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$T9/gXZTpgE9gk07oIYd2C.5X5fsSRuKzeiCNXHRzXvO2QPHs07Cza', '2015-07-13 16:19:56', '2015-07-13 16:19:56', 980190962)
|
419
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$8uVweZL4KWBKeXs5OzkAnOsLqDl2WFPrTUqP/Pc3GJDoUdMt4nkXK', '2015-07-13 16:19:56', '2015-07-13 16:19:56', 298486374)[0m
|
420
|
+
[1m[35m (8.3ms)[0m commit transaction
|
421
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
422
|
+
-------------------------------------------------------
|
423
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
424
|
+
-------------------------------------------------------
|
425
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
426
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
427
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
428
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
429
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
430
|
+
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms)
|
431
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
432
|
+
[1m[35m (0.1ms)[0m begin transaction
|
433
|
+
------------------------------------------------------------------------------
|
434
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
435
|
+
------------------------------------------------------------------------------
|
436
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
437
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
438
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
439
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
440
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
441
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
442
|
+
------------------------------------------------------------------------------
|
443
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
444
|
+
------------------------------------------------------------------------------
|
445
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
446
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
447
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
448
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
449
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
450
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
451
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
452
|
+
------------------------------------------------------------------------------
|
453
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
454
|
+
------------------------------------------------------------------------------
|
455
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
456
|
+
Processing by ProtectedResourcesController#index as HTML
|
457
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
458
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
459
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
460
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
461
|
+
-----------------------------------------------------------------
|
462
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
463
|
+
-----------------------------------------------------------------
|
464
|
+
Processing by ProtectedResourcesController#index as HTML
|
465
|
+
Filter chain halted as :authenticate rendered or redirected
|
466
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
467
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
468
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
469
|
+
-----------------------------------------------------------------------------
|
470
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
471
|
+
-----------------------------------------------------------------------------
|
472
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
473
|
+
Processing by ProtectedResourcesController#index as HTML
|
474
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
475
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
476
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
477
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
478
|
+
[1m[35m (0.1ms)[0m begin transaction
|
479
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "users"[0m
|
480
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Vm2e79mgqwYaAsZURxmS1.hTgIuL4BDge0hGjBIkHpJKegcLQHRLe', '2015-07-13 16:20:27', '2015-07-13 16:20:27', 980190962)
|
481
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$79y9krH/7x5SvUiNSXXtcuvlPsWgU4RtHTg3Cy08U.DZP.wnCWBNm', '2015-07-13 16:20:27', '2015-07-13 16:20:27', 298486374)[0m
|
482
|
+
[1m[35m (1.4ms)[0m commit transaction
|
483
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
484
|
+
------------------------------------------------------------------------------
|
485
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
486
|
+
------------------------------------------------------------------------------
|
487
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
488
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
489
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
490
|
+
Completed 404 Not Found in 6ms (ActiveRecord: 0.2ms)
|
491
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
492
|
+
[1m[35m (0.0ms)[0m begin transaction
|
493
|
+
------------------------------------------------------------------------------
|
494
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
495
|
+
------------------------------------------------------------------------------
|
496
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
497
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
498
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
499
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
500
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
501
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
502
|
+
[1m[35m (0.0ms)[0m begin transaction
|
503
|
+
-------------------------------------------------------
|
504
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
505
|
+
-------------------------------------------------------
|
506
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
507
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
508
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
509
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
510
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
511
|
+
Completed 201 Created in 3ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
512
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
513
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
514
|
+
------------------------------------------------------------------------------
|
515
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
516
|
+
------------------------------------------------------------------------------
|
517
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
518
|
+
Processing by ProtectedResourcesController#index as HTML
|
519
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
520
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
521
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
522
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
523
|
+
-----------------------------------------------------------------
|
524
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
525
|
+
-----------------------------------------------------------------
|
526
|
+
Processing by ProtectedResourcesController#index as HTML
|
527
|
+
Filter chain halted as :authenticate rendered or redirected
|
528
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
529
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
530
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
531
|
+
-----------------------------------------------------------------------------
|
532
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
533
|
+
-----------------------------------------------------------------------------
|
534
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
535
|
+
Processing by ProtectedResourcesController#index as HTML
|
536
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
537
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
538
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
539
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
540
|
+
[1m[35m (0.1ms)[0m begin transaction
|
541
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
542
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Gxz45enIbXgap5l9s34NgOv5nDNFtu.VgCCbfgKdeIdoewANsSGIW', '2015-07-13 16:21:53', '2015-07-13 16:21:53', 980190962)
|
543
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$ggP8muGRJ./uzDCpRLGsGeMwJhZ/m8UupMqy9fwgYetybewXBfEoK', '2015-07-13 16:21:53', '2015-07-13 16:21:53', 298486374)[0m
|
544
|
+
[1m[35m (1.7ms)[0m commit transaction
|
545
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
546
|
+
-----------------------------------------------------------------------------
|
547
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
548
|
+
-----------------------------------------------------------------------------
|
549
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
550
|
+
Processing by ProtectedResourcesController#index as HTML
|
551
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
552
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
553
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
554
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
555
|
+
------------------------------------------------------------------------------
|
556
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
557
|
+
------------------------------------------------------------------------------
|
558
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
559
|
+
Processing by ProtectedResourcesController#index as HTML
|
560
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
561
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
562
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
563
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
564
|
+
-----------------------------------------------------------------
|
565
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
566
|
+
-----------------------------------------------------------------
|
567
|
+
Processing by ProtectedResourcesController#index as HTML
|
568
|
+
Filter chain halted as :authenticate rendered or redirected
|
569
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
570
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
571
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
572
|
+
------------------------------------------------------------------------------
|
573
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
574
|
+
------------------------------------------------------------------------------
|
575
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
576
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
577
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
578
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
579
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
|
580
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
581
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
582
|
+
-------------------------------------------------------
|
583
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
584
|
+
-------------------------------------------------------
|
585
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
586
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
587
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
588
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
589
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
590
|
+
Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
591
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
592
|
+
[1m[35m (0.1ms)[0m begin transaction
|
593
|
+
------------------------------------------------------------------------------
|
594
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
595
|
+
------------------------------------------------------------------------------
|
596
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
597
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
598
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
599
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
600
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
601
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
602
|
+
[1m[35m (0.1ms)[0m begin transaction
|
603
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
604
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$71Xhb0Lu7p7LDx3RxkzsQuPzXLCkPS21kKpav5eSEmxkcqFhxMK56', '2015-07-13 16:28:52', '2015-07-13 16:28:52', 980190962)
|
605
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$TMXOm4uqu/S1TPx0QhIANuMU1ZaBWlvOUaN/kYDVTlByh8xebzW8C', '2015-07-13 16:28:52', '2015-07-13 16:28:52', 298486374)[0m
|
606
|
+
[1m[35m (1.7ms)[0m commit transaction
|
607
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
608
|
+
------------------------------------------------------------------------------
|
609
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
610
|
+
------------------------------------------------------------------------------
|
611
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
612
|
+
Processing by ProtectedResourcesController#index as HTML
|
613
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
614
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.0ms)
|
615
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
616
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
617
|
+
-----------------------------------------------------------------------------
|
618
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
619
|
+
-----------------------------------------------------------------------------
|
620
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
621
|
+
Processing by ProtectedResourcesController#index as HTML
|
622
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
623
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
624
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
625
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
626
|
+
-----------------------------------------------------------------
|
627
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
628
|
+
-----------------------------------------------------------------
|
629
|
+
Processing by ProtectedResourcesController#index as HTML
|
630
|
+
Filter chain halted as :authenticate rendered or redirected
|
631
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
632
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
633
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
634
|
+
-------------------------------------------------------
|
635
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
636
|
+
-------------------------------------------------------
|
637
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
638
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
639
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
640
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
641
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
642
|
+
Completed 201 Created in 3ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
643
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
644
|
+
[1m[35m (0.0ms)[0m begin transaction
|
645
|
+
------------------------------------------------------------------------------
|
646
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
647
|
+
------------------------------------------------------------------------------
|
648
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
649
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
650
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
651
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
652
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
|
653
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
654
|
+
[1m[35m (0.1ms)[0m begin transaction
|
655
|
+
------------------------------------------------------------------------------
|
656
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
657
|
+
------------------------------------------------------------------------------
|
658
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
659
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
660
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
661
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
662
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
663
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
664
|
+
[1m[35m (0.1ms)[0m begin transaction
|
665
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
666
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$jSDV39w1QQ8977FZTsnc3uNFUVqswdozgZvLhE4.rbBEmy8ih2XlS', '2015-07-13 16:29:29', '2015-07-13 16:29:29', 980190962)
|
667
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$526014YzKDIp2SBkxAwR8.QVBJA8S0CLxu2q6fyle/5tzj7vbC2Vi', '2015-07-13 16:29:29', '2015-07-13 16:29:29', 298486374)[0m
|
668
|
+
[1m[35m (1.4ms)[0m commit transaction
|
669
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
670
|
+
------------------------------------------------------------------------------
|
671
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
672
|
+
------------------------------------------------------------------------------
|
673
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
674
|
+
Processing by ProtectedResourcesController#index as HTML
|
675
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
676
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
|
677
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
678
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
679
|
+
-----------------------------------------------------------------------------
|
680
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
681
|
+
-----------------------------------------------------------------------------
|
682
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
683
|
+
Processing by ProtectedResourcesController#index as HTML
|
684
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
685
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
686
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
687
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
688
|
+
-----------------------------------------------------------------
|
689
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
690
|
+
-----------------------------------------------------------------
|
691
|
+
Processing by ProtectedResourcesController#index as HTML
|
692
|
+
Filter chain halted as :authenticate rendered or redirected
|
693
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
694
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
695
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
696
|
+
------------------------------------------------------------------------------
|
697
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
698
|
+
------------------------------------------------------------------------------
|
699
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
700
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
701
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
702
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
703
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
|
704
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
705
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
706
|
+
-------------------------------------------------------
|
707
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
708
|
+
-------------------------------------------------------
|
709
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
710
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
711
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
712
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
713
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
714
|
+
Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
715
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
716
|
+
[1m[35m (0.0ms)[0m begin transaction
|
717
|
+
------------------------------------------------------------------------------
|
718
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
719
|
+
------------------------------------------------------------------------------
|
720
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
721
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
722
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
723
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
724
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
725
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
726
|
+
[1m[35m (0.1ms)[0m begin transaction
|
727
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
728
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$CLQ7smzSD7r1MNrf5Zu.8OPI8cbm3bJzuBCA0lScKrZkEcPfvTErG', '2015-07-13 16:43:33', '2015-07-13 16:43:33', 980190962)
|
729
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$NTCCLG1B6ItTY2Uuw8VplusQgR0pfKOBOmh2V5ZueakRomgaTvNN6', '2015-07-13 16:43:33', '2015-07-13 16:43:33', 298486374)[0m
|
730
|
+
[1m[35m (1.0ms)[0m commit transaction
|
731
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
732
|
+
-------------------------------------------------------
|
733
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
734
|
+
-------------------------------------------------------
|
735
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
736
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
737
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
738
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
739
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
740
|
+
Completed 201 Created in 5ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
741
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
742
|
+
[1m[35m (0.0ms)[0m begin transaction
|
743
|
+
------------------------------------------------------------------------------
|
744
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
745
|
+
------------------------------------------------------------------------------
|
746
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
747
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
748
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
749
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
750
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
751
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
752
|
+
[1m[35m (0.0ms)[0m begin transaction
|
753
|
+
------------------------------------------------------------------------------
|
754
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
755
|
+
------------------------------------------------------------------------------
|
756
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
757
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
758
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
759
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
760
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
761
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
762
|
+
------------------------------------------------------------------------------
|
763
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
764
|
+
------------------------------------------------------------------------------
|
765
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
766
|
+
Processing by ProtectedResourcesController#index as HTML
|
767
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
768
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
769
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
770
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
771
|
+
-----------------------------------------------------------------
|
772
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
773
|
+
-----------------------------------------------------------------
|
774
|
+
Processing by ProtectedResourcesController#index as HTML
|
775
|
+
Filter chain halted as :authenticate rendered or redirected
|
776
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
777
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
778
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
779
|
+
-----------------------------------------------------------------------------
|
780
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
781
|
+
-----------------------------------------------------------------------------
|
782
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
783
|
+
Processing by ProtectedResourcesController#index as HTML
|
784
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
785
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
786
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
787
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
788
|
+
[1m[35m (0.1ms)[0m begin transaction
|
789
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
790
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$s3edpVY5HyCnFaOeiWCrZ.U6XTRHVKTlm4SCd7YkWZHiuhC0xYP7S', '2015-07-13 16:47:17', '2015-07-13 16:47:17', 980190962)
|
791
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$RUq18NbJ.SepgQhoOTBMHumSg3y9uantH/8AUxVcxBtjlm05PMfka', '2015-07-13 16:47:17', '2015-07-13 16:47:17', 298486374)[0m
|
792
|
+
[1m[35m (1.6ms)[0m commit transaction
|
793
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
794
|
+
-------------------------------------------------------
|
795
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
796
|
+
-------------------------------------------------------
|
797
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
798
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
799
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
800
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
801
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
802
|
+
Completed 201 Created in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)
|
803
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
804
|
+
[1m[35m (0.1ms)[0m begin transaction
|
805
|
+
------------------------------------------------------------------------------
|
806
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
807
|
+
------------------------------------------------------------------------------
|
808
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
809
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
810
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
811
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
812
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
813
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
814
|
+
------------------------------------------------------------------------------
|
815
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
816
|
+
------------------------------------------------------------------------------
|
817
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
818
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
819
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
820
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
821
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
822
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
823
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
824
|
+
------------------------------------------------------------------------------
|
825
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
826
|
+
------------------------------------------------------------------------------
|
827
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
828
|
+
Processing by ProtectedResourcesController#index as HTML
|
829
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
830
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
831
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
832
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
833
|
+
-----------------------------------------------------------------
|
834
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
835
|
+
-----------------------------------------------------------------
|
836
|
+
Processing by ProtectedResourcesController#index as HTML
|
837
|
+
Filter chain halted as :authenticate rendered or redirected
|
838
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
839
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
840
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
841
|
+
-----------------------------------------------------------------------------
|
842
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
843
|
+
-----------------------------------------------------------------------------
|
844
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
845
|
+
Processing by ProtectedResourcesController#index as HTML
|
846
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
847
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
848
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
849
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
850
|
+
[1m[35m (0.1ms)[0m begin transaction
|
851
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
852
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$9YKQjEx5Xf8.9eUlAhUQV.gs1zmER0OKzn.zJtiBBt4GPoqVbFwIa', '2015-07-13 16:55:06', '2015-07-13 16:55:06', 980190962)
|
853
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$jh1NmowVP7TOJSi2vptU.uicw9e4p.4WEraBFivOZ7mUt.e/pti1S', '2015-07-13 16:55:06', '2015-07-13 16:55:06', 298486374)[0m
|
854
|
+
[1m[35m (1.5ms)[0m commit transaction
|
855
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
856
|
+
------------------------------------------------------------------------------
|
857
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
858
|
+
------------------------------------------------------------------------------
|
859
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
860
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
861
|
+
-----------------------------------------------------------------
|
862
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
863
|
+
-----------------------------------------------------------------
|
864
|
+
Processing by ProtectedResourcesController#index as HTML
|
865
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
866
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
867
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
868
|
+
-----------------------------------------------------------------------------
|
869
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
870
|
+
-----------------------------------------------------------------------------
|
871
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
872
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
873
|
+
[1m[35m (0.0ms)[0m begin transaction
|
874
|
+
-------------------------------------------------------
|
875
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
876
|
+
-------------------------------------------------------
|
877
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
878
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
879
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
880
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
881
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
882
|
+
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
|
883
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
884
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
885
|
+
------------------------------------------------------------------------------
|
886
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
887
|
+
------------------------------------------------------------------------------
|
888
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
889
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
890
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
891
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
892
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
893
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
894
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
895
|
+
------------------------------------------------------------------------------
|
896
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
897
|
+
------------------------------------------------------------------------------
|
898
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
899
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
900
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
901
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
902
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
903
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
904
|
+
[1m[35m (0.1ms)[0m begin transaction
|
905
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
906
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$CjA1zzjRqkkl1Ugo11yJJOBW7Bb60/3iyMfa17N5Hgc/XKVzecS92', '2015-07-13 16:55:19', '2015-07-13 16:55:19', 980190962)
|
907
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$Le5ZFe1eZcOqq8FITvsoXOEnadvMagTqvXfmw4dNn2SUBi.yE0oNa', '2015-07-13 16:55:19', '2015-07-13 16:55:19', 298486374)[0m
|
908
|
+
[1m[35m (1.7ms)[0m commit transaction
|
909
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
910
|
+
------------------------------------------------------------------------------
|
911
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
912
|
+
------------------------------------------------------------------------------
|
913
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
914
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
915
|
+
------------------------------------------------------------------------------
|
916
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
917
|
+
------------------------------------------------------------------------------
|
918
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
919
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
920
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
921
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
922
|
+
Completed 404 Not Found in 4ms (ActiveRecord: 0.1ms)
|
923
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
924
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
925
|
+
-------------------------------------------------------
|
926
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
927
|
+
-------------------------------------------------------
|
928
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
929
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
930
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
931
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
932
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
933
|
+
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)
|
934
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
935
|
+
[1m[35m (0.1ms)[0m begin transaction
|
936
|
+
------------------------------------------------------------------------------
|
937
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
938
|
+
------------------------------------------------------------------------------
|
939
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
940
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
941
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
942
|
+
-----------------------------------------------------------------
|
943
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
944
|
+
-----------------------------------------------------------------
|
945
|
+
Processing by ProtectedResourcesController#index as HTML
|
946
|
+
Filter chain halted as :authenticate rendered or redirected
|
947
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
948
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
949
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
950
|
+
-----------------------------------------------------------------------------
|
951
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
952
|
+
-----------------------------------------------------------------------------
|
953
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
954
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
955
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
956
|
+
[1m[35m (0.1ms)[0m begin transaction
|
957
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
958
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$buKsBSg9P6cjOnlNDvUPreQZDbEs3mi/rmB7Ni1UnYtrxQsjtTByO', '2015-07-13 16:56:17', '2015-07-13 16:56:17', 980190962)
|
959
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$ay7fdx4DXTE6pk.sxLPa0.G8vRREcRejecv8NqbXQ9kBh5mQw/Mbm', '2015-07-13 16:56:17', '2015-07-13 16:56:17', 298486374)[0m
|
960
|
+
[1m[35m (1.5ms)[0m commit transaction
|
961
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
962
|
+
------------------------------------------------------------------------------
|
963
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
964
|
+
------------------------------------------------------------------------------
|
965
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
966
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
967
|
+
-----------------------------------------------------------------------------
|
968
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
969
|
+
-----------------------------------------------------------------------------
|
970
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
971
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
972
|
+
[1m[35m (0.0ms)[0m begin transaction
|
973
|
+
-----------------------------------------------------------------
|
974
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
975
|
+
-----------------------------------------------------------------
|
976
|
+
Processing by ProtectedResourcesController#index as HTML
|
977
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
978
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
979
|
+
[1m[35m (0.0ms)[0m begin transaction
|
980
|
+
-------------------------------------------------------
|
981
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
982
|
+
-------------------------------------------------------
|
983
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
984
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
985
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
986
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
987
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
988
|
+
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
|
989
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
990
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
991
|
+
------------------------------------------------------------------------------
|
992
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
993
|
+
------------------------------------------------------------------------------
|
994
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
995
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
996
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
997
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
998
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
999
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1000
|
+
------------------------------------------------------------------------------
|
1001
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1002
|
+
------------------------------------------------------------------------------
|
1003
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1004
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1005
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1006
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1007
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
1008
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1009
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1010
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1011
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
1012
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$ohV4LqeFV2sk5xaFzYyfcesCSMLo2MbA/pkS3hSa2/9/PVTUV89yu', '2015-07-13 16:57:01', '2015-07-13 16:57:01', 980190962)
|
1013
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$jbcFsRnPiAgNELjRich89.VUvzwPlC18y9BOlFE8HAm9Jgt7c8VkK', '2015-07-13 16:57:01', '2015-07-13 16:57:01', 298486374)[0m
|
1014
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1015
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1016
|
+
------------------------------------------------------------------------------
|
1017
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1018
|
+
------------------------------------------------------------------------------
|
1019
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1020
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1021
|
+
-----------------------------------------------------------------
|
1022
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1023
|
+
-----------------------------------------------------------------
|
1024
|
+
Processing by ProtectedResourcesController#index as HTML
|
1025
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
1026
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1027
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1028
|
+
-----------------------------------------------------------------------------
|
1029
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1030
|
+
-----------------------------------------------------------------------------
|
1031
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1032
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1033
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1034
|
+
-------------------------------------------------------
|
1035
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1036
|
+
-------------------------------------------------------
|
1037
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1038
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1039
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1040
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1041
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1042
|
+
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
|
1043
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1044
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1045
|
+
------------------------------------------------------------------------------
|
1046
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1047
|
+
------------------------------------------------------------------------------
|
1048
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1049
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1050
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1051
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1052
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
1053
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1054
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1055
|
+
------------------------------------------------------------------------------
|
1056
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1057
|
+
------------------------------------------------------------------------------
|
1058
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1059
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1060
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
1061
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
1062
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1063
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1064
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1065
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
1066
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$IDaAVxs895yECQ/UOhHlFeX0jd3erzJblCLhUE6wTkWxjGJ5QmLUS', '2015-07-13 16:59:50', '2015-07-13 16:59:50', 980190962)
|
1067
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$CKm9HFT34A9DXY2oLLHMxur1Qy8jd7dXKNmb1r5SrOey5TtJACe/S', '2015-07-13 16:59:50', '2015-07-13 16:59:50', 298486374)[0m
|
1068
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1069
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1070
|
+
-------------------------------------------------------
|
1071
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1072
|
+
-------------------------------------------------------
|
1073
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1074
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1075
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1076
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1077
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1078
|
+
Completed 201 Created in 7ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
1079
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1080
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1081
|
+
------------------------------------------------------------------------------
|
1082
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1083
|
+
------------------------------------------------------------------------------
|
1084
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1085
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1086
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1087
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1088
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
1089
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1090
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1091
|
+
------------------------------------------------------------------------------
|
1092
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1093
|
+
------------------------------------------------------------------------------
|
1094
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1095
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1096
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
1097
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
1098
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1099
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1100
|
+
-----------------------------------------------------------------------------
|
1101
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1102
|
+
-----------------------------------------------------------------------------
|
1103
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1104
|
+
Processing by ProtectedResourcesController#index as HTML
|
1105
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1106
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
1107
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1108
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1109
|
+
------------------------------------------------------------------------------
|
1110
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1111
|
+
------------------------------------------------------------------------------
|
1112
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1113
|
+
Processing by ProtectedResourcesController#index as HTML
|
1114
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1115
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
1116
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1117
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1118
|
+
-----------------------------------------------------------------
|
1119
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1120
|
+
-----------------------------------------------------------------
|
1121
|
+
Processing by ProtectedResourcesController#index as HTML
|
1122
|
+
Filter chain halted as :authenticate rendered or redirected
|
1123
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
1124
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1125
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1126
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1127
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "users"[0m
|
1128
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$J0rWxPSqMXIpH8HOGGu3Vu0DEkbNiak0hSk7cbDmf/TtoUOPLssTW', '2015-07-13 21:04:36', '2015-07-13 21:04:36', 980190962)
|
1129
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$/lkJKgCRT7X2cGEj9bzOCurfSEFhk97oXCJ0p.sQjbt92LwL1I5Ne', '2015-07-13 21:04:36', '2015-07-13 21:04:36', 298486374)[0m
|
1130
|
+
[1m[35m (0.6ms)[0m commit transaction
|
1131
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1132
|
+
-----------------------------------------------------------------------------
|
1133
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1134
|
+
-----------------------------------------------------------------------------
|
1135
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1136
|
+
Processing by ProtectedResourcesController#index as HTML
|
1137
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1138
|
+
Completed 200 OK in 10ms (ActiveRecord: 0.1ms)
|
1139
|
+
[1m[35m (1.6ms)[0m rollback transaction
|
1140
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1141
|
+
-----------------------------------------------------------------
|
1142
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1143
|
+
-----------------------------------------------------------------
|
1144
|
+
Processing by ProtectedResourcesController#index as HTML
|
1145
|
+
Filter chain halted as :authenticate rendered or redirected
|
1146
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
1147
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1148
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1149
|
+
------------------------------------------------------------------------------
|
1150
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1151
|
+
------------------------------------------------------------------------------
|
1152
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1153
|
+
Processing by ProtectedResourcesController#index as HTML
|
1154
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1155
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
1156
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1157
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1158
|
+
------------------------------------------------------------------------------
|
1159
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1160
|
+
------------------------------------------------------------------------------
|
1161
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1162
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1163
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
1164
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
1165
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1166
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1167
|
+
------------------------------------------------------------------------------
|
1168
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1169
|
+
------------------------------------------------------------------------------
|
1170
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1171
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1172
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1173
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1174
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
|
1175
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1176
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1177
|
+
-------------------------------------------------------
|
1178
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1179
|
+
-------------------------------------------------------
|
1180
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1181
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1182
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1183
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1184
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1185
|
+
Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
1186
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1187
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1188
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1189
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
1190
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$an/Vaolv5bk5a1Vno3p15etU8ac9Huyi1lLngEGdGLd7pff/l12sm', '2015-07-13 21:15:22', '2015-07-13 21:15:22', 980190962)
|
1191
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$WGU/ay0tf1OoVFItxdY5ReDf3Dsu91M4H9hHF4tseDcRsejDNxwTC', '2015-07-13 21:15:22', '2015-07-13 21:15:22', 298486374)[0m
|
1192
|
+
[1m[35m (0.9ms)[0m commit transaction
|
1193
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1194
|
+
-----------------------------------------------------------------
|
1195
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1196
|
+
-----------------------------------------------------------------
|
1197
|
+
Processing by ProtectedResourcesController#index as HTML
|
1198
|
+
Filter chain halted as :authenticate rendered or redirected
|
1199
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
1200
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1201
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1202
|
+
-----------------------------------------------------------------------------
|
1203
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1204
|
+
-----------------------------------------------------------------------------
|
1205
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1206
|
+
Processing by ProtectedResourcesController#index as HTML
|
1207
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1208
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.0ms)
|
1209
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1210
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1211
|
+
------------------------------------------------------------------------------
|
1212
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1213
|
+
------------------------------------------------------------------------------
|
1214
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1215
|
+
Processing by ProtectedResourcesController#index as HTML
|
1216
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1217
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
1218
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1219
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1220
|
+
-------------------------------------------------------
|
1221
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1222
|
+
-------------------------------------------------------
|
1223
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1224
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1225
|
+
------------------------------------------------------------------------------
|
1226
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1227
|
+
------------------------------------------------------------------------------
|
1228
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1229
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1230
|
+
------------------------------------------------------------------------------
|
1231
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1232
|
+
------------------------------------------------------------------------------
|
1233
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1234
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1235
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1236
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
1237
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Zj5pwhDumkxIjnNteh5oWO556t7ILfWQyBo.DdRM6Dq22Jrybt4F6', '2015-07-13 21:17:01', '2015-07-13 21:17:01', 980190962)
|
1238
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$K0YGlsdHj5g5Ln9llHEryOqfLLt/laqN.S1bpP22EdaEpornXyv7C', '2015-07-13 21:17:01', '2015-07-13 21:17:01', 298486374)[0m
|
1239
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1240
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1241
|
+
-------------------------------------------------------
|
1242
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1243
|
+
-------------------------------------------------------
|
1244
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1245
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1246
|
+
------------------------------------------------------------------------------
|
1247
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1248
|
+
------------------------------------------------------------------------------
|
1249
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1250
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1251
|
+
------------------------------------------------------------------------------
|
1252
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1253
|
+
------------------------------------------------------------------------------
|
1254
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1255
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1256
|
+
------------------------------------------------------------------------------
|
1257
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1258
|
+
------------------------------------------------------------------------------
|
1259
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1260
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1261
|
+
-----------------------------------------------------------------------------
|
1262
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1263
|
+
-----------------------------------------------------------------------------
|
1264
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1265
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1266
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1267
|
+
-----------------------------------------------------------------
|
1268
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1269
|
+
-----------------------------------------------------------------
|
1270
|
+
Processing by ProtectedResourcesController#index as HTML
|
1271
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
1272
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1273
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1274
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1275
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
1276
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$acsMTGa50IhZ/UQufqzgn.wp4cDkxr1T6plGQBlRBa.YyNI9OdVZO', '2015-07-13 21:17:47', '2015-07-13 21:17:47', 980190962)
|
1277
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$ysNJPr2v6VSZraHbIOpzSO189n8ENaDkUpaUhDa8MkcmbYHBeTRhK', '2015-07-13 21:17:47', '2015-07-13 21:17:47', 298486374)[0m
|
1278
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1279
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1280
|
+
-------------------------------------------------------
|
1281
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1282
|
+
-------------------------------------------------------
|
1283
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1284
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1285
|
+
------------------------------------------------------------------------------
|
1286
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1287
|
+
------------------------------------------------------------------------------
|
1288
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1289
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1290
|
+
------------------------------------------------------------------------------
|
1291
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1292
|
+
------------------------------------------------------------------------------
|
1293
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1294
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1295
|
+
-----------------------------------------------------------------
|
1296
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1297
|
+
-----------------------------------------------------------------
|
1298
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1299
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1300
|
+
-----------------------------------------------------------------------------
|
1301
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1302
|
+
-----------------------------------------------------------------------------
|
1303
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1304
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1305
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1306
|
+
------------------------------------------------------------------------------
|
1307
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1308
|
+
------------------------------------------------------------------------------
|
1309
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1310
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1311
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1312
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1313
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
1314
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$9jRP3xzkwMrGKTT8Z1whU.YgNGREn/cghggfZXgMOWyV3c/VHHamK', '2015-07-13 21:19:07', '2015-07-13 21:19:07', 980190962)
|
1315
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$axhnqQhv3PPzQyA1C6Po1OxGPmsgn.v06.td0wjF6QQ4SQi6I0QEK', '2015-07-13 21:19:07', '2015-07-13 21:19:07', 298486374)[0m
|
1316
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1317
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1318
|
+
------------------------------------------------------------------------------
|
1319
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1320
|
+
------------------------------------------------------------------------------
|
1321
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1322
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1323
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
1324
|
+
Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)
|
1325
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1326
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1327
|
+
------------------------------------------------------------------------------
|
1328
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1329
|
+
------------------------------------------------------------------------------
|
1330
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1331
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1332
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1333
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1334
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
1335
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1336
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1337
|
+
-------------------------------------------------------
|
1338
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1339
|
+
-------------------------------------------------------
|
1340
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1341
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1342
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1343
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1344
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1345
|
+
Completed 201 Created in 6ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
1346
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1347
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1348
|
+
------------------------------------------------------------------------------
|
1349
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1350
|
+
------------------------------------------------------------------------------
|
1351
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1352
|
+
Processing by ProtectedResourcesController#index as HTML
|
1353
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1354
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
1355
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1356
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1357
|
+
-----------------------------------------------------------------------------
|
1358
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1359
|
+
-----------------------------------------------------------------------------
|
1360
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1361
|
+
Processing by ProtectedResourcesController#index as HTML
|
1362
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1363
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
1364
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1366
|
+
-----------------------------------------------------------------
|
1367
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1368
|
+
-----------------------------------------------------------------
|
1369
|
+
Processing by ProtectedResourcesController#index as HTML
|
1370
|
+
Filter chain halted as :authenticate rendered or redirected
|
1371
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
1372
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1373
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1374
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1375
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
1376
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$zpbpyhyfcPXWt6Q0RGakN.oVtcR0lMxd9WP6jfAXSP8OVc3PNCeCa', '2015-07-13 21:19:18', '2015-07-13 21:19:18', 980190962)
|
1377
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$JpjASWgk34dD5ye9A9w98OQMM5YMpP6V0LsmHDDN8Chf/sJYuyfEK', '2015-07-13 21:19:18', '2015-07-13 21:19:18', 298486374)[0m
|
1378
|
+
[1m[35m (1.1ms)[0m commit transaction
|
1379
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1380
|
+
-------------------------------------------------------
|
1381
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1382
|
+
-------------------------------------------------------
|
1383
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1384
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1385
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1386
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1387
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1388
|
+
Completed 201 Created in 5ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
1389
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1390
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1391
|
+
------------------------------------------------------------------------------
|
1392
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1393
|
+
------------------------------------------------------------------------------
|
1394
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1395
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1396
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1397
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1398
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
1399
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1400
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1401
|
+
------------------------------------------------------------------------------
|
1402
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1403
|
+
------------------------------------------------------------------------------
|
1404
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1405
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1406
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
1407
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
1408
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1409
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1410
|
+
------------------------------------------------------------------------------
|
1411
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1412
|
+
------------------------------------------------------------------------------
|
1413
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1414
|
+
Processing by ProtectedResourcesController#index as HTML
|
1415
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1416
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
1417
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1418
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1419
|
+
-----------------------------------------------------------------------------
|
1420
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1421
|
+
-----------------------------------------------------------------------------
|
1422
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1423
|
+
Processing by ProtectedResourcesController#index as HTML
|
1424
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1425
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
1426
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1427
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1428
|
+
-----------------------------------------------------------------
|
1429
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1430
|
+
-----------------------------------------------------------------
|
1431
|
+
Processing by ProtectedResourcesController#index as HTML
|
1432
|
+
Filter chain halted as :authenticate rendered or redirected
|
1433
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
1434
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1435
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1436
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1437
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "users"[0m
|
1438
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$xSitD9W0lx.koHvJ65dJN.XdmEB5XfozAsnzvJk.GRMq3reQihisi', '2015-07-14 09:27:53', '2015-07-14 09:27:53', 980190962)
|
1439
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$Dkap0bbd4UO9Ubo.Sbzfn.0nLczGmqjnFJQu1IFm4v2F3j.11q8FW', '2015-07-14 09:27:53', '2015-07-14 09:27:53', 298486374)[0m
|
1440
|
+
[1m[35m (0.7ms)[0m commit transaction
|
1441
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1442
|
+
-------------------------------------------------------
|
1443
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1444
|
+
-------------------------------------------------------
|
1445
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1446
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1447
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1448
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1449
|
+
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
|
1450
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1451
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1452
|
+
------------------------------------------------------------------------------
|
1453
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1454
|
+
------------------------------------------------------------------------------
|
1455
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1456
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1457
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1458
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1459
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
1460
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1461
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1462
|
+
------------------------------------------------------------------------------
|
1463
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1464
|
+
------------------------------------------------------------------------------
|
1465
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1466
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1467
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
1468
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
1469
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1470
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1471
|
+
-----------------------------------------------------------------
|
1472
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1473
|
+
-----------------------------------------------------------------
|
1474
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1475
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1476
|
+
-----------------------------------------------------------------------------
|
1477
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1478
|
+
-----------------------------------------------------------------------------
|
1479
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1480
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1481
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1482
|
+
------------------------------------------------------------------------------
|
1483
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1484
|
+
------------------------------------------------------------------------------
|
1485
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1486
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1487
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1488
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1489
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "users"[0m
|
1490
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$JXAVSXQKx7rrvhJc.xSgxeDXy2uQZBojbLP5n1joB9gxIb9TSfaGC', '2015-07-14 09:28:56', '2015-07-14 09:28:56', 980190962)
|
1491
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$2rVce0eajTnMleQv40yBR.ExplCDn0KBoMGWtFjdL3JoScWJAqXNW', '2015-07-14 09:28:56', '2015-07-14 09:28:56', 298486374)[0m
|
1492
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1493
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1494
|
+
-------------------------------------------------------
|
1495
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1496
|
+
-------------------------------------------------------
|
1497
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1498
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1499
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1500
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1501
|
+
Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.2ms)
|
1502
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1503
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1504
|
+
------------------------------------------------------------------------------
|
1505
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1506
|
+
------------------------------------------------------------------------------
|
1507
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1508
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1509
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
1510
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
1511
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1512
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1513
|
+
------------------------------------------------------------------------------
|
1514
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1515
|
+
------------------------------------------------------------------------------
|
1516
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1517
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1518
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1519
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1520
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
1521
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1522
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1523
|
+
-----------------------------------------------------------------
|
1524
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1525
|
+
-----------------------------------------------------------------
|
1526
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1527
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1528
|
+
-----------------------------------------------------------------------------
|
1529
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1530
|
+
-----------------------------------------------------------------------------
|
1531
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1532
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1533
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1534
|
+
------------------------------------------------------------------------------
|
1535
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1536
|
+
------------------------------------------------------------------------------
|
1537
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1538
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1539
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1540
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1541
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
1542
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$sh8rSOiyRBZS9/aBKV60uezwCIduD/tgR/v8ZyVhH.oP.G.wm98Be', '2015-07-14 09:29:18', '2015-07-14 09:29:18', 980190962)
|
1543
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$MnNodakwNZOm7TiI8pemzOHNS0Rga5zQ9sfw.OQqxa28tTDUHflri', '2015-07-14 09:29:18', '2015-07-14 09:29:18', 298486374)[0m
|
1544
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1545
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1546
|
+
------------------------------------------------------------------------------
|
1547
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1548
|
+
------------------------------------------------------------------------------
|
1549
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1550
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1551
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1552
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1553
|
+
Completed 404 Not Found in 3ms (ActiveRecord: 0.1ms)
|
1554
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1555
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1556
|
+
-------------------------------------------------------
|
1557
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1558
|
+
-------------------------------------------------------
|
1559
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1560
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1561
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1562
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1563
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1564
|
+
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)
|
1565
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1566
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1567
|
+
------------------------------------------------------------------------------
|
1568
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1569
|
+
------------------------------------------------------------------------------
|
1570
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1571
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1572
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
1573
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
1574
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1575
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1576
|
+
-----------------------------------------------------------------
|
1577
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1578
|
+
-----------------------------------------------------------------
|
1579
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1580
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1581
|
+
-----------------------------------------------------------------------------
|
1582
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1583
|
+
-----------------------------------------------------------------------------
|
1584
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1585
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1586
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1587
|
+
------------------------------------------------------------------------------
|
1588
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1589
|
+
------------------------------------------------------------------------------
|
1590
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1591
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1592
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1593
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1594
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
1595
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$3BTF58EKSnukPHJT/hYZo.LAFZRW.XeYrbVq51WdOHbs8plpftfFu', '2015-07-14 09:30:10', '2015-07-14 09:30:10', 980190962)
|
1596
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$lH65kr1o4lwZygIEfXGtSOYoEh9v3wu56Q6HzSdM0KklvgJrWagSO', '2015-07-14 09:30:10', '2015-07-14 09:30:10', 298486374)[0m
|
1597
|
+
[1m[35m (1.6ms)[0m commit transaction
|
1598
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1599
|
+
------------------------------------------------------------------------------
|
1600
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1601
|
+
------------------------------------------------------------------------------
|
1602
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1603
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1604
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
1605
|
+
Completed 404 Not Found in 6ms (ActiveRecord: 0.2ms)
|
1606
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1607
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1608
|
+
------------------------------------------------------------------------------
|
1609
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1610
|
+
------------------------------------------------------------------------------
|
1611
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1612
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1613
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1614
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1615
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
1616
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1617
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1618
|
+
-------------------------------------------------------
|
1619
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1620
|
+
-------------------------------------------------------
|
1621
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1622
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1623
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1624
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1625
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1626
|
+
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)
|
1627
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1628
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1629
|
+
-----------------------------------------------------------------------------
|
1630
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1631
|
+
-----------------------------------------------------------------------------
|
1632
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1633
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1634
|
+
------------------------------------------------------------------------------
|
1635
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1636
|
+
------------------------------------------------------------------------------
|
1637
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1638
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1639
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1640
|
+
-----------------------------------------------------------------
|
1641
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1642
|
+
-----------------------------------------------------------------
|
1643
|
+
Processing by ProtectedResourcesController#index as HTML
|
1644
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
1645
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1646
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1647
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1648
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
1649
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$LAnAPCBbgCdPrezLQGdhV.y65kNLi6jvUVPFPYH9m9R/6G5549RUu', '2015-07-14 09:30:21', '2015-07-14 09:30:21', 980190962)
|
1650
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$EAKpLR6Chr9uSSK9zt0dTu1rQsQT5QS4U9DfgEKz/a0FMV8DcRTtG', '2015-07-14 09:30:21', '2015-07-14 09:30:21', 298486374)[0m
|
1651
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1652
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1653
|
+
-------------------------------------------------------
|
1654
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1655
|
+
-------------------------------------------------------
|
1656
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1657
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1658
|
+
------------------------------------------------------------------------------
|
1659
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1660
|
+
------------------------------------------------------------------------------
|
1661
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1662
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1663
|
+
------------------------------------------------------------------------------
|
1664
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1665
|
+
------------------------------------------------------------------------------
|
1666
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1667
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1668
|
+
------------------------------------------------------------------------------
|
1669
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1670
|
+
------------------------------------------------------------------------------
|
1671
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1672
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1673
|
+
-----------------------------------------------------------------------------
|
1674
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1675
|
+
-----------------------------------------------------------------------------
|
1676
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1677
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1678
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1679
|
+
-----------------------------------------------------------------
|
1680
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1681
|
+
-----------------------------------------------------------------
|
1682
|
+
Processing by ProtectedResourcesController#index as HTML
|
1683
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
1684
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1685
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1686
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1687
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
1688
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$gLfliPwnYc3HAh8F24ckdON1BQU3vaangjZrI8FljvdMP55OvJnti', '2015-07-14 09:30:40', '2015-07-14 09:30:40', 980190962)
|
1689
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$lrVtyjHbiIX/ecHLy42ArerhfxoxE0Odv2l1j6b1yeUjGavUGWf32', '2015-07-14 09:30:40', '2015-07-14 09:30:40', 298486374)[0m
|
1690
|
+
[1m[35m (1.7ms)[0m commit transaction
|
1691
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1692
|
+
-------------------------------------------------------
|
1693
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1694
|
+
-------------------------------------------------------
|
1695
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1696
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1697
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1698
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1699
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1700
|
+
Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)
|
1701
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1702
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1703
|
+
------------------------------------------------------------------------------
|
1704
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1705
|
+
------------------------------------------------------------------------------
|
1706
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1707
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1708
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1709
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1710
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
1711
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1712
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1713
|
+
------------------------------------------------------------------------------
|
1714
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1715
|
+
------------------------------------------------------------------------------
|
1716
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1717
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1718
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
1719
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
1720
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1721
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1722
|
+
------------------------------------------------------------------------------
|
1723
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1724
|
+
------------------------------------------------------------------------------
|
1725
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1726
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1727
|
+
-----------------------------------------------------------------------------
|
1728
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1729
|
+
-----------------------------------------------------------------------------
|
1730
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1731
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1732
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1733
|
+
-----------------------------------------------------------------
|
1734
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1735
|
+
-----------------------------------------------------------------
|
1736
|
+
Processing by ProtectedResourcesController#index as HTML
|
1737
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
1738
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1739
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1740
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1741
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
1742
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$hUqFzC7hTfn5bcjfzZGv4O0Kj2ky3FpAiXCjnYVAPKYwy/aRPsxNa', '2015-07-14 09:31:10', '2015-07-14 09:31:10', 980190962)
|
1743
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$Wk0nYDjSPJzZ.b1CiPJ0OeZ50.1ygpo0TNUXCeiz1bVlYJPhlMore', '2015-07-14 09:31:10', '2015-07-14 09:31:10', 298486374)[0m
|
1744
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1745
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1746
|
+
------------------------------------------------------------------------------
|
1747
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1748
|
+
------------------------------------------------------------------------------
|
1749
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1750
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1751
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
1752
|
+
Completed 404 Not Found in 4ms (ActiveRecord: 0.2ms)
|
1753
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1754
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1755
|
+
------------------------------------------------------------------------------
|
1756
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1757
|
+
------------------------------------------------------------------------------
|
1758
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1759
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1760
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1761
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1762
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
|
1763
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1764
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1765
|
+
-------------------------------------------------------
|
1766
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1767
|
+
-------------------------------------------------------
|
1768
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1769
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1770
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1771
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1772
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1773
|
+
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)
|
1774
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1775
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1776
|
+
-----------------------------------------------------------------------------
|
1777
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1778
|
+
-----------------------------------------------------------------------------
|
1779
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1780
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1781
|
+
------------------------------------------------------------------------------
|
1782
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1783
|
+
------------------------------------------------------------------------------
|
1784
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1785
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1786
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1787
|
+
-----------------------------------------------------------------
|
1788
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1789
|
+
-----------------------------------------------------------------
|
1790
|
+
Processing by ProtectedResourcesController#index as HTML
|
1791
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
1792
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1793
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1794
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1795
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
1796
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Aqxs5maR8nkQb6zhJdukEu5/D3KmNOTIdD34zafusqdJh/wHgBmXW', '2015-07-14 09:31:28', '2015-07-14 09:31:28', 980190962)
|
1797
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$0EPd.rxo/Mcf169xWnGz5ekp7DmsfMLDL88Q.cO2fRKASm.mbAWS6', '2015-07-14 09:31:28', '2015-07-14 09:31:28', 298486374)[0m
|
1798
|
+
[1m[35m (1.2ms)[0m commit transaction
|
1799
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1800
|
+
------------------------------------------------------------------------------
|
1801
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1802
|
+
------------------------------------------------------------------------------
|
1803
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1804
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1805
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
1806
|
+
Completed 404 Not Found in 4ms (ActiveRecord: 0.2ms)
|
1807
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1808
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1809
|
+
------------------------------------------------------------------------------
|
1810
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1811
|
+
------------------------------------------------------------------------------
|
1812
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1813
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1814
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1815
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1816
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
1817
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1818
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1819
|
+
-------------------------------------------------------
|
1820
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1821
|
+
-------------------------------------------------------
|
1822
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1823
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1824
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1825
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1826
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1827
|
+
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)
|
1828
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1829
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1830
|
+
-----------------------------------------------------------------
|
1831
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1832
|
+
-----------------------------------------------------------------
|
1833
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1834
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1835
|
+
-----------------------------------------------------------------------------
|
1836
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1837
|
+
-----------------------------------------------------------------------------
|
1838
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1839
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1840
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1841
|
+
------------------------------------------------------------------------------
|
1842
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1843
|
+
------------------------------------------------------------------------------
|
1844
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1845
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1846
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1847
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1848
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
1849
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$j4Y.hQQgquCuzMbRCpxSLOITiAD7tNJGbJfuLIUYDxmSvF/zZR/DW', '2015-07-14 09:34:37', '2015-07-14 09:34:37', 980190962)
|
1850
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$zM0Q61emF9vn8QR4Ea3o/.TSnYDcFE5xOVzIWX7ulXwnqCP4h5Lsm', '2015-07-14 09:34:37', '2015-07-14 09:34:37', 298486374)[0m
|
1851
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1852
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1853
|
+
-------------------------------------------------------
|
1854
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1855
|
+
-------------------------------------------------------
|
1856
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1857
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1858
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1859
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1860
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1861
|
+
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms)
|
1862
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1863
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1864
|
+
------------------------------------------------------------------------------
|
1865
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1866
|
+
------------------------------------------------------------------------------
|
1867
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1868
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1869
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
1870
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
1871
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1872
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1873
|
+
------------------------------------------------------------------------------
|
1874
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1875
|
+
------------------------------------------------------------------------------
|
1876
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1877
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1878
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1879
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1880
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
1881
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1882
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1883
|
+
-----------------------------------------------------------------------------
|
1884
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1885
|
+
-----------------------------------------------------------------------------
|
1886
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1887
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1888
|
+
------------------------------------------------------------------------------
|
1889
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1890
|
+
------------------------------------------------------------------------------
|
1891
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1892
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1893
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1894
|
+
-----------------------------------------------------------------
|
1895
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1896
|
+
-----------------------------------------------------------------
|
1897
|
+
Processing by ProtectedResourcesController#index as HTML
|
1898
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
1899
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1900
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1901
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1902
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
1903
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Y4.SbB/.tPhsvDalFgsp0OVhhyvIAm5AP0I4369ISoWwJlKiF5EbO', '2015-07-14 09:36:56', '2015-07-14 09:36:56', 980190962)
|
1904
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$WPwy1EHqMFxgAWLLiXvTbeAU7EXmYJUluU2YzvDKt8NtBFdJBP8ly', '2015-07-14 09:36:56', '2015-07-14 09:36:56', 298486374)[0m
|
1905
|
+
[1m[35m (0.8ms)[0m commit transaction
|
1906
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1907
|
+
------------------------------------------------------------------------------
|
1908
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1909
|
+
------------------------------------------------------------------------------
|
1910
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1911
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1912
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
1913
|
+
Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)
|
1914
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1915
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1916
|
+
------------------------------------------------------------------------------
|
1917
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
1918
|
+
------------------------------------------------------------------------------
|
1919
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1920
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1921
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1922
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1923
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
1924
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1925
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1926
|
+
-------------------------------------------------------
|
1927
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1928
|
+
-------------------------------------------------------
|
1929
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1930
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1931
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1932
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1933
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1934
|
+
Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
1935
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1936
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1937
|
+
-----------------------------------------------------------------------------
|
1938
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1939
|
+
-----------------------------------------------------------------------------
|
1940
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1941
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1942
|
+
------------------------------------------------------------------------------
|
1943
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1944
|
+
------------------------------------------------------------------------------
|
1945
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1946
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1947
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1948
|
+
-----------------------------------------------------------------
|
1949
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1950
|
+
-----------------------------------------------------------------
|
1951
|
+
Processing by ProtectedResourcesController#index as HTML
|
1952
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
1953
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1954
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1955
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1956
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
1957
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$4n5K.5FquIEefYrlFm4LKu1sUnT9o6c6QRwY.AP5R6hQbf4..ObcS', '2015-07-14 09:43:08', '2015-07-14 09:43:08', 980190962)
|
1958
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$.kAS9OENR.6AbGLbHyW4gu4RkWqhonoUVZ4ZSAZP5bcB0MZu9Hrta', '2015-07-14 09:43:08', '2015-07-14 09:43:08', 298486374)[0m
|
1959
|
+
[1m[35m (1.4ms)[0m commit transaction
|
1960
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1961
|
+
-----------------------------------------------------------------------------
|
1962
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
1963
|
+
-----------------------------------------------------------------------------
|
1964
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1965
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1966
|
+
------------------------------------------------------------------------------
|
1967
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
1968
|
+
------------------------------------------------------------------------------
|
1969
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
1970
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1971
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1972
|
+
-----------------------------------------------------------------
|
1973
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
1974
|
+
-----------------------------------------------------------------
|
1975
|
+
Processing by ProtectedResourcesController#index as HTML
|
1976
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
1977
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1978
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1979
|
+
-------------------------------------------------------
|
1980
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
1981
|
+
-------------------------------------------------------
|
1982
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
1983
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1984
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
1985
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
1986
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
1987
|
+
Completed 201 Created in 7ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
1988
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1989
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1990
|
+
------------------------------------------------------------------------------
|
1991
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
1992
|
+
------------------------------------------------------------------------------
|
1993
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
1994
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
1995
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
1996
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
1997
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1998
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1999
|
+
------------------------------------------------------------------------------
|
2000
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2001
|
+
------------------------------------------------------------------------------
|
2002
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2003
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2004
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2005
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2006
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
2007
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2008
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2009
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2010
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
2011
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$vzxKwCWF06OF1NxHr7QOZuO/A/EQt6.WtD8Tn.6ICsQxyWdOprSwm', '2015-07-14 09:44:19', '2015-07-14 09:44:19', 980190962)
|
2012
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$IR2SdXmyPNd9Sqjb.tEXHObdxB5.pmyM4jkywpHT/CA6KBIGDu7PG', '2015-07-14 09:44:19', '2015-07-14 09:44:19', 298486374)[0m
|
2013
|
+
[1m[35m (1.5ms)[0m commit transaction
|
2014
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2015
|
+
------------------------------------------------------------------------------
|
2016
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2017
|
+
------------------------------------------------------------------------------
|
2018
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2019
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2020
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2021
|
+
-----------------------------------------------------------------
|
2022
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2023
|
+
-----------------------------------------------------------------
|
2024
|
+
Processing by ProtectedResourcesController#index as HTML
|
2025
|
+
Filter chain halted as :authenticate rendered or redirected
|
2026
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2027
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2028
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2029
|
+
-----------------------------------------------------------------------------
|
2030
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2031
|
+
-----------------------------------------------------------------------------
|
2032
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2033
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2034
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2035
|
+
-------------------------------------------------------
|
2036
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
2037
|
+
-------------------------------------------------------
|
2038
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2039
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2040
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2041
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2042
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2043
|
+
Completed 201 Created in 7ms (Views: 0.1ms | ActiveRecord: 0.2ms)
|
2044
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2045
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2046
|
+
------------------------------------------------------------------------------
|
2047
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2048
|
+
------------------------------------------------------------------------------
|
2049
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2050
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2051
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2052
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2053
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
2054
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2055
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2056
|
+
------------------------------------------------------------------------------
|
2057
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2058
|
+
------------------------------------------------------------------------------
|
2059
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2060
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2061
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
2062
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
2063
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2064
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2065
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2066
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
2067
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$791nfWycN8fjlpGHxeH1Lu.OiPp5czws4KnGwFRVOIwsWl3wooIMO', '2015-07-14 09:49:00', '2015-07-14 09:49:00', 980190962)
|
2068
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$E4Z8gIl7x31hwqx..xNBFu4U1vZq/wdwz.GJuKFOiRu3ONYa0/wOK', '2015-07-14 09:49:00', '2015-07-14 09:49:00', 298486374)[0m
|
2069
|
+
[1m[35m (1.5ms)[0m commit transaction
|
2070
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2071
|
+
-------------------------------------------------------
|
2072
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
2073
|
+
-------------------------------------------------------
|
2074
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2075
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2076
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2077
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2078
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2079
|
+
Completed 201 Created in 8ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
2080
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2081
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2082
|
+
------------------------------------------------------------------------------
|
2083
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2084
|
+
------------------------------------------------------------------------------
|
2085
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2086
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2087
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
2088
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
2089
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2090
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2091
|
+
------------------------------------------------------------------------------
|
2092
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2093
|
+
------------------------------------------------------------------------------
|
2094
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2095
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2096
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2097
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2098
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
2099
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2100
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2101
|
+
-----------------------------------------------------------------
|
2102
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2103
|
+
-----------------------------------------------------------------
|
2104
|
+
Processing by ProtectedResourcesController#index as HTML
|
2105
|
+
Filter chain halted as :authenticate rendered or redirected
|
2106
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2107
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2108
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2109
|
+
-----------------------------------------------------------------------------
|
2110
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2111
|
+
-----------------------------------------------------------------------------
|
2112
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2113
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2114
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2115
|
+
------------------------------------------------------------------------------
|
2116
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2117
|
+
------------------------------------------------------------------------------
|
2118
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2119
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2120
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2121
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2122
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "users"[0m
|
2123
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$a7Cws/UpIVJ..fyP7kySNuxwvMfKK4sh33ugN8jXERIIx5G3OFDxO', '2015-07-14 09:49:27', '2015-07-14 09:49:27', 980190962)
|
2124
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$VUhRv4SoLjch8vU2OKuFQuMtPPPoH9bQtID/Nkyf.8sZ0/M2z3GS2', '2015-07-14 09:49:27', '2015-07-14 09:49:27', 298486374)[0m
|
2125
|
+
[1m[35m (1.7ms)[0m commit transaction
|
2126
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2127
|
+
-------------------------------------------------------
|
2128
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
2129
|
+
-------------------------------------------------------
|
2130
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2131
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2132
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2133
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2134
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2135
|
+
Completed 201 Created in 8ms (Views: 0.1ms | ActiveRecord: 0.2ms)
|
2136
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2137
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2138
|
+
------------------------------------------------------------------------------
|
2139
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2140
|
+
------------------------------------------------------------------------------
|
2141
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2142
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2143
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2144
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2145
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
2146
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2147
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2148
|
+
------------------------------------------------------------------------------
|
2149
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2150
|
+
------------------------------------------------------------------------------
|
2151
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2152
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2153
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
2154
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
2155
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2156
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2157
|
+
------------------------------------------------------------------------------
|
2158
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2159
|
+
------------------------------------------------------------------------------
|
2160
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2161
|
+
Processing by ProtectedResourcesController#index as HTML
|
2162
|
+
Filter chain halted as :authenticate rendered or redirected
|
2163
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2164
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2165
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2166
|
+
-----------------------------------------------------------------
|
2167
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2168
|
+
-----------------------------------------------------------------
|
2169
|
+
Processing by ProtectedResourcesController#index as HTML
|
2170
|
+
Filter chain halted as :authenticate rendered or redirected
|
2171
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2172
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2173
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2174
|
+
-----------------------------------------------------------------------------
|
2175
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2176
|
+
-----------------------------------------------------------------------------
|
2177
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2178
|
+
Processing by ProtectedResourcesController#index as HTML
|
2179
|
+
Filter chain halted as :authenticate rendered or redirected
|
2180
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2181
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2182
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2183
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2184
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
2185
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$lyHFo2Vl/CCfeqawExKg2.uz3dfIwqbaoDSilZPZugaOt2ORDTmr.', '2015-07-14 09:54:33', '2015-07-14 09:54:33', 980190962)
|
2186
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$aM.fZe26Fp2z9fEZd.MQrucgkhLqA3fnP.JJeeEOFVFZnLB5QDyg.', '2015-07-14 09:54:33', '2015-07-14 09:54:33', 298486374)[0m
|
2187
|
+
[1m[35m (1.4ms)[0m commit transaction
|
2188
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2189
|
+
------------------------------------------------------------------------------
|
2190
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2191
|
+
------------------------------------------------------------------------------
|
2192
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2193
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2194
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
2195
|
+
Completed 404 Not Found in 7ms (ActiveRecord: 0.3ms)
|
2196
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2197
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2198
|
+
------------------------------------------------------------------------------
|
2199
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2200
|
+
------------------------------------------------------------------------------
|
2201
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2202
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2203
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2204
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2205
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
|
2206
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2208
|
+
-------------------------------------------------------
|
2209
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
2210
|
+
-------------------------------------------------------
|
2211
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2212
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2213
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2214
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2215
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2216
|
+
Completed 201 Created in 6ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
2217
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2218
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2219
|
+
-----------------------------------------------------------------
|
2220
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2221
|
+
-----------------------------------------------------------------
|
2222
|
+
Processing by ProtectedResourcesController#index as HTML
|
2223
|
+
Filter chain halted as :authenticate rendered or redirected
|
2224
|
+
Completed 401 Unauthorized in 167670ms (ActiveRecord: 0.0ms)
|
2225
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2226
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2227
|
+
-----------------------------------------------------------------------------
|
2228
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2229
|
+
-----------------------------------------------------------------------------
|
2230
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2231
|
+
Processing by ProtectedResourcesController#index as HTML
|
2232
|
+
Completed 500 Internal Server Error in 1330ms (ActiveRecord: 0.0ms)
|
2233
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2234
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2235
|
+
------------------------------------------------------------------------------
|
2236
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2237
|
+
------------------------------------------------------------------------------
|
2238
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2239
|
+
Processing by ProtectedResourcesController#index as HTML
|
2240
|
+
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
|
2241
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2242
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2243
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2244
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
2245
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$hJtLjYE9FwDQv4kjUxcX.eSnFUNQPgIBcYHt70TPW7QxC5/CMEu6W', '2015-07-14 09:57:25', '2015-07-14 09:57:25', 980190962)
|
2246
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$JGSu7/y/GOt8Tf4DG5xRC.n3gCBcRvtOnbwAlikcCgURKLg6Lwd/i', '2015-07-14 09:57:25', '2015-07-14 09:57:25', 298486374)[0m
|
2247
|
+
[1m[35m (1.4ms)[0m commit transaction
|
2248
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2249
|
+
------------------------------------------------------------------------------
|
2250
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2251
|
+
------------------------------------------------------------------------------
|
2252
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2253
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2254
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
2255
|
+
Completed 404 Not Found in 8ms (ActiveRecord: 0.3ms)
|
2256
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2257
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2258
|
+
------------------------------------------------------------------------------
|
2259
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2260
|
+
------------------------------------------------------------------------------
|
2261
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2262
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2263
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2264
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2265
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
2266
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2267
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2268
|
+
-------------------------------------------------------
|
2269
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
2270
|
+
-------------------------------------------------------
|
2271
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2272
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2273
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2274
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2275
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2276
|
+
Completed 201 Created in 7ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
2277
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2278
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2279
|
+
-----------------------------------------------------------------------------
|
2280
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2281
|
+
-----------------------------------------------------------------------------
|
2282
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2283
|
+
Processing by ProtectedResourcesController#index as HTML
|
2284
|
+
Filter chain halted as :authenticate rendered or redirected
|
2285
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2286
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2287
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2288
|
+
-----------------------------------------------------------------
|
2289
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2290
|
+
-----------------------------------------------------------------
|
2291
|
+
Processing by ProtectedResourcesController#index as HTML
|
2292
|
+
Filter chain halted as :authenticate rendered or redirected
|
2293
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2294
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2295
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2296
|
+
------------------------------------------------------------------------------
|
2297
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2298
|
+
------------------------------------------------------------------------------
|
2299
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2300
|
+
Processing by ProtectedResourcesController#index as HTML
|
2301
|
+
Filter chain halted as :authenticate rendered or redirected
|
2302
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2303
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2304
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2305
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2306
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
2307
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$GbR9SAAiHFcqIPISXmpLAuFp/yBJbBEM1gDiiBaLZJv1k0r/G3AF.', '2015-07-14 09:57:29', '2015-07-14 09:57:29', 980190962)
|
2308
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$ibfQYsn0dR.B/uABXUDsTuexKChbp1DegTHzIHKMt1qtvh3apHgLO', '2015-07-14 09:57:29', '2015-07-14 09:57:29', 298486374)[0m
|
2309
|
+
[1m[35m (1.6ms)[0m commit transaction
|
2310
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2311
|
+
-----------------------------------------------------------------------------
|
2312
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2313
|
+
-----------------------------------------------------------------------------
|
2314
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2315
|
+
Processing by ProtectedResourcesController#index as HTML
|
2316
|
+
Filter chain halted as :authenticate rendered or redirected
|
2317
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2318
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2319
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2320
|
+
------------------------------------------------------------------------------
|
2321
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2322
|
+
------------------------------------------------------------------------------
|
2323
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2324
|
+
Processing by ProtectedResourcesController#index as HTML
|
2325
|
+
Filter chain halted as :authenticate rendered or redirected
|
2326
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2327
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2328
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2329
|
+
-----------------------------------------------------------------
|
2330
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2331
|
+
-----------------------------------------------------------------
|
2332
|
+
Processing by ProtectedResourcesController#index as HTML
|
2333
|
+
Filter chain halted as :authenticate rendered or redirected
|
2334
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2335
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2336
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2337
|
+
------------------------------------------------------------------------------
|
2338
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2339
|
+
------------------------------------------------------------------------------
|
2340
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2341
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2342
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
2343
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
|
2344
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2345
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2346
|
+
------------------------------------------------------------------------------
|
2347
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2348
|
+
------------------------------------------------------------------------------
|
2349
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2350
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2351
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2352
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2353
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
2354
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2355
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2356
|
+
-------------------------------------------------------
|
2357
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
2358
|
+
-------------------------------------------------------
|
2359
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2360
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2361
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2362
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2363
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2364
|
+
Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
2365
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2366
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2367
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2368
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
2369
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Fh4WDMa1aHhCPMg/anKChOC7zLx8tJmK/Muywbq8usEreoIOvmDu.', '2015-07-14 09:57:58', '2015-07-14 09:57:58', 980190962)
|
2370
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$Q5.kiQjo4kfdfbR.ERdEtu1b2orRzId1o3Dz9smyZc9XW8/rof2cy', '2015-07-14 09:57:58', '2015-07-14 09:57:58', 298486374)[0m
|
2371
|
+
[1m[35m (1.4ms)[0m commit transaction
|
2372
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2373
|
+
-------------------------------------------------------
|
2374
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
2375
|
+
-------------------------------------------------------
|
2376
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2377
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2378
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2379
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2380
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2381
|
+
Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
2382
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2383
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2384
|
+
------------------------------------------------------------------------------
|
2385
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2386
|
+
------------------------------------------------------------------------------
|
2387
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2388
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2389
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
2390
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
2391
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2392
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2393
|
+
------------------------------------------------------------------------------
|
2394
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2395
|
+
------------------------------------------------------------------------------
|
2396
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2397
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2398
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2399
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2400
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
2401
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2402
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2403
|
+
------------------------------------------------------------------------------
|
2404
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2405
|
+
------------------------------------------------------------------------------
|
2406
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2407
|
+
Processing by ProtectedResourcesController#index as HTML
|
2408
|
+
Filter chain halted as :authenticate rendered or redirected
|
2409
|
+
Completed 401 Unauthorized in 8653ms (ActiveRecord: 0.0ms)
|
2410
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2411
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2412
|
+
-----------------------------------------------------------------------------
|
2413
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2414
|
+
-----------------------------------------------------------------------------
|
2415
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2416
|
+
Processing by ProtectedResourcesController#index as HTML
|
2417
|
+
Completed 500 Internal Server Error in 1348ms (ActiveRecord: 0.0ms)
|
2418
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2419
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2420
|
+
-----------------------------------------------------------------
|
2421
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2422
|
+
-----------------------------------------------------------------
|
2423
|
+
Processing by ProtectedResourcesController#index as HTML
|
2424
|
+
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
|
2425
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2426
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2427
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2428
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
2429
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$8QPk09BDkiAV21rnn64e4uCLpMqweND5Bvsusl8213qdBrcJc8nnK', '2015-07-14 09:58:11', '2015-07-14 09:58:11', 980190962)
|
2430
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$o27.PiXMx32Nphqql8wbLeCjGAC/1p44lJApGCQfaiUDRrurTO0nK', '2015-07-14 09:58:11', '2015-07-14 09:58:11', 298486374)[0m
|
2431
|
+
[1m[35m (1.5ms)[0m commit transaction
|
2432
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2433
|
+
------------------------------------------------------------------------------
|
2434
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2435
|
+
------------------------------------------------------------------------------
|
2436
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2437
|
+
Processing by ProtectedResourcesController#index as HTML
|
2438
|
+
Filter chain halted as :authenticate rendered or redirected
|
2439
|
+
Completed 401 Unauthorized in 12117ms (ActiveRecord: 0.0ms)
|
2440
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2441
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2442
|
+
-----------------------------------------------------------------------------
|
2443
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2444
|
+
-----------------------------------------------------------------------------
|
2445
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2446
|
+
Processing by ProtectedResourcesController#index as HTML
|
2447
|
+
Completed 500 Internal Server Error in 1218ms (ActiveRecord: 0.0ms)
|
2448
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2449
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2450
|
+
-----------------------------------------------------------------
|
2451
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2452
|
+
-----------------------------------------------------------------
|
2453
|
+
Processing by ProtectedResourcesController#index as HTML
|
2454
|
+
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
|
2455
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2456
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2457
|
+
-------------------------------------------------------
|
2458
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
2459
|
+
-------------------------------------------------------
|
2460
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2461
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2462
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2463
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2464
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2465
|
+
Completed 201 Created in 13ms (Views: 1.0ms | ActiveRecord: 0.7ms)
|
2466
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2467
|
+
[1m[35m (0.4ms)[0m begin transaction
|
2468
|
+
------------------------------------------------------------------------------
|
2469
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2470
|
+
------------------------------------------------------------------------------
|
2471
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2472
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2473
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2474
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2475
|
+
Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)
|
2476
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2477
|
+
[1m[35m (0.3ms)[0m begin transaction
|
2478
|
+
------------------------------------------------------------------------------
|
2479
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2480
|
+
------------------------------------------------------------------------------
|
2481
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2482
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2483
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
2484
|
+
Completed 404 Not Found in 3ms (ActiveRecord: 0.2ms)
|
2485
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2486
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2487
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2488
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "users"[0m
|
2489
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$30icEuDlg/u.knUkCtTPVeW50QrfbBFts0ux5E.3K3XH7Tg0Xb60u', '2015-07-14 09:58:28', '2015-07-14 09:58:28', 980190962)
|
2490
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$K75nfGIqxIfQB4Ep1FwS/.U2dys2DkVAVoaareLIZsSNEf42PvR0m', '2015-07-14 09:58:28', '2015-07-14 09:58:28', 298486374)[0m
|
2491
|
+
[1m[35m (1.5ms)[0m commit transaction
|
2492
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2493
|
+
------------------------------------------------------------------------------
|
2494
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2495
|
+
------------------------------------------------------------------------------
|
2496
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2497
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2498
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2499
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2500
|
+
Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)
|
2501
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2502
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2503
|
+
-------------------------------------------------------
|
2504
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
2505
|
+
-------------------------------------------------------
|
2506
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2507
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2508
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2509
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2510
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2511
|
+
Completed 201 Created in 6ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
2512
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2513
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2514
|
+
------------------------------------------------------------------------------
|
2515
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2516
|
+
------------------------------------------------------------------------------
|
2517
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2518
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2519
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
2520
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
2521
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2522
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2523
|
+
------------------------------------------------------------------------------
|
2524
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2525
|
+
------------------------------------------------------------------------------
|
2526
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2527
|
+
Processing by ProtectedResourcesController#index as HTML
|
2528
|
+
Completed 500 Internal Server Error in 18364ms (ActiveRecord: 0.0ms)
|
2529
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2530
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2531
|
+
-----------------------------------------------------------------
|
2532
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2533
|
+
-----------------------------------------------------------------
|
2534
|
+
Processing by ProtectedResourcesController#index as HTML
|
2535
|
+
Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
|
2536
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
2537
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2538
|
+
-----------------------------------------------------------------------------
|
2539
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2540
|
+
-----------------------------------------------------------------------------
|
2541
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2542
|
+
Processing by ProtectedResourcesController#index as HTML
|
2543
|
+
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
|
2544
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2545
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2546
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2547
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
2548
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Ij4cdRJPfT4nf9CIm3yGiuKAFa2YraWMK71EcsQjnOCPYuMUsJHpy', '2015-07-14 09:58:49', '2015-07-14 09:58:49', 980190962)
|
2549
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$e.LQk4qqV/I153tUdcR.teqtoIt7m/wAJcECYPlIpLlLbufMPmv.a', '2015-07-14 09:58:49', '2015-07-14 09:58:49', 298486374)[0m
|
2550
|
+
[1m[35m (1.6ms)[0m commit transaction
|
2551
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2552
|
+
------------------------------------------------------------------------------
|
2553
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2554
|
+
------------------------------------------------------------------------------
|
2555
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2556
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2557
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2558
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2559
|
+
Completed 404 Not Found in 3ms (ActiveRecord: 0.1ms)
|
2560
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2561
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2562
|
+
-------------------------------------------------------
|
2563
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
2564
|
+
-------------------------------------------------------
|
2565
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2566
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2567
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2568
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2569
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2570
|
+
Completed 201 Created in 6ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
2571
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2572
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2573
|
+
------------------------------------------------------------------------------
|
2574
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2575
|
+
------------------------------------------------------------------------------
|
2576
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2577
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2578
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
2579
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
2580
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2581
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2582
|
+
------------------------------------------------------------------------------
|
2583
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2584
|
+
------------------------------------------------------------------------------
|
2585
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2586
|
+
Processing by ProtectedResourcesController#index as HTML
|
2587
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2588
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
2589
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2590
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2591
|
+
-----------------------------------------------------------------------------
|
2592
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2593
|
+
-----------------------------------------------------------------------------
|
2594
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2595
|
+
Processing by ProtectedResourcesController#index as HTML
|
2596
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2597
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
2598
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2599
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2600
|
+
-----------------------------------------------------------------
|
2601
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2602
|
+
-----------------------------------------------------------------
|
2603
|
+
Processing by ProtectedResourcesController#index as HTML
|
2604
|
+
Completed 500 Internal Server Error in 20707ms (ActiveRecord: 0.0ms)
|
2605
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2606
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2607
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2608
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
2609
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$/lZC9Tz73CLfJx/OLDLQuut.pG4Fc8R2QBS20oPZ/aBxdWofLFFVy', '2015-07-14 09:59:19', '2015-07-14 09:59:19', 980190962)
|
2610
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$nvAOJgdod4co9IYZPR/9peeeagucdhdXdqxtvUQzBDNcWi7cdp94O', '2015-07-14 09:59:19', '2015-07-14 09:59:19', 298486374)[0m
|
2611
|
+
[1m[35m (0.7ms)[0m commit transaction
|
2612
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2613
|
+
-----------------------------------------------------------------------------
|
2614
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2615
|
+
-----------------------------------------------------------------------------
|
2616
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2617
|
+
Processing by ProtectedResourcesController#index as HTML
|
2618
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2619
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
|
2620
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2621
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2622
|
+
------------------------------------------------------------------------------
|
2623
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2624
|
+
------------------------------------------------------------------------------
|
2625
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2626
|
+
Processing by ProtectedResourcesController#index as HTML
|
2627
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2628
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
2629
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2630
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2631
|
+
-----------------------------------------------------------------
|
2632
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2633
|
+
-----------------------------------------------------------------
|
2634
|
+
Processing by ProtectedResourcesController#index as HTML
|
2635
|
+
Filter chain halted as :authenticate rendered or redirected
|
2636
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2637
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2638
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2639
|
+
------------------------------------------------------------------------------
|
2640
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2641
|
+
------------------------------------------------------------------------------
|
2642
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2643
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2644
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
2645
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
2646
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2647
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2648
|
+
-------------------------------------------------------
|
2649
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
2650
|
+
-------------------------------------------------------
|
2651
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2652
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2653
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2654
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2655
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2656
|
+
Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
2657
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2658
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2659
|
+
------------------------------------------------------------------------------
|
2660
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2661
|
+
------------------------------------------------------------------------------
|
2662
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2663
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2664
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2665
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2666
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
2667
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2668
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2669
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2670
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
2671
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$jVZ0gfA5x6ZQbs1R68b6EeUNdbzruollSeNpNIwJiVoJFCI27lU8S', '2015-07-14 10:00:01', '2015-07-14 10:00:01', 980190962)
|
2672
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$44z.XuqX65Cilb8bWy7XGubkp9pRPtE5tZ3ct0dC26wyYghQfcZCK', '2015-07-14 10:00:01', '2015-07-14 10:00:01', 298486374)[0m
|
2673
|
+
[1m[35m (1.4ms)[0m commit transaction
|
2674
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2675
|
+
------------------------------------------------------------------------------
|
2676
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2677
|
+
------------------------------------------------------------------------------
|
2678
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2679
|
+
Processing by ProtectedResourcesController#index as HTML
|
2680
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2681
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
|
2682
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2683
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2684
|
+
-----------------------------------------------------------------
|
2685
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2686
|
+
-----------------------------------------------------------------
|
2687
|
+
Processing by ProtectedResourcesController#index as HTML
|
2688
|
+
Filter chain halted as :authenticate rendered or redirected
|
2689
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2690
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2691
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2692
|
+
-----------------------------------------------------------------------------
|
2693
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2694
|
+
-----------------------------------------------------------------------------
|
2695
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2696
|
+
Processing by ProtectedResourcesController#index as HTML
|
2697
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2698
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
2699
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2700
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2701
|
+
------------------------------------------------------------------------------
|
2702
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2703
|
+
------------------------------------------------------------------------------
|
2704
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2705
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2706
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
|
2707
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
2708
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2709
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2710
|
+
------------------------------------------------------------------------------
|
2711
|
+
Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2712
|
+
------------------------------------------------------------------------------
|
2713
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2714
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2715
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2716
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2717
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
2718
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2719
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2720
|
+
-------------------------------------------------------
|
2721
|
+
Simsim::AuthTokenControllerTest: test_responds_with_201
|
2722
|
+
-------------------------------------------------------
|
2723
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2724
|
+
Processing by Simsim::AuthTokenController#create as HTML
|
2725
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2726
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2727
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2728
|
+
Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
2729
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2730
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2731
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2732
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "users"[0m
|
2733
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$cB2fM11QyxyFe/XRnHrxeOm4pFktN6SY2yLObbHfqJRGuZfp/P5wq', '2015-07-14 13:33:13', '2015-07-14 13:33:13', 980190962)
|
2734
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$3xfee/tpC.DjiQyujS6ts.gfyIz6ZcHf5QBGiTvXja.w/Xq85RrSu', '2015-07-14 13:33:13', '2015-07-14 13:33:13', 298486374)[0m
|
2735
|
+
[1m[35m (0.7ms)[0m commit transaction
|
2736
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2737
|
+
-----------------------------------------------------------------
|
2738
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2739
|
+
-----------------------------------------------------------------
|
2740
|
+
Processing by ProtectedResourcesController#index as HTML
|
2741
|
+
Filter chain halted as :authenticate rendered or redirected
|
2742
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2743
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2744
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2745
|
+
-----------------------------------------------------------------------------
|
2746
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2747
|
+
-----------------------------------------------------------------------------
|
2748
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2749
|
+
Processing by ProtectedResourcesController#index as HTML
|
2750
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2751
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.1ms)
|
2752
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2753
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2754
|
+
------------------------------------------------------------------------------
|
2755
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2756
|
+
------------------------------------------------------------------------------
|
2757
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2758
|
+
Processing by ProtectedResourcesController#index as HTML
|
2759
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2760
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
2761
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2762
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2763
|
+
------------------------------------------------------
|
2764
|
+
Knock::AuthTokenControllerTest: test_responds_with_201
|
2765
|
+
------------------------------------------------------
|
2766
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2767
|
+
Processing by Knock::AuthTokenController#create as HTML
|
2768
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2769
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2770
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2771
|
+
Completed 201 Created in 3ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
2772
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2773
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2774
|
+
-----------------------------------------------------------------------------
|
2775
|
+
Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2776
|
+
-----------------------------------------------------------------------------
|
2777
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2778
|
+
Processing by Knock::AuthTokenController#create as HTML
|
2779
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2780
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2781
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
|
2782
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2783
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2784
|
+
-----------------------------------------------------------------------------
|
2785
|
+
Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2786
|
+
-----------------------------------------------------------------------------
|
2787
|
+
Processing by Knock::AuthTokenController#create as HTML
|
2788
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2789
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
2790
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
2791
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2792
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2793
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2794
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "users"[0m
|
2795
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Kri6EKbnEszTuw6ZYCVUze/KkOymk02V.BWWyH.i2.greHXakm3k.', '2015-07-14 13:50:16', '2015-07-14 13:50:16', 980190962)
|
2796
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$Jqdb5DYf06NHlmaMKZ.HxeF/bAGs.pzl4rtkdNGGr1yDBG13t5HCe', '2015-07-14 13:50:16', '2015-07-14 13:50:16', 298486374)[0m
|
2797
|
+
[1m[35m (0.7ms)[0m commit transaction
|
2798
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2799
|
+
------------------------------------------------------
|
2800
|
+
Knock::AuthTokenControllerTest: test_responds_with_201
|
2801
|
+
------------------------------------------------------
|
2802
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2803
|
+
Processing by Knock::AuthTokenController#create as HTML
|
2804
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2805
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2806
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
|
2807
|
+
Completed 201 Created in 15ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
2808
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2809
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2810
|
+
-----------------------------------------------------------------------------
|
2811
|
+
Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
2812
|
+
-----------------------------------------------------------------------------
|
2813
|
+
Processing by Knock::AuthTokenController#create as HTML
|
2814
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
2815
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "wrong@example.net"]]
|
2816
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
2817
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2818
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2819
|
+
-----------------------------------------------------------------------------
|
2820
|
+
Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
2821
|
+
-----------------------------------------------------------------------------
|
2822
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2823
|
+
Processing by Knock::AuthTokenController#create as HTML
|
2824
|
+
Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
|
2825
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "one@example.net"]]
|
2826
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
|
2827
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2828
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2829
|
+
-----------------------------------------------------------------------------
|
2830
|
+
ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
|
2831
|
+
-----------------------------------------------------------------------------
|
2832
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2833
|
+
Processing by ProtectedResourcesController#index as HTML
|
2834
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2835
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
2836
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2837
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2838
|
+
-----------------------------------------------------------------
|
2839
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
2840
|
+
-----------------------------------------------------------------
|
2841
|
+
Processing by ProtectedResourcesController#index as HTML
|
2842
|
+
Filter chain halted as :authenticate rendered or redirected
|
2843
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
2844
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2845
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2846
|
+
------------------------------------------------------------------------------
|
2847
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
2848
|
+
------------------------------------------------------------------------------
|
2849
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
2850
|
+
Processing by ProtectedResourcesController#index as HTML
|
2851
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
2852
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
2853
|
+
[1m[35m (0.0ms)[0m rollback transaction
|