add token to requests without token param
This commit is contained in:
parent
7edaeb7c4e
commit
81747d61c2
2 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,8 @@ RSpec.describe 'mappings API', type: :request do
|
|||
end
|
||||
|
||||
it 'GET /api/v2/mappings/:id' do
|
||||
get "/api/v2/mappings/#{mapping.id}"
|
||||
get "/api/v2/mappings/#{mapping.id}", params: { access_token: token }
|
||||
|
||||
|
||||
expect(response).to have_http_status(:success)
|
||||
expect(response).to match_json_schema(:mapping)
|
||||
|
|
|
@ -16,7 +16,8 @@ RSpec.describe 'topics API', type: :request do
|
|||
end
|
||||
|
||||
it 'GET /api/v2/topics/:id' do
|
||||
get "/api/v2/topics/#{topic.id}"
|
||||
get "/api/v2/topics/#{topic.id}", params: { access_token: token }
|
||||
|
||||
|
||||
expect(response).to have_http_status(:success)
|
||||
expect(response).to match_json_schema(:topic)
|
||||
|
|
Loading…
Add table
Reference in a new issue