This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Started POST "/api/v1/sign_in" for 127.0.0.1 at 2020-06-06 03:00:06 +0300 | |
| (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC | |
| Processing by Api::V1::SessionsController#create as JSON | |
| Parameters: {"courier"=>{"email"=>"testcourier@test.com", "password"=>"[FILTERED]"}, "session"=>{"courier"=>{"email"=>"testcourier@test.com", "password"=>"[FILTERED]"}}} | |
| Courier Load (0.4ms) SELECT "couriers".* FROM "couriers" WHERE "couriers"."id" = $1 ORDER BY "couriers"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]] | |
| Completed 500 Internal Server Error in 23ms (ActiveRecord: 4.8ms | Allocations: 9516) | |
| TypeError (no implicit conversion of nil into String): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| require 'swagger_helper' | |
| RSpec.describe 'Couriers', type: :request do | |
| path '/api/v1/auth/sign_in/' do | |
| post 'Login courier' do | |
| tags 'Couriers' | |
| produces 'application/json', 'application/xml' | |
| parameter name: :email, in: :body, type: :string, required: true |
NewerOlder