Ensure that user is actually guest when testing

This commit is contained in:
CactusPuppy 2021-02-27 11:25:37 -08:00
parent b94894fe87
commit 0aa33c497c
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -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