From b14b5e3b448eafa1489d6fe4b702621e25dff1ae Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 3 Dec 2016 20:04:19 +0100 Subject: Improve notification model --- spec/controllers/admin/accounts_controller_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'spec') 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 -- cgit