diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-03 20:04:19 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-03 20:04:19 +0100 |
commit | b14b5e3b448eafa1489d6fe4b702621e25dff1ae (patch) | |
tree | a4c7885fcede76232dbc476b3ebcf0c84859a87a /spec/controllers | |
parent | 5abf64d647b6f36a51f014b63f7b469b43378d3f (diff) |
Improve notification model
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/admin/accounts_controller_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/controllers/admin/accounts_controller_spec.rb b/spec/controllers/admin/accounts_controller_spec.rb index 485310495..47b1267e8 100644 --- a/spec/controllers/admin/accounts_controller_spec.rb +++ b/spec/controllers/admin/accounts_controller_spec.rb @@ -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 |