diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-05-31 14:34:51 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-31 20:34:51 +0200 |
commit | 5236a6286107f5731c5f57940592a46ebd3c6107 (patch) | |
tree | 341c2c93c877c1b029a6b05d55b3bbeb5fececb3 /spec/controllers/api/v1 | |
parent | 0f155829b7362d2bb81e2b80e96a351dc7dac538 (diff) |
Improve spec coverage and clean up api/v1/blocks controller (#3464)
Diffstat (limited to 'spec/controllers/api/v1')
-rw-r--r-- | spec/controllers/api/v1/blocks_controller_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/controllers/api/v1/blocks_controller_spec.rb b/spec/controllers/api/v1/blocks_controller_spec.rb index ca20a2d17..4fd968b27 100644 --- a/spec/controllers/api/v1/blocks_controller_spec.rb +++ b/spec/controllers/api/v1/blocks_controller_spec.rb @@ -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 |