test/dummy/log/test.log in knock-1.1.0 vs test/dummy/log/test.log in knock-1.2.0

- old
+ new

@@ -3844,5 +3844,581 @@ 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