add token to requests without token param

This commit is contained in:
Devin Howard 2016-10-05 01:02:12 +08:00
parent 7edaeb7c4e
commit 81747d61c2
2 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -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)