diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-05-31 14:30:39 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-31 20:30:39 +0200 |
commit | 75cad1d9d6778419a163d2f256d87dbafa9febd4 (patch) | |
tree | b97ccc240e2ba78d210f25544d6199d37b306713 /spec/controllers/api | |
parent | 2cc3111a7775066c34eb407cd3b4707acc659488 (diff) |
Improve spec coverage and clean up api/v1/favourites controller (#3472)
Diffstat (limited to 'spec/controllers/api')
-rw-r--r-- | spec/controllers/api/v1/favourites_controller_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/controllers/api/v1/favourites_controller_spec.rb b/spec/controllers/api/v1/favourites_controller_spec.rb index a6e9963e5..062e91adc 100644 --- a/spec/controllers/api/v1/favourites_controller_spec.rb +++ b/spec/controllers/api/v1/favourites_controller_spec.rb @@ -7,12 +7,14 @@ RSpec.describe Api::V1::FavouritesController, type: :controller do let(:token) { double acceptable?: true, resource_owner_id: user.id } before do + Fabricate(:favourite, account: user.account) allow(controller).to receive(:doorkeeper_token) { token } end describe 'GET #index' do it 'returns http success' do - get :index + get :index, params: { limit: 1 } + expect(response).to have_http_status(:success) end end |