(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)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713101607') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.1ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 3ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 3ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 5ms (Views: 0.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 427987ms (Views: 0.7ms | ActiveRecord: 0.9ms)  (0.3ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 6ms (ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 3ms (ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 5ms (ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 3ms (ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 7ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (8.3ms) commit transaction  (0.3ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 6ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 3ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.7ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 3ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 5ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 4ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 7ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.6ms) DELETE FROM "users" 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) 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)  (0.6ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 10ms (ActiveRecord: 0.1ms)  (1.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (0.9ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized -----------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 6ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.1ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 5ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "users" 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) 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)  (0.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized -----------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "users" 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) 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)  (1.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized -----------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 3ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized -----------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 6ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.2ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 4ms (ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized -----------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (0.8ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 7ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 7ms (Views: 0.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 8ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "users" 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) 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)  (1.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 8ms (Views: 0.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 7ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 6ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 167670ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1330ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 8ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 7ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.6ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 10ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 8653ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1348ms (ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 12117ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 1218ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 13ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (0.4ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 3ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "users" 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) 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)  (1.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 5ms (ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 6ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 18364ms (ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" 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) 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)  (1.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 3ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 6ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Completed 500 Internal Server Error in 20707ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (0.7ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" 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) 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)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ------------------------------------------------------------------------------ Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ Simsim::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Simsim::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Simsim::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.6ms) DELETE FROM "users" 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) 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)  (0.7ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 3ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 3ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.7ms) DELETE FROM "users" 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) 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)  (0.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 15ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "users" Fixture Insert (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$xeqYVacU6DZGpUGS4W8eSe56/myGRKdpEcUAM4oE6DoiulRd/hnNy', '2015-07-14 14:23:38', '2015-07-14 14:23:38', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$i5FHY3VrtL3.jGf8is90UO5RfJ5GE3hwEny8nwfJN4avPYOk1s31q', '2015-07-14 14:23:38', '2015-07-14 14:23:38', 298486374)  (0.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 14ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.6ms) DELETE FROM "users" Fixture Insert (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$vZRgLS3hdyTV3Xbi/1Uknui9NWfu3dPa1rA3n566H1MeVwP1MNqii', '2015-07-14 18:00:54', '2015-07-14 18:00:54', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$X/v1FIv3dhUxDFIk9lxmoe4S8SGxPoTfT6TAXsFkarEfyKd5beGm2', '2015-07-14 18:00:54', '2015-07-14 18:00:54', 298486374)  (0.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 9ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$SS8AMHiW7tBmfehI/pVa4.9w118Pg.DKsd0lUN5YupmUiKNDxTTgS', '2015-07-14 18:01:03', '2015-07-14 18:01:03', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$vZfauYBhtJW7l327FavUmu7FfJhteS/migbrwFOAsdZdv2UBfwnmy', '2015-07-14 18:01:03', '2015-07-14 18:01:03', 298486374)  (1.3ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.6ms) DELETE FROM "users" Fixture Insert (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Vh.dppWW2pQ48kP01lrdHuoMlT2HPDN0sDRv6f3Vya9CHaaLMbkvG', '2015-07-15 15:18:12', '2015-07-15 15:18:12', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$KRkMwj0qRbsiSSHeFH0M9OqV8ByqTzynVahzZVNUo4xR9RSqOcUqa', '2015-07-15 15:18:12', '2015-07-15 15:18:12', 298486374)  (0.7ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$JA/c3tX2pzobkPi4aAUieOJ.B/TrkcodoPIWrUKSvcvfErhgG1PLy', '2015-07-15 15:22:16', '2015-07-15 15:22:16', 980190962) Fixture Insert (0.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$97PYmwJzgeb2f33/QMOdQ.p5GH/qrTDGgoQIzmWwnUi4duUgUW1xy', '2015-07-15 15:22:16', '2015-07-15 15:22:16', 298486374)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Kn4Zr/SXViCsMoxESW1p9OlGqqoSmunb5fYYElgtScakdLV713k3a', '2015-07-15 15:22:51', '2015-07-15 15:22:51', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$c0mQYlFm3uH3.q4VFZ8H..gTkiLLBOV8KBWLFAsDtKV2uZkrfwvVO', '2015-07-15 15:22:51', '2015-07-15 15:22:51', 298486374)  (1.6ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 9ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 13ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$lQ6dep8WROuC2WVuFMZNcu9haVkPTY.LPbJKnO.CZ47zwqrH0fYfm', '2015-07-15 15:25:07', '2015-07-15 15:25:07', 980190962) Fixture Insert (0.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$MRqP183P9yUjD5x8RQhjUOx6J7auUoBRJRfIfJBLTFCmEcG9UTKhO', '2015-07-15 15:25:07', '2015-07-15 15:25:07', 298486374)  (0.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 12ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "users" Fixture Insert (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$12chVEEM0IZUMTt6O2ynKOaFlfnfvBU/1i2zbgssze/RMcq6oFMPS', '2015-07-15 15:58:13', '2015-07-15 15:58:13', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$Ppavg2UpH39R7WuSrxjpku2z5m080vXfROtes0BYpWSFUo9V0Gi92', '2015-07-15 15:58:13', '2015-07-15 15:58:13', 298486374)  (0.9ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$jMqvvyPOfw.htkdb29BbZ.ozW4KCcDSyZRfooYXUBYW2W.Q0mSVs.', '2015-07-15 15:58:27', '2015-07-15 15:58:27', 980190962) Fixture Insert (0.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$e6lXwGBSU7QWwDL1D12V4.GXqhXWZU1sMSuWTDV44DxvCZqPMIrNu', '2015-07-15 15:58:27', '2015-07-15 15:58:27', 298486374)  (1.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Ze9d59FVmGT7IJwhGho9cewSEEkarQ1Jd0BNvshALz4cW7TPr3cNS', '2015-07-15 15:58:35', '2015-07-15 15:58:35', 980190962) Fixture Insert (0.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$9HsNAOfKKBNE8Gli.31H6Ob1Ots089NvBe0L1uzNkoo7Dz9dUAiTe', '2015-07-15 15:58:35', '2015-07-15 15:58:35', 298486374)  (1.5ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 18ms (ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 7ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.9ms) DELETE FROM "users" Fixture Insert (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$VfCCl/ZVmwkH2QEebT/zUu36PwSNQwCL04UCSXU1fijFnGgU9HfnS', '2015-07-15 16:12:21', '2015-07-15 16:12:21', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$MPBCItViZiI7sB2vL7ZrbexzWVQaxxIOOe0Z6083Ycq3ebsZ8vUrS', '2015-07-15 16:12:21', '2015-07-15 16:12:21', 298486374)  (0.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$ECm2Ev8zjCnTUd.JW5IkVuwZAIwjsT9xRHZyMn7zJujBml9gsMYxO', '2015-07-15 16:13:45', '2015-07-15 16:13:45', 980190962) Fixture Insert (0.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$R/zDQvaVJ9FdXygihgMLUur1Yhzk0pmkz7qf4nvExEjbmpGF01yhu', '2015-07-15 16:13:45', '2015-07-15 16:13:45', 298486374)  (1.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$ffjkG5TRoEGvTxub2Wv9Oea3R9yD.ZLLdk3Vx4ixdlE7jyqwz9bFW', '2015-07-15 16:14:05', '2015-07-15 16:14:05', 980190962) Fixture Insert (0.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$8AauzQEzp6ui7FyTlftZHOWsLinabqlYp4.7B.y.MPx1oj5nYFl/6', '2015-07-15 16:14:05', '2015-07-15 16:14:05', 298486374)  (1.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.6ms) DELETE FROM "users" Fixture Insert (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$78Z5Pym6JBqYpiexQCKW1u0kr2qFmvgH8iNTL5OgKpyWkx/EPCO7u', '2015-07-15 16:39:22', '2015-07-15 16:39:22', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$0127htT2TiZ.yQNMnbXv5e7nnlwsfLpKgo.mHpQlZT4zHB3oRYnRG', '2015-07-15 16:39:22', '2015-07-15 16:39:22', 298486374)  (0.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 3ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.6ms) DELETE FROM "users" Fixture Insert (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$wziC/l7yxbKfl.60v.PPTOl5cbS1gK8epNmdkzBa2LBxW912zn0HK', '2015-07-15 20:58:56', '2015-07-15 20:58:56', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$QbmHiiaepDfrqjF3NV/z5OqCI43V5.4mLvBLlrbnEP2T2g9JgMTGO', '2015-07-15 20:58:56', '2015-07-15 20:58:56', 298486374)  (0.7ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 4ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 11ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$Q8G5bFsOuvZaeDG2WffocONjqTpE7im9ZMGJl9XX3HwA0Vh8ud95G', '2015-07-15 20:59:02', '2015-07-15 20:59:02', 980190962) Fixture Insert (0.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$tNCkphY4grG6qSm93B3ZkOJ3HPJQDJ6rZMcZoRxDt/.6aViWRLGxu', '2015-07-15 20:59:02', '2015-07-15 20:59:02', 298486374)  (1.6ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "users" Fixture Insert (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$XIklu6b1fu1FKZ40/zthquwZtWD1iOVDxOHSKXMCiXQTmv9tdE1k2', '2015-07-16 09:38:29', '2015-07-16 09:38:29', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$HmSbuUSOgrKFCMcSG3bHgOBOqNlaEOGaLodG3bkgYK7vae.DCe81y', '2015-07-16 09:38:29', '2015-07-16 09:38:29', 298486374)  (0.8ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1 Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1 Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1 Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$.sMdp6yE/Zt4bywOmkjEyeR/M9ZMkTAQCLYSvbdgyAZEDwYVhq8oS', '2015-07-16 09:44:11', '2015-07-16 09:44:11', 980190962) Fixture Insert (0.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$8dRtTY5vUsVbAdOk5FYkU.Jn37Li2HVIH8xhowD1QY7Mu.6zU2teG', '2015-07-16 09:44:11', '2015-07-16 09:44:11', 298486374)  (0.8ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1 Completed 404 Not Found in 1ms (ActiveRecord: 0.3ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1 Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1 Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$08oFJCfJGV4ze1vKJRYbAOKcHdp/oH6IVeF4YcX44cs2TVvYmJcgK', '2015-07-16 09:56:24', '2015-07-16 09:56:24', 980190962) Fixture Insert (0.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$ugtejufJzCgRRVlNVR.fq.MQeJ8dykhBw0wOxWc1IrC021SJHSfPq', '2015-07-16 09:56:24', '2015-07-16 09:56:24', 298486374)  (1.1ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"email"=>"one@example.net", "password"=>"[FILTERED]"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"email"=>"one@example.net", "password"=>"[FILTERED]"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"email"=>"wrong@example.net", "password"=>"[FILTERED]"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$mGECCWvf2.VjIDBcfKh7MOg4UyxtY5Q./myTBhaYkh.S77ZuY8z.O', '2015-07-16 09:57:12', '2015-07-16 09:57:12', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$GET9U7cpvZqQmrWl4lSdee6IW6zvMICcVi.zojH4rZTXE8Mao/EHi', '2015-07-16 09:57:12', '2015-07-16 09:57:12', 298486374)  (1.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"email"=>"one@example.net", "password"=>"[FILTERED]"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 17ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"email"=>"wrong@example.net", "password"=>"[FILTERED]"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"email"=>"one@example.net", "password"=>"[FILTERED]"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$PYLUT1UhR5lwzT8P22ef8Ojnb4AHZNzaAD67NQP1xsPHG8UzmslnO', '2015-07-16 10:23:58', '2015-07-16 10:23:58', 980190962) Fixture Insert (0.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$eXOZCzcgj5DbFV/K0OIDhu.BQQbx2cVS7krRqQJsxnfRJSHhUJCAC', '2015-07-16 10:23:58', '2015-07-16 10:23:58', 298486374)  (0.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 2ms (ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"email"=>"one@example.net", "password"=>"[FILTERED]"} Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"email"=>"wrong@example.net", "password"=>"[FILTERED]"} Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"email"=>"one@example.net", "password"=>"[FILTERED]"} Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$fj8sa6plfdreIFtTWP60Vud08hkBuX9pHRKlei2z72X20aEol3v0O', '2015-07-16 10:24:41', '2015-07-16 10:24:41', 980190962) Fixture Insert (0.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$ql5fbaUCydiFeL/KoZfe3OS9EJTK6e16PHuuxTnIfzPxQZYjj95xK', '2015-07-16 10:24:41', '2015-07-16 10:24:41', 298486374)  (1.5ms) commit transaction  (0.1ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 11ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 7ms (Views: 0.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$orGP2.6Hy7ckBDOemlIv2ejeS3MPla.ULVHFqJOiPWRB6dz6x5DHK', '2015-07-16 10:26:51', '2015-07-16 10:26:51', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$oYsWRTGRx4sfJIGsruqNM.eTjI0ZzjufLbKkjD4YkJJh26j7WhUCG', '2015-07-16 10:26:51', '2015-07-16 10:26:51', 298486374)  (1.5ms) commit transaction  (0.1ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 11ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 7ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$YvWXmr54tipdqITMnPZ80eLyBpR3RCJClbMMvxFmmou2IhdPOKGia', '2015-07-16 10:26:56', '2015-07-16 10:26:56', 980190962) Fixture Insert (0.0ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$LvbNMrc1vHI8pnUO3O6sFummv4nXdKvH2/V7Tn6d40uRA/dUatK/2', '2015-07-16 10:26:56', '2015-07-16 10:26:56', 298486374)  (1.2ms) commit transaction  (0.0ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_user_does_not_exist ----------------------------------------------------------------------------- Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "wrong@example.net"]] Completed 404 Not Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Knock::AuthTokenControllerTest: test_responds_with_404_if_password_is_invalid ----------------------------------------------------------------------------- User Load (8.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ Knock::AuthTokenControllerTest: test_responds_with_201 ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Knock::AuthTokenController#create as HTML Parameters: {"auth"=>{"email"=>"one@example.net", "password"=>"[FILTERED]"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 7ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_success_if_authenticated ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Completed 200 OK in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- ProtectedResourcesControllerTest: test_responds_with_unauthorized ----------------------------------------------------------------- Processing by ProtectedResourcesController#index as HTML Filter chain halted as :authenticate rendered or redirected Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.1ms) rollback transaction