knock 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +37 -0
  4. data/app/controllers/knock/application_controller.rb +11 -0
  5. data/app/controllers/knock/auth_token_controller.rb +28 -0
  6. data/app/model/knock/auth_token.rb +31 -0
  7. data/config/routes.rb +3 -0
  8. data/lib/knock.rb +4 -0
  9. data/lib/knock/authenticable.rb +13 -0
  10. data/lib/knock/engine.rb +6 -0
  11. data/lib/knock/version.rb +3 -0
  12. data/lib/tasks/knock_tasks.rake +4 -0
  13. data/test/controllers/knock/auth_token_controller_test.rb +28 -0
  14. data/test/dummy/README.rdoc +28 -0
  15. data/test/dummy/Rakefile +6 -0
  16. data/test/dummy/app/assets/javascripts/application.js +13 -0
  17. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  18. data/test/dummy/app/controllers/application_controller.rb +7 -0
  19. data/test/dummy/app/controllers/protected_resources_controller.rb +7 -0
  20. data/test/dummy/app/helpers/application_helper.rb +2 -0
  21. data/test/dummy/app/models/user.rb +3 -0
  22. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  23. data/test/dummy/bin/bundle +3 -0
  24. data/test/dummy/bin/rails +4 -0
  25. data/test/dummy/bin/rake +4 -0
  26. data/test/dummy/bin/setup +29 -0
  27. data/test/dummy/config.ru +4 -0
  28. data/test/dummy/config/application.rb +26 -0
  29. data/test/dummy/config/boot.rb +5 -0
  30. data/test/dummy/config/database.yml +25 -0
  31. data/test/dummy/config/environment.rb +5 -0
  32. data/test/dummy/config/environments/development.rb +41 -0
  33. data/test/dummy/config/environments/production.rb +79 -0
  34. data/test/dummy/config/environments/test.rb +42 -0
  35. data/test/dummy/config/initializers/assets.rb +11 -0
  36. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  37. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  38. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  39. data/test/dummy/config/initializers/inflections.rb +16 -0
  40. data/test/dummy/config/initializers/mime_types.rb +4 -0
  41. data/test/dummy/config/initializers/session_store.rb +3 -0
  42. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  43. data/test/dummy/config/locales/en.yml +23 -0
  44. data/test/dummy/config/routes.rb +4 -0
  45. data/test/dummy/config/secrets.yml +22 -0
  46. data/test/dummy/db/migrate/20150713101607_create_users.rb +10 -0
  47. data/test/dummy/db/schema.rb +23 -0
  48. data/test/dummy/db/test.sqlite3 +0 -0
  49. data/test/dummy/log/test.log +2853 -0
  50. data/test/dummy/public/404.html +67 -0
  51. data/test/dummy/public/422.html +67 -0
  52. data/test/dummy/public/500.html +66 -0
  53. data/test/dummy/public/favicon.ico +0 -0
  54. data/test/dummy/test/controllers/protected_resources_controller_test.rb +27 -0
  55. data/test/dummy/test/fixtures/users.yml +9 -0
  56. data/test/dummy/test/models/user_test.rb +4 -0
  57. data/test/fixtures/users.yml +9 -0
  58. data/test/knock_test.rb +4 -0
  59. data/test/test_helper.rb +23 -0
  60. metadata +206 -0
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -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,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -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,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -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,4 @@
1
+ Rails.application.routes.draw do
2
+ resources :protected_resources
3
+ mount Knock::Engine => "/knock"
4
+ end
@@ -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,10 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.string :email, unique: true, null: false
5
+ t.string :password_digest, null: false
6
+
7
+ t.timestamps null: false
8
+ end
9
+ end
10
+ end
@@ -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
+  (1.1ms) CREATE 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) 
2
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
+  (0.1ms) select sqlite_version(*)
4
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.1ms) SELECT version FROM "schema_migrations"
6
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713101607')
7
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
+  (0.1ms) begin transaction
9
+ Fixture Delete (0.2ms) DELETE FROM "users"
10
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
12
+  (1.1ms) commit transaction
13
+  (0.0ms) begin transaction
14
+ ------------------------------------------------------------------------------
15
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
16
+ ------------------------------------------------------------------------------
17
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
18
+ Processing by ProtectedResourcesController#index as HTML
19
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
20
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
21
+  (0.1ms) rollback transaction
22
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
30
+  (0.1ms) begin transaction
31
+ -----------------------------------------------------------------------------
32
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
33
+ -----------------------------------------------------------------------------
34
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
35
+ Processing by ProtectedResourcesController#index as HTML
36
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
37
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
38
+  (0.1ms) rollback transaction
39
+  (0.0ms) begin transaction
40
+ -------------------------------------------------------
41
+ Simsim::AuthTokenControllerTest: test_responds_with_201
42
+ -------------------------------------------------------
43
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
47
+ User Load (0.0ms) 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
+  (0.0ms) rollback transaction
50
+  (0.0ms) begin transaction
51
+ ------------------------------------------------------------------------------
52
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
53
+ ------------------------------------------------------------------------------
54
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
55
+ Processing by Simsim::AuthTokenController#create as HTML
56
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
57
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
58
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
59
+  (0.0ms) rollback transaction
60
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
67
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
68
+  (0.0ms) rollback transaction
69
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
70
+  (0.1ms) begin transaction
71
+ Fixture Delete (0.2ms) DELETE FROM "users"
72
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
74
+  (1.4ms) commit transaction
75
+  (0.1ms) begin transaction
76
+ ------------------------------------------------------------------------------
77
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
78
+ ------------------------------------------------------------------------------
79
+  (0.1ms) rollback transaction
80
+  (0.0ms) begin transaction
81
+ ------------------------------------------------------------------------------
82
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
83
+ ------------------------------------------------------------------------------
84
+  (0.0ms) rollback transaction
85
+  (0.0ms) begin transaction
86
+ -------------------------------------------------------
87
+ Simsim::AuthTokenControllerTest: test_responds_with_201
88
+ -------------------------------------------------------
89
+  (0.0ms) rollback transaction
90
+  (0.0ms) begin transaction
91
+ ------------------------------------------------------------------------------
92
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
93
+ ------------------------------------------------------------------------------
94
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
95
+ Processing by ProtectedResourcesController#index as HTML
96
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
97
+ Completed 200 OK in 2ms (ActiveRecord: 0.0ms)
98
+  (0.1ms) rollback transaction
99
+  (0.1ms) begin transaction
100
+ -----------------------------------------------------------------------------
101
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
102
+ -----------------------------------------------------------------------------
103
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
104
+ Processing by ProtectedResourcesController#index as HTML
105
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
106
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
107
+  (0.0ms) rollback transaction
108
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
116
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
117
+  (0.1ms) begin transaction
118
+ Fixture Delete (0.2ms) DELETE FROM "users"
119
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
121
+  (1.4ms) commit transaction
122
+  (0.1ms) begin transaction
123
+ ------------------------------------------------------------------------------
124
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
125
+ ------------------------------------------------------------------------------
126
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
127
+ Processing by ProtectedResourcesController#index as HTML
128
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
129
+ Completed 200 OK in 3ms (ActiveRecord: 0.1ms)
130
+  (0.1ms) rollback transaction
131
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
139
+  (0.0ms) begin transaction
140
+ -----------------------------------------------------------------------------
141
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
142
+ -----------------------------------------------------------------------------
143
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
144
+ Processing by ProtectedResourcesController#index as HTML
145
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
146
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
147
+  (0.1ms) rollback transaction
148
+  (0.0ms) begin transaction
149
+ ------------------------------------------------------------------------------
150
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
151
+ ------------------------------------------------------------------------------
152
+  (0.1ms) rollback transaction
153
+  (0.0ms) begin transaction
154
+ -------------------------------------------------------
155
+ Simsim::AuthTokenControllerTest: test_responds_with_201
156
+ -------------------------------------------------------
157
+  (0.1ms) rollback transaction
158
+  (0.0ms) begin transaction
159
+ ------------------------------------------------------------------------------
160
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
161
+ ------------------------------------------------------------------------------
162
+  (0.1ms) rollback transaction
163
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
164
+  (0.1ms) begin transaction
165
+ Fixture Delete (0.3ms) DELETE FROM "users"
166
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
168
+  (1.1ms) commit transaction
169
+  (0.1ms) begin transaction
170
+ ------------------------------------------------------------------------------
171
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
172
+ ------------------------------------------------------------------------------
173
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
174
+ Processing by ProtectedResourcesController#index as HTML
175
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
176
+ Completed 200 OK in 3ms (ActiveRecord: 0.1ms)
177
+  (0.1ms) rollback transaction
178
+  (0.1ms) begin transaction
179
+ -----------------------------------------------------------------------------
180
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
181
+ -----------------------------------------------------------------------------
182
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
183
+ Processing by ProtectedResourcesController#index as HTML
184
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
185
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
186
+  (0.1ms) rollback transaction
187
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
195
+  (0.0ms) begin transaction
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
202
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
203
+  (0.0ms) rollback transaction
204
+  (0.1ms) begin transaction
205
+ ------------------------------------------------------------------------------
206
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
207
+ ------------------------------------------------------------------------------
208
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
209
+ Processing by Simsim::AuthTokenController#create as HTML
210
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
211
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
212
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
213
+  (0.1ms) rollback transaction
214
+  (0.0ms) begin transaction
215
+ -------------------------------------------------------
216
+ Simsim::AuthTokenControllerTest: test_responds_with_201
217
+ -------------------------------------------------------
218
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
219
+ Processing by Simsim::AuthTokenController#create as HTML
220
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
221
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
222
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
223
+ Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
224
+  (0.1ms) rollback transaction
225
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
226
+  (0.1ms) begin transaction
227
+ Fixture Delete (0.8ms) DELETE FROM "users"
228
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
230
+  (1.4ms) commit transaction
231
+  (0.1ms) begin transaction
232
+ ------------------------------------------------------------------------------
233
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
234
+ ------------------------------------------------------------------------------
235
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
236
+ Processing by ProtectedResourcesController#index as HTML
237
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
238
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
239
+  (0.1ms) rollback transaction
240
+  (0.0ms) begin transaction
241
+ -----------------------------------------------------------------------------
242
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
243
+ -----------------------------------------------------------------------------
244
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
245
+ Processing by ProtectedResourcesController#index as HTML
246
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
247
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
248
+  (0.0ms) rollback transaction
249
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
257
+  (0.1ms) begin transaction
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
264
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
265
+  (0.1ms) rollback transaction
266
+  (0.0ms) begin transaction
267
+ ------------------------------------------------------------------------------
268
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
269
+ ------------------------------------------------------------------------------
270
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
271
+ Processing by Simsim::AuthTokenController#create as HTML
272
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
273
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
274
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
275
+  (0.0ms) rollback transaction
276
+  (0.1ms) begin transaction
277
+ -------------------------------------------------------
278
+ Simsim::AuthTokenControllerTest: test_responds_with_201
279
+ -------------------------------------------------------
280
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
281
+ Processing by Simsim::AuthTokenController#create as HTML
282
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
283
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
284
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
285
+ Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
286
+  (0.0ms) rollback transaction
287
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
288
+  (0.1ms) begin transaction
289
+ Fixture Delete (0.2ms) DELETE FROM "users"
290
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
292
+  (1.4ms) commit transaction
293
+  (0.1ms) begin transaction
294
+ -------------------------------------------------------
295
+ Simsim::AuthTokenControllerTest: test_responds_with_201
296
+ -------------------------------------------------------
297
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
301
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
304
+  (0.1ms) begin transaction
305
+ ------------------------------------------------------------------------------
306
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
307
+ ------------------------------------------------------------------------------
308
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
309
+ Processing by Simsim::AuthTokenController#create as HTML
310
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
311
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
312
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
313
+  (0.1ms) rollback transaction
314
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
321
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
322
+  (0.0ms) rollback transaction
323
+  (0.0ms) begin transaction
324
+ -----------------------------------------------------------------------------
325
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
326
+ -----------------------------------------------------------------------------
327
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
328
+ Processing by ProtectedResourcesController#index as HTML
329
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
330
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
331
+  (0.1ms) rollback transaction
332
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
340
+  (0.1ms) begin transaction
341
+ ------------------------------------------------------------------------------
342
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
343
+ ------------------------------------------------------------------------------
344
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
345
+ Processing by ProtectedResourcesController#index as HTML
346
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
347
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
348
+  (0.0ms) rollback transaction
349
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
350
+  (0.1ms) begin transaction
351
+ Fixture Delete (0.3ms) DELETE FROM "users"
352
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
354
+  (1.7ms) commit transaction
355
+  (0.1ms) begin transaction
356
+ -------------------------------------------------------
357
+ Simsim::AuthTokenControllerTest: test_responds_with_201
358
+ -------------------------------------------------------
359
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
363
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
364
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
365
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
366
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
367
+ User Load (0.3ms) 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
+  (0.3ms) rollback transaction
370
+  (0.2ms) begin transaction
371
+ ------------------------------------------------------------------------------
372
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
373
+ ------------------------------------------------------------------------------
374
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
375
+ Processing by Simsim::AuthTokenController#create as HTML
376
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
377
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
378
+ Completed 404 Not Found in 6ms (ActiveRecord: 0.3ms)
379
+  (0.2ms) rollback transaction
380
+  (0.3ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
387
+ Completed 404 Not Found in 3ms (ActiveRecord: 0.2ms)
388
+  (0.2ms) rollback transaction
389
+  (0.2ms) begin transaction
390
+ ------------------------------------------------------------------------------
391
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
392
+ ------------------------------------------------------------------------------
393
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
394
+ Processing by ProtectedResourcesController#index as HTML
395
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
396
+ Completed 200 OK in 5ms (ActiveRecord: 0.2ms)
397
+  (0.2ms) rollback transaction
398
+  (0.3ms) begin transaction
399
+ -----------------------------------------------------------------------------
400
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
401
+ -----------------------------------------------------------------------------
402
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
403
+ Processing by ProtectedResourcesController#index as HTML
404
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
405
+ Completed 200 OK in 3ms (ActiveRecord: 0.2ms)
406
+  (0.3ms) rollback transaction
407
+  (0.2ms) begin transaction
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
+  (0.3ms) rollback transaction
415
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
416
+  (0.1ms) begin transaction
417
+ Fixture Delete (0.3ms) DELETE FROM "users"
418
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
420
+  (8.3ms) commit transaction
421
+  (0.3ms) begin transaction
422
+ -------------------------------------------------------
423
+ Simsim::AuthTokenControllerTest: test_responds_with_201
424
+ -------------------------------------------------------
425
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
429
+ User Load (0.0ms) 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
+  (0.0ms) rollback transaction
432
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
439
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
440
+  (0.0ms) rollback transaction
441
+  (0.1ms) begin transaction
442
+ ------------------------------------------------------------------------------
443
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
444
+ ------------------------------------------------------------------------------
445
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
449
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
450
+  (0.0ms) rollback transaction
451
+  (0.0ms) begin transaction
452
+ ------------------------------------------------------------------------------
453
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
454
+ ------------------------------------------------------------------------------
455
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
456
+ Processing by ProtectedResourcesController#index as HTML
457
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
458
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
459
+  (0.1ms) rollback transaction
460
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
468
+  (0.1ms) begin transaction
469
+ -----------------------------------------------------------------------------
470
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
471
+ -----------------------------------------------------------------------------
472
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
473
+ Processing by ProtectedResourcesController#index as HTML
474
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
475
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
476
+  (0.0ms) rollback transaction
477
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
478
+  (0.1ms) begin transaction
479
+ Fixture Delete (0.8ms) DELETE FROM "users"
480
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
482
+  (1.4ms) commit transaction
483
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
490
+ Completed 404 Not Found in 6ms (ActiveRecord: 0.2ms)
491
+  (0.1ms) rollback transaction
492
+  (0.0ms) begin transaction
493
+ ------------------------------------------------------------------------------
494
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
495
+ ------------------------------------------------------------------------------
496
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
497
+ Processing by Simsim::AuthTokenController#create as HTML
498
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
499
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
500
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
501
+  (0.0ms) rollback transaction
502
+  (0.0ms) begin transaction
503
+ -------------------------------------------------------
504
+ Simsim::AuthTokenControllerTest: test_responds_with_201
505
+ -------------------------------------------------------
506
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
507
+ Processing by Simsim::AuthTokenController#create as HTML
508
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
509
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
510
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
511
+ Completed 201 Created in 3ms (Views: 0.1ms | ActiveRecord: 0.1ms)
512
+  (0.0ms) rollback transaction
513
+  (0.0ms) begin transaction
514
+ ------------------------------------------------------------------------------
515
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
516
+ ------------------------------------------------------------------------------
517
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
518
+ Processing by ProtectedResourcesController#index as HTML
519
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
520
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
521
+  (0.0ms) rollback transaction
522
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
530
+  (0.1ms) begin transaction
531
+ -----------------------------------------------------------------------------
532
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
533
+ -----------------------------------------------------------------------------
534
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
535
+ Processing by ProtectedResourcesController#index as HTML
536
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
537
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
538
+  (0.0ms) rollback transaction
539
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
540
+  (0.1ms) begin transaction
541
+ Fixture Delete (0.3ms) DELETE FROM "users"
542
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
544
+  (1.7ms) commit transaction
545
+  (0.1ms) begin transaction
546
+ -----------------------------------------------------------------------------
547
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
548
+ -----------------------------------------------------------------------------
549
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
550
+ Processing by ProtectedResourcesController#index as HTML
551
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
552
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
553
+  (0.1ms) rollback transaction
554
+  (0.1ms) begin transaction
555
+ ------------------------------------------------------------------------------
556
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
557
+ ------------------------------------------------------------------------------
558
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
559
+ Processing by ProtectedResourcesController#index as HTML
560
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
561
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
562
+  (0.0ms) rollback transaction
563
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
571
+  (0.0ms) begin transaction
572
+ ------------------------------------------------------------------------------
573
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
574
+ ------------------------------------------------------------------------------
575
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
579
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
580
+  (0.0ms) rollback transaction
581
+  (0.1ms) begin transaction
582
+ -------------------------------------------------------
583
+ Simsim::AuthTokenControllerTest: test_responds_with_201
584
+ -------------------------------------------------------
585
+ User Load (0.0ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
589
+ User Load (0.0ms) 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
+  (0.0ms) rollback transaction
592
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
599
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
600
+  (0.0ms) rollback transaction
601
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
602
+  (0.1ms) begin transaction
603
+ Fixture Delete (0.2ms) DELETE FROM "users"
604
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
606
+  (1.7ms) commit transaction
607
+  (0.1ms) begin transaction
608
+ ------------------------------------------------------------------------------
609
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
610
+ ------------------------------------------------------------------------------
611
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
612
+ Processing by ProtectedResourcesController#index as HTML
613
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
614
+ Completed 200 OK in 2ms (ActiveRecord: 0.0ms)
615
+  (0.1ms) rollback transaction
616
+  (0.1ms) begin transaction
617
+ -----------------------------------------------------------------------------
618
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
619
+ -----------------------------------------------------------------------------
620
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
621
+ Processing by ProtectedResourcesController#index as HTML
622
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
623
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
624
+  (0.0ms) rollback transaction
625
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
633
+  (0.0ms) begin transaction
634
+ -------------------------------------------------------
635
+ Simsim::AuthTokenControllerTest: test_responds_with_201
636
+ -------------------------------------------------------
637
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
641
+ User Load (0.0ms) 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
+  (0.0ms) rollback transaction
644
+  (0.0ms) begin transaction
645
+ ------------------------------------------------------------------------------
646
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
647
+ ------------------------------------------------------------------------------
648
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
649
+ Processing by Simsim::AuthTokenController#create as HTML
650
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
651
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
652
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
653
+  (0.0ms) rollback transaction
654
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
661
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
662
+  (0.0ms) rollback transaction
663
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
664
+  (0.1ms) begin transaction
665
+ Fixture Delete (0.2ms) DELETE FROM "users"
666
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
668
+  (1.4ms) commit transaction
669
+  (0.1ms) begin transaction
670
+ ------------------------------------------------------------------------------
671
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
672
+ ------------------------------------------------------------------------------
673
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
674
+ Processing by ProtectedResourcesController#index as HTML
675
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
676
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
677
+  (0.1ms) rollback transaction
678
+  (0.1ms) begin transaction
679
+ -----------------------------------------------------------------------------
680
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
681
+ -----------------------------------------------------------------------------
682
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
683
+ Processing by ProtectedResourcesController#index as HTML
684
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
685
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
686
+  (0.0ms) rollback transaction
687
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
695
+  (0.0ms) begin transaction
696
+ ------------------------------------------------------------------------------
697
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
698
+ ------------------------------------------------------------------------------
699
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
703
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
704
+  (0.0ms) rollback transaction
705
+  (0.1ms) begin transaction
706
+ -------------------------------------------------------
707
+ Simsim::AuthTokenControllerTest: test_responds_with_201
708
+ -------------------------------------------------------
709
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
713
+ User Load (0.0ms) 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
+  (0.0ms) rollback transaction
716
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
723
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
724
+  (0.0ms) rollback transaction
725
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
726
+  (0.1ms) begin transaction
727
+ Fixture Delete (0.2ms) DELETE FROM "users"
728
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
730
+  (1.0ms) commit transaction
731
+  (0.1ms) begin transaction
732
+ -------------------------------------------------------
733
+ Simsim::AuthTokenControllerTest: test_responds_with_201
734
+ -------------------------------------------------------
735
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
739
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
742
+  (0.0ms) begin transaction
743
+ ------------------------------------------------------------------------------
744
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
745
+ ------------------------------------------------------------------------------
746
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
747
+ Processing by Simsim::AuthTokenController#create as HTML
748
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
749
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
750
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
751
+  (0.0ms) rollback transaction
752
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
759
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
760
+  (0.0ms) rollback transaction
761
+  (0.0ms) begin transaction
762
+ ------------------------------------------------------------------------------
763
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
764
+ ------------------------------------------------------------------------------
765
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
766
+ Processing by ProtectedResourcesController#index as HTML
767
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
768
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
769
+  (0.1ms) rollback transaction
770
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
778
+  (0.0ms) begin transaction
779
+ -----------------------------------------------------------------------------
780
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
781
+ -----------------------------------------------------------------------------
782
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
783
+ Processing by ProtectedResourcesController#index as HTML
784
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
785
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
786
+  (0.0ms) rollback transaction
787
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
788
+  (0.1ms) begin transaction
789
+ Fixture Delete (0.3ms) DELETE FROM "users"
790
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
792
+  (1.6ms) commit transaction
793
+  (0.1ms) begin transaction
794
+ -------------------------------------------------------
795
+ Simsim::AuthTokenControllerTest: test_responds_with_201
796
+ -------------------------------------------------------
797
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
801
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
804
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
811
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
812
+  (0.1ms) rollback transaction
813
+  (0.0ms) begin transaction
814
+ ------------------------------------------------------------------------------
815
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
816
+ ------------------------------------------------------------------------------
817
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
821
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
822
+  (0.1ms) rollback transaction
823
+  (0.0ms) begin transaction
824
+ ------------------------------------------------------------------------------
825
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
826
+ ------------------------------------------------------------------------------
827
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
828
+ Processing by ProtectedResourcesController#index as HTML
829
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
830
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
831
+  (0.1ms) rollback transaction
832
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
840
+  (0.0ms) begin transaction
841
+ -----------------------------------------------------------------------------
842
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
843
+ -----------------------------------------------------------------------------
844
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
845
+ Processing by ProtectedResourcesController#index as HTML
846
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
847
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
848
+  (0.0ms) rollback transaction
849
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
850
+  (0.1ms) begin transaction
851
+ Fixture Delete (0.2ms) DELETE FROM "users"
852
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
854
+  (1.5ms) commit transaction
855
+  (0.1ms) begin transaction
856
+ ------------------------------------------------------------------------------
857
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
858
+ ------------------------------------------------------------------------------
859
+  (0.1ms) rollback transaction
860
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
867
+  (0.1ms) begin transaction
868
+ -----------------------------------------------------------------------------
869
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
870
+ -----------------------------------------------------------------------------
871
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
872
+  (0.1ms) rollback transaction
873
+  (0.0ms) begin transaction
874
+ -------------------------------------------------------
875
+ Simsim::AuthTokenControllerTest: test_responds_with_201
876
+ -------------------------------------------------------
877
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
878
+ Processing by Simsim::AuthTokenController#create as HTML
879
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
880
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
881
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
882
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
883
+  (0.0ms) rollback transaction
884
+  (0.1ms) begin transaction
885
+ ------------------------------------------------------------------------------
886
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
887
+ ------------------------------------------------------------------------------
888
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
892
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
893
+  (0.0ms) rollback transaction
894
+  (0.0ms) begin transaction
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
901
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
902
+  (0.0ms) rollback transaction
903
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
904
+  (0.1ms) begin transaction
905
+ Fixture Delete (0.2ms) DELETE FROM "users"
906
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
908
+  (1.7ms) commit transaction
909
+  (0.1ms) begin transaction
910
+ ------------------------------------------------------------------------------
911
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
912
+ ------------------------------------------------------------------------------
913
+  (0.1ms) rollback transaction
914
+  (0.1ms) begin transaction
915
+ ------------------------------------------------------------------------------
916
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
917
+ ------------------------------------------------------------------------------
918
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
922
+ Completed 404 Not Found in 4ms (ActiveRecord: 0.1ms)
923
+  (0.1ms) rollback transaction
924
+  (0.1ms) begin transaction
925
+ -------------------------------------------------------
926
+ Simsim::AuthTokenControllerTest: test_responds_with_201
927
+ -------------------------------------------------------
928
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
932
+ User Load (0.0ms) 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
+  (0.0ms) rollback transaction
935
+  (0.1ms) begin transaction
936
+ ------------------------------------------------------------------------------
937
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
938
+ ------------------------------------------------------------------------------
939
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
940
+  (0.0ms) rollback transaction
941
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
949
+  (0.0ms) begin transaction
950
+ -----------------------------------------------------------------------------
951
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
952
+ -----------------------------------------------------------------------------
953
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
954
+  (0.0ms) rollback transaction
955
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
956
+  (0.1ms) begin transaction
957
+ Fixture Delete (0.2ms) DELETE FROM "users"
958
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
960
+  (1.5ms) commit transaction
961
+  (0.1ms) begin transaction
962
+ ------------------------------------------------------------------------------
963
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
964
+ ------------------------------------------------------------------------------
965
+  (0.1ms) rollback transaction
966
+  (0.1ms) begin transaction
967
+ -----------------------------------------------------------------------------
968
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
969
+ -----------------------------------------------------------------------------
970
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
971
+  (0.1ms) rollback transaction
972
+  (0.0ms) 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
+  (0.1ms) rollback transaction
979
+  (0.0ms) begin transaction
980
+ -------------------------------------------------------
981
+ Simsim::AuthTokenControllerTest: test_responds_with_201
982
+ -------------------------------------------------------
983
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
984
+ Processing by Simsim::AuthTokenController#create as HTML
985
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
986
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
987
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
988
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
989
+  (0.1ms) rollback transaction
990
+  (0.1ms) begin transaction
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
997
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
998
+  (0.0ms) rollback transaction
999
+  (0.1ms) begin transaction
1000
+ ------------------------------------------------------------------------------
1001
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1002
+ ------------------------------------------------------------------------------
1003
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1004
+ Processing by Simsim::AuthTokenController#create as HTML
1005
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1006
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1007
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
1008
+  (0.0ms) rollback transaction
1009
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1010
+  (0.1ms) begin transaction
1011
+ Fixture Delete (0.3ms) DELETE FROM "users"
1012
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1014
+  (1.7ms) commit transaction
1015
+  (0.1ms) begin transaction
1016
+ ------------------------------------------------------------------------------
1017
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1018
+ ------------------------------------------------------------------------------
1019
+  (0.1ms) rollback transaction
1020
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
1027
+  (0.0ms) begin transaction
1028
+ -----------------------------------------------------------------------------
1029
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1030
+ -----------------------------------------------------------------------------
1031
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1032
+  (0.0ms) rollback transaction
1033
+  (0.0ms) begin transaction
1034
+ -------------------------------------------------------
1035
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1036
+ -------------------------------------------------------
1037
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1038
+ Processing by Simsim::AuthTokenController#create as HTML
1039
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1040
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1041
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1042
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
1043
+  (0.0ms) rollback transaction
1044
+  (0.0ms) begin transaction
1045
+ ------------------------------------------------------------------------------
1046
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1047
+ ------------------------------------------------------------------------------
1048
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1052
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
1053
+  (0.0ms) rollback transaction
1054
+  (0.1ms) begin transaction
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1061
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
1062
+  (0.1ms) rollback transaction
1063
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1064
+  (0.1ms) begin transaction
1065
+ Fixture Delete (0.3ms) DELETE FROM "users"
1066
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1068
+  (1.4ms) commit transaction
1069
+  (0.1ms) begin transaction
1070
+ -------------------------------------------------------
1071
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1072
+ -------------------------------------------------------
1073
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1077
+ User Load (0.1ms) 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
+  (0.1ms) rollback transaction
1080
+  (0.0ms) begin transaction
1081
+ ------------------------------------------------------------------------------
1082
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1083
+ ------------------------------------------------------------------------------
1084
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1085
+ Processing by Simsim::AuthTokenController#create as HTML
1086
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1087
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1088
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
1089
+  (0.0ms) rollback transaction
1090
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1097
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
1098
+  (0.0ms) rollback transaction
1099
+  (0.0ms) begin transaction
1100
+ -----------------------------------------------------------------------------
1101
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1102
+ -----------------------------------------------------------------------------
1103
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1104
+ Processing by ProtectedResourcesController#index as HTML
1105
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1106
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
1107
+  (0.0ms) rollback transaction
1108
+  (0.1ms) begin transaction
1109
+ ------------------------------------------------------------------------------
1110
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1111
+ ------------------------------------------------------------------------------
1112
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1113
+ Processing by ProtectedResourcesController#index as HTML
1114
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1115
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
1116
+  (0.0ms) rollback transaction
1117
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
1125
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1126
+  (0.1ms) begin transaction
1127
+ Fixture Delete (0.6ms) DELETE FROM "users"
1128
+ Fixture Insert (0.4ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1130
+  (0.6ms) commit transaction
1131
+  (0.0ms) begin transaction
1132
+ -----------------------------------------------------------------------------
1133
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1134
+ -----------------------------------------------------------------------------
1135
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1136
+ Processing by ProtectedResourcesController#index as HTML
1137
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1138
+ Completed 200 OK in 10ms (ActiveRecord: 0.1ms)
1139
+  (1.6ms) rollback transaction
1140
+  (0.1ms) begin transaction
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
+  (0.3ms) rollback transaction
1148
+  (0.2ms) begin transaction
1149
+ ------------------------------------------------------------------------------
1150
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1151
+ ------------------------------------------------------------------------------
1152
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1153
+ Processing by ProtectedResourcesController#index as HTML
1154
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1155
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
1156
+  (0.1ms) rollback transaction
1157
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1164
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
1165
+  (0.0ms) rollback transaction
1166
+  (0.1ms) begin transaction
1167
+ ------------------------------------------------------------------------------
1168
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1169
+ ------------------------------------------------------------------------------
1170
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1171
+ Processing by Simsim::AuthTokenController#create as HTML
1172
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1173
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1174
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
1175
+  (0.1ms) rollback transaction
1176
+  (0.0ms) begin transaction
1177
+ -------------------------------------------------------
1178
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1179
+ -------------------------------------------------------
1180
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1181
+ Processing by Simsim::AuthTokenController#create as HTML
1182
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1183
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1184
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1185
+ Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1186
+  (0.1ms) rollback transaction
1187
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1188
+  (0.1ms) begin transaction
1189
+ Fixture Delete (0.3ms) DELETE FROM "users"
1190
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1192
+  (0.9ms) commit transaction
1193
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
1201
+  (0.0ms) begin transaction
1202
+ -----------------------------------------------------------------------------
1203
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1204
+ -----------------------------------------------------------------------------
1205
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1206
+ Processing by ProtectedResourcesController#index as HTML
1207
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1208
+ Completed 200 OK in 2ms (ActiveRecord: 0.0ms)
1209
+  (0.1ms) rollback transaction
1210
+  (0.1ms) begin transaction
1211
+ ------------------------------------------------------------------------------
1212
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1213
+ ------------------------------------------------------------------------------
1214
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1215
+ Processing by ProtectedResourcesController#index as HTML
1216
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1217
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
1218
+  (0.0ms) rollback transaction
1219
+  (0.0ms) begin transaction
1220
+ -------------------------------------------------------
1221
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1222
+ -------------------------------------------------------
1223
+  (0.0ms) rollback transaction
1224
+  (0.0ms) begin transaction
1225
+ ------------------------------------------------------------------------------
1226
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
1227
+ ------------------------------------------------------------------------------
1228
+  (0.0ms) rollback transaction
1229
+  (0.0ms) begin transaction
1230
+ ------------------------------------------------------------------------------
1231
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1232
+ ------------------------------------------------------------------------------
1233
+  (0.0ms) rollback transaction
1234
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1235
+  (0.1ms) begin transaction
1236
+ Fixture Delete (0.3ms) DELETE FROM "users"
1237
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1239
+  (1.7ms) commit transaction
1240
+  (0.1ms) begin transaction
1241
+ -------------------------------------------------------
1242
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1243
+ -------------------------------------------------------
1244
+  (0.1ms) rollback transaction
1245
+  (0.1ms) begin transaction
1246
+ ------------------------------------------------------------------------------
1247
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1248
+ ------------------------------------------------------------------------------
1249
+  (0.0ms) rollback transaction
1250
+  (0.0ms) begin transaction
1251
+ ------------------------------------------------------------------------------
1252
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
1253
+ ------------------------------------------------------------------------------
1254
+  (0.0ms) rollback transaction
1255
+  (0.0ms) begin transaction
1256
+ ------------------------------------------------------------------------------
1257
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1258
+ ------------------------------------------------------------------------------
1259
+  (0.1ms) rollback transaction
1260
+  (0.0ms) begin transaction
1261
+ -----------------------------------------------------------------------------
1262
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1263
+ -----------------------------------------------------------------------------
1264
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1265
+  (0.1ms) rollback transaction
1266
+  (0.0ms) 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
+  (0.1ms) rollback transaction
1273
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1274
+  (0.1ms) begin transaction
1275
+ Fixture Delete (0.3ms) DELETE FROM "users"
1276
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1278
+  (1.4ms) commit transaction
1279
+  (0.1ms) begin transaction
1280
+ -------------------------------------------------------
1281
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1282
+ -------------------------------------------------------
1283
+  (0.0ms) rollback transaction
1284
+  (0.0ms) begin transaction
1285
+ ------------------------------------------------------------------------------
1286
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1287
+ ------------------------------------------------------------------------------
1288
+  (0.1ms) rollback transaction
1289
+  (0.0ms) begin transaction
1290
+ ------------------------------------------------------------------------------
1291
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
1292
+ ------------------------------------------------------------------------------
1293
+  (0.0ms) rollback transaction
1294
+  (0.0ms) begin transaction
1295
+ -----------------------------------------------------------------
1296
+ ProtectedResourcesControllerTest: test_responds_with_unauthorized
1297
+ -----------------------------------------------------------------
1298
+  (0.1ms) rollback transaction
1299
+  (0.0ms) begin transaction
1300
+ -----------------------------------------------------------------------------
1301
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1302
+ -----------------------------------------------------------------------------
1303
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1304
+  (0.1ms) rollback transaction
1305
+  (0.0ms) begin transaction
1306
+ ------------------------------------------------------------------------------
1307
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1308
+ ------------------------------------------------------------------------------
1309
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1310
+  (0.1ms) rollback transaction
1311
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1312
+  (0.1ms) begin transaction
1313
+ Fixture Delete (0.3ms) DELETE FROM "users"
1314
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1316
+  (1.5ms) commit transaction
1317
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1324
+ Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)
1325
+  (0.1ms) rollback transaction
1326
+  (0.1ms) begin transaction
1327
+ ------------------------------------------------------------------------------
1328
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1329
+ ------------------------------------------------------------------------------
1330
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1331
+ Processing by Simsim::AuthTokenController#create as HTML
1332
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1333
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1334
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
1335
+  (0.0ms) rollback transaction
1336
+  (0.0ms) begin transaction
1337
+ -------------------------------------------------------
1338
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1339
+ -------------------------------------------------------
1340
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1341
+ Processing by Simsim::AuthTokenController#create as HTML
1342
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1343
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1344
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1345
+ Completed 201 Created in 6ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1346
+  (0.1ms) rollback transaction
1347
+  (0.0ms) begin transaction
1348
+ ------------------------------------------------------------------------------
1349
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1350
+ ------------------------------------------------------------------------------
1351
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1352
+ Processing by ProtectedResourcesController#index as HTML
1353
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1354
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
1355
+  (0.1ms) rollback transaction
1356
+  (0.1ms) begin transaction
1357
+ -----------------------------------------------------------------------------
1358
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1359
+ -----------------------------------------------------------------------------
1360
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1361
+ Processing by ProtectedResourcesController#index as HTML
1362
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1363
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
1364
+  (0.0ms) rollback transaction
1365
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
1373
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1374
+  (0.1ms) begin transaction
1375
+ Fixture Delete (0.3ms) DELETE FROM "users"
1376
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1378
+  (1.1ms) commit transaction
1379
+  (0.0ms) begin transaction
1380
+ -------------------------------------------------------
1381
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1382
+ -------------------------------------------------------
1383
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1387
+ User Load (0.0ms) 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
+  (0.0ms) rollback transaction
1390
+  (0.0ms) begin transaction
1391
+ ------------------------------------------------------------------------------
1392
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1393
+ ------------------------------------------------------------------------------
1394
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1395
+ Processing by Simsim::AuthTokenController#create as HTML
1396
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1397
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1398
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
1399
+  (0.1ms) rollback transaction
1400
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1407
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
1408
+  (0.0ms) rollback transaction
1409
+  (0.0ms) begin transaction
1410
+ ------------------------------------------------------------------------------
1411
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1412
+ ------------------------------------------------------------------------------
1413
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1414
+ Processing by ProtectedResourcesController#index as HTML
1415
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1416
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
1417
+  (0.0ms) rollback transaction
1418
+  (0.1ms) begin transaction
1419
+ -----------------------------------------------------------------------------
1420
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1421
+ -----------------------------------------------------------------------------
1422
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1423
+ Processing by ProtectedResourcesController#index as HTML
1424
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1425
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
1426
+  (0.0ms) rollback transaction
1427
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
1435
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1436
+  (0.1ms) begin transaction
1437
+ Fixture Delete (0.5ms) DELETE FROM "users"
1438
+ Fixture Insert (0.4ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1440
+  (0.7ms) commit transaction
1441
+  (0.0ms) begin transaction
1442
+ -------------------------------------------------------
1443
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1444
+ -------------------------------------------------------
1445
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1449
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
1450
+  (0.1ms) rollback transaction
1451
+  (0.1ms) begin transaction
1452
+ ------------------------------------------------------------------------------
1453
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1454
+ ------------------------------------------------------------------------------
1455
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1459
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
1460
+  (0.0ms) rollback transaction
1461
+  (0.1ms) begin transaction
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1468
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
1469
+  (0.0ms) rollback transaction
1470
+  (0.0ms) begin transaction
1471
+ -----------------------------------------------------------------
1472
+ ProtectedResourcesControllerTest: test_responds_with_unauthorized
1473
+ -----------------------------------------------------------------
1474
+  (0.1ms) rollback transaction
1475
+  (0.0ms) begin transaction
1476
+ -----------------------------------------------------------------------------
1477
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1478
+ -----------------------------------------------------------------------------
1479
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1480
+  (0.0ms) rollback transaction
1481
+  (0.1ms) begin transaction
1482
+ ------------------------------------------------------------------------------
1483
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1484
+ ------------------------------------------------------------------------------
1485
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1486
+  (0.0ms) rollback transaction
1487
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1488
+  (0.1ms) begin transaction
1489
+ Fixture Delete (0.8ms) DELETE FROM "users"
1490
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1492
+  (1.6ms) commit transaction
1493
+  (0.1ms) begin transaction
1494
+ -------------------------------------------------------
1495
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1496
+ -------------------------------------------------------
1497
+ User Load (0.1ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1501
+ Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.2ms)
1502
+  (0.1ms) rollback transaction
1503
+  (0.1ms) begin transaction
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1510
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
1511
+  (0.0ms) rollback transaction
1512
+  (0.0ms) begin transaction
1513
+ ------------------------------------------------------------------------------
1514
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1515
+ ------------------------------------------------------------------------------
1516
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1517
+ Processing by Simsim::AuthTokenController#create as HTML
1518
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1519
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1520
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
1521
+  (0.0ms) rollback transaction
1522
+  (0.0ms) begin transaction
1523
+ -----------------------------------------------------------------
1524
+ ProtectedResourcesControllerTest: test_responds_with_unauthorized
1525
+ -----------------------------------------------------------------
1526
+  (0.0ms) rollback transaction
1527
+  (0.0ms) begin transaction
1528
+ -----------------------------------------------------------------------------
1529
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1530
+ -----------------------------------------------------------------------------
1531
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1532
+  (0.0ms) rollback transaction
1533
+  (0.0ms) begin transaction
1534
+ ------------------------------------------------------------------------------
1535
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1536
+ ------------------------------------------------------------------------------
1537
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1538
+  (0.0ms) rollback transaction
1539
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1540
+  (0.1ms) begin transaction
1541
+ Fixture Delete (0.2ms) DELETE FROM "users"
1542
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1544
+  (1.4ms) commit transaction
1545
+  (0.0ms) begin transaction
1546
+ ------------------------------------------------------------------------------
1547
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1548
+ ------------------------------------------------------------------------------
1549
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1553
+ Completed 404 Not Found in 3ms (ActiveRecord: 0.1ms)
1554
+  (0.1ms) rollback transaction
1555
+  (0.0ms) begin transaction
1556
+ -------------------------------------------------------
1557
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1558
+ -------------------------------------------------------
1559
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1563
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
1566
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1573
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
1574
+  (0.0ms) rollback transaction
1575
+  (0.0ms) begin transaction
1576
+ -----------------------------------------------------------------
1577
+ ProtectedResourcesControllerTest: test_responds_with_unauthorized
1578
+ -----------------------------------------------------------------
1579
+  (0.0ms) rollback transaction
1580
+  (0.1ms) begin transaction
1581
+ -----------------------------------------------------------------------------
1582
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1583
+ -----------------------------------------------------------------------------
1584
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1585
+  (0.0ms) rollback transaction
1586
+  (0.1ms) begin transaction
1587
+ ------------------------------------------------------------------------------
1588
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1589
+ ------------------------------------------------------------------------------
1590
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1591
+  (0.0ms) rollback transaction
1592
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1593
+  (0.1ms) begin transaction
1594
+ Fixture Delete (0.2ms) DELETE FROM "users"
1595
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1597
+  (1.6ms) commit transaction
1598
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1605
+ Completed 404 Not Found in 6ms (ActiveRecord: 0.2ms)
1606
+  (0.1ms) rollback transaction
1607
+  (0.1ms) begin transaction
1608
+ ------------------------------------------------------------------------------
1609
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1610
+ ------------------------------------------------------------------------------
1611
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1612
+ Processing by Simsim::AuthTokenController#create as HTML
1613
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1614
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1615
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
1616
+  (0.1ms) rollback transaction
1617
+  (0.0ms) begin transaction
1618
+ -------------------------------------------------------
1619
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1620
+ -------------------------------------------------------
1621
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1622
+ Processing by Simsim::AuthTokenController#create as HTML
1623
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1624
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1625
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1626
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)
1627
+  (0.0ms) rollback transaction
1628
+  (0.0ms) begin transaction
1629
+ -----------------------------------------------------------------------------
1630
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1631
+ -----------------------------------------------------------------------------
1632
+  (0.0ms) rollback transaction
1633
+  (0.1ms) begin transaction
1634
+ ------------------------------------------------------------------------------
1635
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1636
+ ------------------------------------------------------------------------------
1637
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1638
+  (0.1ms) rollback transaction
1639
+  (0.0ms) 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
+  (0.0ms) rollback transaction
1646
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1647
+  (0.1ms) begin transaction
1648
+ Fixture Delete (0.2ms) DELETE FROM "users"
1649
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1651
+  (1.4ms) commit transaction
1652
+  (0.1ms) begin transaction
1653
+ -------------------------------------------------------
1654
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1655
+ -------------------------------------------------------
1656
+  (0.1ms) rollback transaction
1657
+  (0.0ms) begin transaction
1658
+ ------------------------------------------------------------------------------
1659
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1660
+ ------------------------------------------------------------------------------
1661
+  (0.0ms) rollback transaction
1662
+  (0.0ms) begin transaction
1663
+ ------------------------------------------------------------------------------
1664
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist
1665
+ ------------------------------------------------------------------------------
1666
+  (0.0ms) rollback transaction
1667
+  (0.0ms) begin transaction
1668
+ ------------------------------------------------------------------------------
1669
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1670
+ ------------------------------------------------------------------------------
1671
+  (0.1ms) rollback transaction
1672
+  (0.0ms) begin transaction
1673
+ -----------------------------------------------------------------------------
1674
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1675
+ -----------------------------------------------------------------------------
1676
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1677
+  (0.0ms) rollback transaction
1678
+  (0.0ms) 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
+  (0.0ms) rollback transaction
1685
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1686
+  (0.1ms) begin transaction
1687
+ Fixture Delete (0.2ms) DELETE FROM "users"
1688
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1690
+  (1.7ms) commit transaction
1691
+  (0.1ms) begin transaction
1692
+ -------------------------------------------------------
1693
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1694
+ -------------------------------------------------------
1695
+ User Load (0.3ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1699
+ User Load (0.0ms) 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
+  (0.0ms) rollback transaction
1702
+  (0.0ms) begin transaction
1703
+ ------------------------------------------------------------------------------
1704
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1705
+ ------------------------------------------------------------------------------
1706
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1707
+ Processing by Simsim::AuthTokenController#create as HTML
1708
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1709
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1710
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
1711
+  (0.0ms) rollback transaction
1712
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1719
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
1720
+  (0.1ms) rollback transaction
1721
+  (0.0ms) begin transaction
1722
+ ------------------------------------------------------------------------------
1723
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1724
+ ------------------------------------------------------------------------------
1725
+  (0.0ms) rollback transaction
1726
+  (0.0ms) begin transaction
1727
+ -----------------------------------------------------------------------------
1728
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1729
+ -----------------------------------------------------------------------------
1730
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1731
+  (0.0ms) rollback transaction
1732
+  (0.0ms) 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
+  (0.0ms) rollback transaction
1739
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1740
+  (0.1ms) begin transaction
1741
+ Fixture Delete (0.2ms) DELETE FROM "users"
1742
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1744
+  (1.5ms) commit transaction
1745
+  (0.1ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1752
+ Completed 404 Not Found in 4ms (ActiveRecord: 0.2ms)
1753
+  (0.0ms) rollback transaction
1754
+  (0.0ms) begin transaction
1755
+ ------------------------------------------------------------------------------
1756
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1757
+ ------------------------------------------------------------------------------
1758
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1759
+ Processing by Simsim::AuthTokenController#create as HTML
1760
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1761
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1762
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
1763
+  (0.1ms) rollback transaction
1764
+  (0.1ms) begin transaction
1765
+ -------------------------------------------------------
1766
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1767
+ -------------------------------------------------------
1768
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1769
+ Processing by Simsim::AuthTokenController#create as HTML
1770
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1771
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1772
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1773
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)
1774
+  (0.1ms) rollback transaction
1775
+  (0.1ms) begin transaction
1776
+ -----------------------------------------------------------------------------
1777
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1778
+ -----------------------------------------------------------------------------
1779
+  (0.0ms) rollback transaction
1780
+  (0.1ms) begin transaction
1781
+ ------------------------------------------------------------------------------
1782
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1783
+ ------------------------------------------------------------------------------
1784
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1785
+  (0.0ms) rollback transaction
1786
+  (0.1ms) 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
+  (0.0ms) rollback transaction
1793
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1794
+  (0.1ms) begin transaction
1795
+ Fixture Delete (0.2ms) DELETE FROM "users"
1796
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1798
+  (1.2ms) commit transaction
1799
+  (0.0ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1806
+ Completed 404 Not Found in 4ms (ActiveRecord: 0.2ms)
1807
+  (0.0ms) rollback transaction
1808
+  (0.0ms) begin transaction
1809
+ ------------------------------------------------------------------------------
1810
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1811
+ ------------------------------------------------------------------------------
1812
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1813
+ Processing by Simsim::AuthTokenController#create as HTML
1814
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1815
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1816
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
1817
+  (0.0ms) rollback transaction
1818
+  (0.0ms) begin transaction
1819
+ -------------------------------------------------------
1820
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1821
+ -------------------------------------------------------
1822
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1823
+ Processing by Simsim::AuthTokenController#create as HTML
1824
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1825
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1826
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1827
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)
1828
+  (0.0ms) rollback transaction
1829
+  (0.0ms) begin transaction
1830
+ -----------------------------------------------------------------
1831
+ ProtectedResourcesControllerTest: test_responds_with_unauthorized
1832
+ -----------------------------------------------------------------
1833
+  (0.0ms) rollback transaction
1834
+  (0.0ms) begin transaction
1835
+ -----------------------------------------------------------------------------
1836
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1837
+ -----------------------------------------------------------------------------
1838
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1839
+  (0.0ms) rollback transaction
1840
+  (0.1ms) begin transaction
1841
+ ------------------------------------------------------------------------------
1842
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1843
+ ------------------------------------------------------------------------------
1844
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1845
+  (0.0ms) rollback transaction
1846
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1847
+  (0.1ms) begin transaction
1848
+ Fixture Delete (0.3ms) DELETE FROM "users"
1849
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
1851
+  (1.4ms) commit transaction
1852
+  (0.1ms) begin transaction
1853
+ -------------------------------------------------------
1854
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1855
+ -------------------------------------------------------
1856
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1860
+ User Load (0.0ms) 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
+  (0.0ms) rollback transaction
1863
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1870
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
1871
+  (0.0ms) rollback transaction
1872
+  (0.0ms) begin transaction
1873
+ ------------------------------------------------------------------------------
1874
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1875
+ ------------------------------------------------------------------------------
1876
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1880
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
1881
+  (0.0ms) rollback transaction
1882
+  (0.0ms) begin transaction
1883
+ -----------------------------------------------------------------------------
1884
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1885
+ -----------------------------------------------------------------------------
1886
+  (0.1ms) rollback transaction
1887
+  (0.1ms) begin transaction
1888
+ ------------------------------------------------------------------------------
1889
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1890
+ ------------------------------------------------------------------------------
1891
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1892
+  (0.0ms) rollback transaction
1893
+  (0.0ms) 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
+  (0.0ms) rollback transaction
1900
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1901
+  (0.1ms) begin transaction
1902
+ Fixture Delete (0.2ms) DELETE FROM "users"
1903
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1905
+  (0.8ms) commit transaction
1906
+  (0.0ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1913
+ Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)
1914
+  (0.0ms) rollback transaction
1915
+  (0.0ms) begin transaction
1916
+ ------------------------------------------------------------------------------
1917
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
1918
+ ------------------------------------------------------------------------------
1919
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1920
+ Processing by Simsim::AuthTokenController#create as HTML
1921
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1922
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1923
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
1924
+  (0.0ms) rollback transaction
1925
+  (0.1ms) begin transaction
1926
+ -------------------------------------------------------
1927
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1928
+ -------------------------------------------------------
1929
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1930
+ Processing by Simsim::AuthTokenController#create as HTML
1931
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1932
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1933
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1934
+ Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1935
+  (0.1ms) rollback transaction
1936
+  (0.0ms) begin transaction
1937
+ -----------------------------------------------------------------------------
1938
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1939
+ -----------------------------------------------------------------------------
1940
+  (0.0ms) rollback transaction
1941
+  (0.1ms) begin transaction
1942
+ ------------------------------------------------------------------------------
1943
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1944
+ ------------------------------------------------------------------------------
1945
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1946
+  (0.0ms) rollback transaction
1947
+  (0.0ms) 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
+  (0.0ms) rollback transaction
1954
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1955
+  (0.1ms) begin transaction
1956
+ Fixture Delete (0.3ms) DELETE FROM "users"
1957
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1959
+  (1.4ms) commit transaction
1960
+  (0.1ms) begin transaction
1961
+ -----------------------------------------------------------------------------
1962
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
1963
+ -----------------------------------------------------------------------------
1964
+  (0.1ms) rollback transaction
1965
+  (0.1ms) begin transaction
1966
+ ------------------------------------------------------------------------------
1967
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
1968
+ ------------------------------------------------------------------------------
1969
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1970
+  (0.1ms) rollback transaction
1971
+  (0.1ms) 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
+  (0.0ms) rollback transaction
1978
+  (0.1ms) begin transaction
1979
+ -------------------------------------------------------
1980
+ Simsim::AuthTokenControllerTest: test_responds_with_201
1981
+ -------------------------------------------------------
1982
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
1983
+ Processing by Simsim::AuthTokenController#create as HTML
1984
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
1985
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1986
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
1987
+ Completed 201 Created in 7ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1988
+  (0.1ms) rollback transaction
1989
+  (0.1ms) begin transaction
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
1996
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
1997
+  (0.0ms) rollback transaction
1998
+  (0.1ms) begin transaction
1999
+ ------------------------------------------------------------------------------
2000
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2001
+ ------------------------------------------------------------------------------
2002
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2003
+ Processing by Simsim::AuthTokenController#create as HTML
2004
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2005
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2006
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
2007
+  (0.0ms) rollback transaction
2008
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2009
+  (0.1ms) begin transaction
2010
+ Fixture Delete (0.2ms) DELETE FROM "users"
2011
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
2013
+  (1.5ms) commit transaction
2014
+  (0.1ms) begin transaction
2015
+ ------------------------------------------------------------------------------
2016
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2017
+ ------------------------------------------------------------------------------
2018
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2019
+  (0.1ms) rollback transaction
2020
+  (0.1ms) 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
+  (0.0ms) rollback transaction
2028
+  (0.0ms) begin transaction
2029
+ -----------------------------------------------------------------------------
2030
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2031
+ -----------------------------------------------------------------------------
2032
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2033
+  (0.0ms) rollback transaction
2034
+  (0.0ms) begin transaction
2035
+ -------------------------------------------------------
2036
+ Simsim::AuthTokenControllerTest: test_responds_with_201
2037
+ -------------------------------------------------------
2038
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2042
+ User Load (0.1ms) 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
+  (0.1ms) rollback transaction
2045
+  (0.0ms) begin transaction
2046
+ ------------------------------------------------------------------------------
2047
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2048
+ ------------------------------------------------------------------------------
2049
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2050
+ Processing by Simsim::AuthTokenController#create as HTML
2051
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2052
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2053
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
2054
+  (0.0ms) rollback transaction
2055
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2062
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
2063
+  (0.0ms) rollback transaction
2064
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2065
+  (0.1ms) begin transaction
2066
+ Fixture Delete (0.2ms) DELETE FROM "users"
2067
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
2069
+  (1.5ms) commit transaction
2070
+  (0.1ms) begin transaction
2071
+ -------------------------------------------------------
2072
+ Simsim::AuthTokenControllerTest: test_responds_with_201
2073
+ -------------------------------------------------------
2074
+ User Load (0.4ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2078
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
2081
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2088
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
2089
+  (0.1ms) rollback transaction
2090
+  (0.1ms) begin transaction
2091
+ ------------------------------------------------------------------------------
2092
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2093
+ ------------------------------------------------------------------------------
2094
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2098
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
2099
+  (0.1ms) rollback transaction
2100
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
2108
+  (0.1ms) begin transaction
2109
+ -----------------------------------------------------------------------------
2110
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2111
+ -----------------------------------------------------------------------------
2112
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2113
+  (0.0ms) rollback transaction
2114
+  (0.1ms) begin transaction
2115
+ ------------------------------------------------------------------------------
2116
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2117
+ ------------------------------------------------------------------------------
2118
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2119
+  (0.0ms) rollback transaction
2120
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2121
+  (0.1ms) begin transaction
2122
+ Fixture Delete (0.8ms) DELETE FROM "users"
2123
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
2125
+  (1.7ms) commit transaction
2126
+  (0.1ms) begin transaction
2127
+ -------------------------------------------------------
2128
+ Simsim::AuthTokenControllerTest: test_responds_with_201
2129
+ -------------------------------------------------------
2130
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2134
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
2137
+  (0.1ms) begin transaction
2138
+ ------------------------------------------------------------------------------
2139
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2140
+ ------------------------------------------------------------------------------
2141
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2142
+ Processing by Simsim::AuthTokenController#create as HTML
2143
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2144
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2145
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
2146
+  (0.0ms) rollback transaction
2147
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2154
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
2155
+  (0.0ms) rollback transaction
2156
+  (0.0ms) begin transaction
2157
+ ------------------------------------------------------------------------------
2158
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2159
+ ------------------------------------------------------------------------------
2160
+ User Load (0.1ms) 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
+  (0.1ms) rollback transaction
2165
+  (0.1ms) 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
+  (0.0ms) rollback transaction
2173
+  (0.1ms) begin transaction
2174
+ -----------------------------------------------------------------------------
2175
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2176
+ -----------------------------------------------------------------------------
2177
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.0ms) rollback transaction
2182
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2183
+  (0.1ms) begin transaction
2184
+ Fixture Delete (0.2ms) DELETE FROM "users"
2185
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
2187
+  (1.4ms) commit transaction
2188
+  (0.1ms) begin transaction
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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2195
+ Completed 404 Not Found in 7ms (ActiveRecord: 0.3ms)
2196
+  (0.1ms) rollback transaction
2197
+  (0.1ms) begin transaction
2198
+ ------------------------------------------------------------------------------
2199
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2200
+ ------------------------------------------------------------------------------
2201
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2202
+ Processing by Simsim::AuthTokenController#create as HTML
2203
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2204
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2205
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
2206
+  (0.1ms) rollback transaction
2207
+  (0.1ms) begin transaction
2208
+ -------------------------------------------------------
2209
+ Simsim::AuthTokenControllerTest: test_responds_with_201
2210
+ -------------------------------------------------------
2211
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2212
+ Processing by Simsim::AuthTokenController#create as HTML
2213
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2214
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2215
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2216
+ Completed 201 Created in 6ms (Views: 0.1ms | ActiveRecord: 0.1ms)
2217
+  (0.1ms) rollback transaction
2218
+  (0.0ms) begin transaction
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
+  (0.3ms) rollback transaction
2226
+  (0.2ms) begin transaction
2227
+ -----------------------------------------------------------------------------
2228
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2229
+ -----------------------------------------------------------------------------
2230
+ User Load (0.3ms) 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
+  (0.3ms) rollback transaction
2234
+  (0.2ms) begin transaction
2235
+ ------------------------------------------------------------------------------
2236
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2237
+ ------------------------------------------------------------------------------
2238
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2239
+ Processing by ProtectedResourcesController#index as HTML
2240
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
2241
+  (0.2ms) rollback transaction
2242
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2243
+  (0.1ms) begin transaction
2244
+ Fixture Delete (0.3ms) DELETE FROM "users"
2245
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
2247
+  (1.4ms) commit transaction
2248
+  (0.1ms) begin transaction
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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2255
+ Completed 404 Not Found in 8ms (ActiveRecord: 0.3ms)
2256
+  (0.1ms) rollback transaction
2257
+  (0.1ms) begin transaction
2258
+ ------------------------------------------------------------------------------
2259
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2260
+ ------------------------------------------------------------------------------
2261
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2262
+ Processing by Simsim::AuthTokenController#create as HTML
2263
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2264
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2265
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
2266
+  (0.1ms) rollback transaction
2267
+  (0.1ms) begin transaction
2268
+ -------------------------------------------------------
2269
+ Simsim::AuthTokenControllerTest: test_responds_with_201
2270
+ -------------------------------------------------------
2271
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2272
+ Processing by Simsim::AuthTokenController#create as HTML
2273
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2274
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2275
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2276
+ Completed 201 Created in 7ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2277
+  (0.1ms) rollback transaction
2278
+  (0.0ms) begin transaction
2279
+ -----------------------------------------------------------------------------
2280
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2281
+ -----------------------------------------------------------------------------
2282
+ User Load (0.1ms) 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
+  (0.0ms) rollback transaction
2287
+  (0.0ms) 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
+  (0.0ms) rollback transaction
2295
+  (0.0ms) begin transaction
2296
+ ------------------------------------------------------------------------------
2297
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2298
+ ------------------------------------------------------------------------------
2299
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.1ms) rollback transaction
2304
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2305
+  (0.1ms) begin transaction
2306
+ Fixture Delete (0.2ms) DELETE FROM "users"
2307
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
2309
+  (1.6ms) commit transaction
2310
+  (0.1ms) begin transaction
2311
+ -----------------------------------------------------------------------------
2312
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2313
+ -----------------------------------------------------------------------------
2314
+ User Load (0.2ms) 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
+  (0.1ms) rollback transaction
2319
+  (0.1ms) begin transaction
2320
+ ------------------------------------------------------------------------------
2321
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2322
+ ------------------------------------------------------------------------------
2323
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+  (0.0ms) rollback transaction
2328
+  (0.1ms) begin transaction
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
+  (0.0ms) rollback transaction
2336
+  (0.0ms) begin transaction
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2343
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
2344
+  (0.0ms) rollback transaction
2345
+  (0.1ms) begin transaction
2346
+ ------------------------------------------------------------------------------
2347
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2348
+ ------------------------------------------------------------------------------
2349
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2350
+ Processing by Simsim::AuthTokenController#create as HTML
2351
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2352
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2353
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
2354
+  (0.0ms) rollback transaction
2355
+  (0.0ms) begin transaction
2356
+ -------------------------------------------------------
2357
+ Simsim::AuthTokenControllerTest: test_responds_with_201
2358
+ -------------------------------------------------------
2359
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2360
+ Processing by Simsim::AuthTokenController#create as HTML
2361
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2362
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2363
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2364
+ Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
2365
+  (0.1ms) rollback transaction
2366
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2367
+  (0.1ms) begin transaction
2368
+ Fixture Delete (0.2ms) DELETE FROM "users"
2369
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
2371
+  (1.4ms) commit transaction
2372
+  (0.1ms) begin transaction
2373
+ -------------------------------------------------------
2374
+ Simsim::AuthTokenControllerTest: test_responds_with_201
2375
+ -------------------------------------------------------
2376
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2380
+ User Load (0.1ms) 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
+  (0.1ms) rollback transaction
2383
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2390
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
2391
+  (0.0ms) rollback transaction
2392
+  (0.0ms) begin transaction
2393
+ ------------------------------------------------------------------------------
2394
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2395
+ ------------------------------------------------------------------------------
2396
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2400
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
2401
+  (0.0ms) rollback transaction
2402
+  (0.0ms) begin transaction
2403
+ ------------------------------------------------------------------------------
2404
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2405
+ ------------------------------------------------------------------------------
2406
+ User Load (0.1ms) 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
+  (0.3ms) rollback transaction
2411
+  (0.2ms) begin transaction
2412
+ -----------------------------------------------------------------------------
2413
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2414
+ -----------------------------------------------------------------------------
2415
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2416
+ Processing by ProtectedResourcesController#index as HTML
2417
+ Completed 500 Internal Server Error in 1348ms (ActiveRecord: 0.0ms)
2418
+  (0.2ms) rollback transaction
2419
+  (0.2ms) begin transaction
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
+  (0.2ms) rollback transaction
2426
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2427
+  (0.1ms) begin transaction
2428
+ Fixture Delete (0.2ms) DELETE FROM "users"
2429
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
2431
+  (1.5ms) commit transaction
2432
+  (0.1ms) begin transaction
2433
+ ------------------------------------------------------------------------------
2434
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2435
+ ------------------------------------------------------------------------------
2436
+ User Load (0.2ms) 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
+  (0.3ms) rollback transaction
2441
+  (0.2ms) begin transaction
2442
+ -----------------------------------------------------------------------------
2443
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2444
+ -----------------------------------------------------------------------------
2445
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2446
+ Processing by ProtectedResourcesController#index as HTML
2447
+ Completed 500 Internal Server Error in 1218ms (ActiveRecord: 0.0ms)
2448
+  (0.3ms) rollback transaction
2449
+  (0.3ms) begin transaction
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
+  (0.2ms) rollback transaction
2456
+  (0.2ms) begin transaction
2457
+ -------------------------------------------------------
2458
+ Simsim::AuthTokenControllerTest: test_responds_with_201
2459
+ -------------------------------------------------------
2460
+ User Load (0.3ms) 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
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2464
+ User Load (0.4ms) 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
+  (0.4ms) rollback transaction
2467
+  (0.4ms) begin transaction
2468
+ ------------------------------------------------------------------------------
2469
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2470
+ ------------------------------------------------------------------------------
2471
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2472
+ Processing by Simsim::AuthTokenController#create as HTML
2473
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2474
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2475
+ Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)
2476
+  (0.2ms) rollback transaction
2477
+  (0.3ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2484
+ Completed 404 Not Found in 3ms (ActiveRecord: 0.2ms)
2485
+  (0.4ms) rollback transaction
2486
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2487
+  (0.1ms) begin transaction
2488
+ Fixture Delete (0.8ms) DELETE FROM "users"
2489
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
2491
+  (1.5ms) commit transaction
2492
+  (0.1ms) begin transaction
2493
+ ------------------------------------------------------------------------------
2494
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2495
+ ------------------------------------------------------------------------------
2496
+ User Load (0.2ms) 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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2500
+ Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)
2501
+  (0.0ms) rollback transaction
2502
+  (0.0ms) begin transaction
2503
+ -------------------------------------------------------
2504
+ Simsim::AuthTokenControllerTest: test_responds_with_201
2505
+ -------------------------------------------------------
2506
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2510
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
2513
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2520
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
2521
+  (0.0ms) rollback transaction
2522
+  (0.0ms) begin transaction
2523
+ ------------------------------------------------------------------------------
2524
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2525
+ ------------------------------------------------------------------------------
2526
+ User Load (0.1ms) 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
+  (0.2ms) rollback transaction
2530
+  (0.2ms) 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
+  (0.2ms) rollback transaction
2537
+  (0.2ms) begin transaction
2538
+ -----------------------------------------------------------------------------
2539
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2540
+ -----------------------------------------------------------------------------
2541
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2542
+ Processing by ProtectedResourcesController#index as HTML
2543
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)
2544
+  (0.2ms) rollback transaction
2545
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2546
+  (0.1ms) begin transaction
2547
+ Fixture Delete (0.2ms) DELETE FROM "users"
2548
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2550
+  (1.6ms) commit transaction
2551
+  (0.1ms) begin transaction
2552
+ ------------------------------------------------------------------------------
2553
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2554
+ ------------------------------------------------------------------------------
2555
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2559
+ Completed 404 Not Found in 3ms (ActiveRecord: 0.1ms)
2560
+  (0.0ms) rollback transaction
2561
+  (0.0ms) begin transaction
2562
+ -------------------------------------------------------
2563
+ Simsim::AuthTokenControllerTest: test_responds_with_201
2564
+ -------------------------------------------------------
2565
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2569
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
2572
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2579
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
2580
+  (0.0ms) rollback transaction
2581
+  (0.0ms) begin transaction
2582
+ ------------------------------------------------------------------------------
2583
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2584
+ ------------------------------------------------------------------------------
2585
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2586
+ Processing by ProtectedResourcesController#index as HTML
2587
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2588
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
2589
+  (0.0ms) rollback transaction
2590
+  (0.1ms) begin transaction
2591
+ -----------------------------------------------------------------------------
2592
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2593
+ -----------------------------------------------------------------------------
2594
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2595
+ Processing by ProtectedResourcesController#index as HTML
2596
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2597
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
2598
+  (0.0ms) rollback transaction
2599
+  (0.1ms) begin transaction
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
+  (0.3ms) rollback transaction
2606
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2607
+  (0.1ms) begin transaction
2608
+ Fixture Delete (0.3ms) DELETE FROM "users"
2609
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
2611
+  (0.7ms) commit transaction
2612
+  (0.0ms) begin transaction
2613
+ -----------------------------------------------------------------------------
2614
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2615
+ -----------------------------------------------------------------------------
2616
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2617
+ Processing by ProtectedResourcesController#index as HTML
2618
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2619
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
2620
+  (0.1ms) rollback transaction
2621
+  (0.1ms) begin transaction
2622
+ ------------------------------------------------------------------------------
2623
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2624
+ ------------------------------------------------------------------------------
2625
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2626
+ Processing by ProtectedResourcesController#index as HTML
2627
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2628
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
2629
+  (0.0ms) rollback transaction
2630
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
2638
+  (0.0ms) begin transaction
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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2645
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
2646
+  (0.1ms) rollback transaction
2647
+  (0.0ms) begin transaction
2648
+ -------------------------------------------------------
2649
+ Simsim::AuthTokenControllerTest: test_responds_with_201
2650
+ -------------------------------------------------------
2651
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2652
+ Processing by Simsim::AuthTokenController#create as HTML
2653
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2654
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2655
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2656
+ Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
2657
+  (0.0ms) rollback transaction
2658
+  (0.1ms) begin transaction
2659
+ ------------------------------------------------------------------------------
2660
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2661
+ ------------------------------------------------------------------------------
2662
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2666
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
2667
+  (0.1ms) rollback transaction
2668
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2669
+  (0.1ms) begin transaction
2670
+ Fixture Delete (0.3ms) DELETE FROM "users"
2671
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
2673
+  (1.4ms) commit transaction
2674
+  (0.1ms) begin transaction
2675
+ ------------------------------------------------------------------------------
2676
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2677
+ ------------------------------------------------------------------------------
2678
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2679
+ Processing by ProtectedResourcesController#index as HTML
2680
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2681
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
2682
+  (0.1ms) rollback transaction
2683
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
2691
+  (0.0ms) begin transaction
2692
+ -----------------------------------------------------------------------------
2693
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2694
+ -----------------------------------------------------------------------------
2695
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2696
+ Processing by ProtectedResourcesController#index as HTML
2697
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2698
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
2699
+  (0.0ms) rollback transaction
2700
+  (0.0ms) begin transaction
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
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2707
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
2708
+  (0.0ms) rollback transaction
2709
+  (0.1ms) begin transaction
2710
+ ------------------------------------------------------------------------------
2711
+ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2712
+ ------------------------------------------------------------------------------
2713
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2714
+ Processing by Simsim::AuthTokenController#create as HTML
2715
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2716
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2717
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
2718
+  (0.0ms) rollback transaction
2719
+  (0.0ms) begin transaction
2720
+ -------------------------------------------------------
2721
+ Simsim::AuthTokenControllerTest: test_responds_with_201
2722
+ -------------------------------------------------------
2723
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2724
+ Processing by Simsim::AuthTokenController#create as HTML
2725
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2726
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2727
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2728
+ Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
2729
+  (0.0ms) rollback transaction
2730
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2731
+  (0.1ms) begin transaction
2732
+ Fixture Delete (0.6ms) DELETE FROM "users"
2733
+ Fixture Insert (0.5ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2735
+  (0.7ms) commit transaction
2736
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
2744
+  (0.0ms) begin transaction
2745
+ -----------------------------------------------------------------------------
2746
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2747
+ -----------------------------------------------------------------------------
2748
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2749
+ Processing by ProtectedResourcesController#index as HTML
2750
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2751
+ Completed 200 OK in 3ms (ActiveRecord: 0.1ms)
2752
+  (0.1ms) rollback transaction
2753
+  (0.1ms) begin transaction
2754
+ ------------------------------------------------------------------------------
2755
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2756
+ ------------------------------------------------------------------------------
2757
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2758
+ Processing by ProtectedResourcesController#index as HTML
2759
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2760
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
2761
+  (0.1ms) rollback transaction
2762
+  (0.0ms) begin transaction
2763
+ ------------------------------------------------------
2764
+ Knock::AuthTokenControllerTest: test_responds_with_201
2765
+ ------------------------------------------------------
2766
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2770
+ User Load (0.0ms) 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
+  (0.1ms) rollback transaction
2773
+  (0.0ms) begin transaction
2774
+ -----------------------------------------------------------------------------
2775
+ Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2776
+ -----------------------------------------------------------------------------
2777
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2778
+ Processing by Knock::AuthTokenController#create as HTML
2779
+ Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}}
2780
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2781
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
2782
+  (0.1ms) rollback transaction
2783
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2790
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
2791
+  (0.0ms) rollback transaction
2792
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2793
+  (0.1ms) begin transaction
2794
+ Fixture Delete (0.7ms) DELETE FROM "users"
2795
+ Fixture Insert (0.5ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
2797
+  (0.7ms) commit transaction
2798
+  (0.0ms) begin transaction
2799
+ ------------------------------------------------------
2800
+ Knock::AuthTokenControllerTest: test_responds_with_201
2801
+ ------------------------------------------------------
2802
+ User Load (0.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2806
+ User Load (0.1ms) 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
+  (0.1ms) rollback transaction
2809
+  (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]]
2816
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
2817
+  (0.1ms) rollback transaction
2818
+  (0.1ms) begin transaction
2819
+ -----------------------------------------------------------------------------
2820
+ Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid
2821
+ -----------------------------------------------------------------------------
2822
+ User Load (0.1ms) 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
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]]
2826
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)
2827
+  (0.1ms) rollback transaction
2828
+  (0.0ms) begin transaction
2829
+ -----------------------------------------------------------------------------
2830
+ ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated
2831
+ -----------------------------------------------------------------------------
2832
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2833
+ Processing by ProtectedResourcesController#index as HTML
2834
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2835
+ Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
2836
+  (0.1ms) rollback transaction
2837
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
2845
+  (0.1ms) begin transaction
2846
+ ------------------------------------------------------------------------------
2847
+ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
2848
+ ------------------------------------------------------------------------------
2849
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2850
+ Processing by ProtectedResourcesController#index as HTML
2851
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
2852
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
2853
+  (0.0ms) rollback transaction