0
0
Fork 0

Improve spec coverage and clean up api/v1/blocks controller (#3464)

This commit is contained in:
Matt Jankowski 2017-05-31 14:34:51 -04:00 committed by Eugen Rochko
parent 0f155829b7
commit 5236a62861
2 changed files with 49 additions and 11 deletions

View file

@ -7,12 +7,14 @@ RSpec.describe Api::V1::BlocksController, type: :controller do
let(:token) { double acceptable?: true, resource_owner_id: user.id }
before do
Fabricate(:block, 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