Commit 37cad729 authored by Cagdas Gerede's avatar Cagdas Gerede

Move sign_out out of it into before

parent 2c55d816
......@@ -70,10 +70,9 @@ describe Projects::ForksController do
describe 'GET new' do
context 'when user is not logged in' do
before { sign_out(user) }
it 'redirects to the sign-in page' do
sign_out(user)
get :new,
namespace_id: project.namespace.to_param,
project_id: project.to_param
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment