0
0
Fork 0

Improve notification model

This commit is contained in:
Eugen Rochko 2016-12-03 20:04:19 +01:00
parent 5abf64d647
commit b14b5e3b44
5 changed files with 27 additions and 9 deletions

View file

@ -13,8 +13,10 @@ RSpec.describe Admin::AccountsController, type: :controller do
end
describe 'GET #show' do
let(:account) { Fabricate(:account, username: 'bob') }
it 'returns http success' do
get :show, params: { id: 1 }
get :show, params: { id: account.id }
expect(response).to have_http_status(:success)
end
end