(1.9ms) 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)   (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150713101607') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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$Ftx/SLqnunNsiEOQGJB7SugvltRumkLLDUxzyJinlzeP2PmuuCd8O', '2016-01-28 23:20:53', '2016-01-28 23:20:53', 980190962) Fixture Insert (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$0R8O7gQYRNgKRiJ/A4J63eCUKwK7iD9emys6U6L5LXs.TedzD6wEq', '2016-01-28 23:20:53', '2016-01-28 23:20:53', 298486374)  (2.1ms) 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.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 ----------------------------------------------------------------------------- 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.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 404 Not Found in 3ms (ActiveRecord: 0.2ms)  (0.1ms) rollback 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "one@example.net"]] Completed 201 Created in 5ms (Views: 0.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- ProtectedResourcesControllerTest: test_accepts_any_prefix_in_the_authorization_header ------------------------------------------------------------------------------------- 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_success_with_token_in_url ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Parameters: {"token"=>"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NTQxMDk2NTMsImF1ZCI6ZmFsc2UsInN1YiI6OTgwMTkwOTYyfQ.d4fLV6Mmra4gxopgyHq0c_vz9GVe8Jzku38Waw3jOgM"} 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_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_with_invalid_token_in_url ------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by ProtectedResourcesController#index as HTML Parameters: {"token"=>"invalid"} 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_accepts_authorization_header_without_prefix ---------------------------------------------------------------------------------- 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_with_invalid_token_in_header ---------------------------------------------------------------------------------------------- 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 ----------------------------------------------------------------- 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_success_with_valid_token_in_header --------------------------------------------------------------------------------------- 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 ---------------------------------------------------------------- InstallGeneratorTest: test_Assert_all_files_are_properly_created ----------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CurrentUsersControllerTest: test_responds_with_200 -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by CurrentUsersController#show 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 --------------------------------------------------------------------------- CurrentUsersControllerTest: test_responds_with_404_if_user_is_not_logged_in --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Processing by CurrentUsersController#show as HTML Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- Knock::AuthTokenTest: test_verify_audience_when_token_audience_is_present -------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Knock::AuthTokenTest: test_encode_tokens_with_RSA -------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- Knock::AuthTokenTest: test_verify_algorithm -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Knock::AuthTokenTest: test_decode_RSA_encoded_tokens ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- KnockTest: test_setup_block_yields_self ---------------------------------------  (0.1ms) rollback transaction