diff --git a/spec/controllers/projects/git/git_trees_controller_spec.rb b/spec/controllers/projects/git/git_trees_controller_spec.rb index 6b64bc8ce..92094d852 100644 --- a/spec/controllers/projects/git/git_trees_controller_spec.rb +++ b/spec/controllers/projects/git/git_trees_controller_spec.rb @@ -98,7 +98,7 @@ describe Projects::Git::TreesController do context 'for writer user' do before(:each) do user = FactoryGirl.create(:user) - create_relation(@project, @user, 'writer') + create_relation(@project, user, 'writer') set_session_for user end