Improve spec coverage and clean up api/v1/mutes controller (#3481)
This commit is contained in:
parent
d6774d2ca3
commit
bf811e4d4a
2 changed files with 49 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue