diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-10-30 15:57:53 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-10-30 15:57:53 -0500 |
commit | 7513bd06c81c7ff320da68a537bb2dfc2b2ab1d3 (patch) | |
tree | bfcc5284f7e88d0839acde52d25eba42f7fdbe00 /spec/features/projects | |
parent | 5445f839e8a1f8bb6ff1a3cf68c3b5d59f3681bc (diff) | |
download | gitlab-ce-7513bd06c81c7ff320da68a537bb2dfc2b2ab1d3.tar.gz |
fix set_cookie references within ref_switcher_spec.rb
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/ref_switcher_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/features/projects/ref_switcher_spec.rb b/spec/features/projects/ref_switcher_spec.rb index 50c0bfd580d..44b70b7b52a 100644 --- a/spec/features/projects/ref_switcher_spec.rb +++ b/spec/features/projects/ref_switcher_spec.rb @@ -1,12 +1,14 @@ require 'rails_helper' feature 'Ref switcher', :js do + include CookieHelper + let(:user) { create(:user) } let(:project) { create(:project, :public, :repository) } before do project.team << [user, :master] - page.driver.set_cookie('new_repo', 'true') + set_cookie('new_repo', 'true') sign_in(user) visit project_tree_path(project, 'master') end |