diff options
author | Cagdas Gerede <Earth@BlueSky> | 2016-11-13 03:12:35 +0300 |
---|---|---|
committer | Cagdas Gerede <Earth@BlueSky> | 2016-11-13 03:12:35 +0300 |
commit | 37cad72970c1e75f9c63425bba780d7bfe554b95 (patch) | |
tree | ed6b908e04f8fe3aef22f56774732a583f318ad5 /spec/controllers/projects/forks_controller_spec.rb | |
parent | 2c55d8167b32cb997a1f579df26ff52535455545 (diff) | |
download | gitlab-ce-37cad72970c1e75f9c63425bba780d7bfe554b95.tar.gz |
Move sign_out out of it into before
Diffstat (limited to 'spec/controllers/projects/forks_controller_spec.rb')
-rw-r--r-- | spec/controllers/projects/forks_controller_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/controllers/projects/forks_controller_spec.rb b/spec/controllers/projects/forks_controller_spec.rb index 2bce652f4c5..d29404e4a11 100644 --- a/spec/controllers/projects/forks_controller_spec.rb +++ b/spec/controllers/projects/forks_controller_spec.rb @@ -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 |