Ensure that user is actually guest when testing
This commit is contained in:
parent
b94894fe87
commit
0aa33c497c
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,10 @@ feature 'BaseController' do
|
|||
|
||||
describe 'GET #verify_user_admin' do
|
||||
context 'when user is a guest' do
|
||||
before(:each) do
|
||||
sign_out
|
||||
end
|
||||
|
||||
it 'redirects to sign in page' do
|
||||
visit admin_conferences_path
|
||||
expect(current_path).to eq new_user_session_path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue