about summary refs log tree commit diff
path: root/spec/controllers/api/v1/mutes_controller_spec.rb
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-05-31 14:27:34 -0400
committerEugen Rochko <eugen@zeonfederated.com>2017-05-31 20:27:34 +0200
commitbf811e4d4a8626579fc5187f465cdf1e79a32e10 (patch)
treec82ea9b435fdd9efe506f11df3d6896bc092ecdc /spec/controllers/api/v1/mutes_controller_spec.rb
parentd6774d2ca39b66ba6a80e707dbd58a6b391ee274 (diff)
Improve spec coverage and clean up api/v1/mutes controller (#3481)
Diffstat (limited to 'spec/controllers/api/v1/mutes_controller_spec.rb')
-rw-r--r--spec/controllers/api/v1/mutes_controller_spec.rb4
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