diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-05-31 14:27:34 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-31 20:27:34 +0200 |
commit | bf811e4d4a8626579fc5187f465cdf1e79a32e10 (patch) | |
tree | c82ea9b435fdd9efe506f11df3d6896bc092ecdc /spec | |
parent | d6774d2ca39b66ba6a80e707dbd58a6b391ee274 (diff) |
Improve spec coverage and clean up api/v1/mutes controller (#3481)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/api/v1/mutes_controller_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/controllers/api/v1/mutes_controller_spec.rb b/spec/controllers/api/v1/mutes_controller_spec.rb index be8a5e7dd..85aad4384 100644 --- a/spec/controllers/api/v1/mutes_controller_spec.rb +++ b/spec/controllers/api/v1/mutes_controller_spec.rb @@ -7,12 +7,14 @@ RSpec.describe Api::V1::MutesController, type: :controller do let(:token) { double acceptable?: true, resource_owner_id: user.id } before do + Fabricate(:mute, 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 |