From 81747d61c2ccd85266c8fed99d086003d9dc0da5 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Wed, 5 Oct 2016 01:02:12 +0800 Subject: [PATCH] add token to requests without token param --- spec/api/v2/mappings_api_spec.rb | 3 ++- spec/api/v2/topics_api_spec.rb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/api/v2/mappings_api_spec.rb b/spec/api/v2/mappings_api_spec.rb index 4d802865..6f225c6a 100644 --- a/spec/api/v2/mappings_api_spec.rb +++ b/spec/api/v2/mappings_api_spec.rb @@ -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) diff --git a/spec/api/v2/topics_api_spec.rb b/spec/api/v2/topics_api_spec.rb index 9811071d..3f781df9 100644 --- a/spec/api/v2/topics_api_spec.rb +++ b/spec/api/v2/topics_api_spec.rb @@ -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)