fix set_cookie references within multi-file editor specs

This commit is contained in:
Mike Greiling 2017-10-30 16:26:01 -05:00
parent 945a262dfa
commit d5bee2c6e0
No known key found for this signature in database
GPG key ID: 0303DF507FA67596
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,7 @@
require 'spec_helper'
feature 'Multi-file editor new directory', :js do
include CookieHelper
include WaitForRequests
let(:user) { create(:user) }
@ -10,7 +11,7 @@ feature 'Multi-file editor new directory', :js do
project.add_master(user)
sign_in(user)
page.driver.set_cookie('new_repo', 'true')
set_cookie('new_repo', 'true')
visit project_tree_path(project, :master)

View file

@ -1,6 +1,7 @@
require 'spec_helper'
feature 'Multi-file editor new file', :js do
include CookieHelper
include WaitForRequests
let(:user) { create(:user) }
@ -10,7 +11,7 @@ feature 'Multi-file editor new file', :js do
project.add_master(user)
sign_in(user)
page.driver.set_cookie('new_repo', 'true')
set_cookie('new_repo', 'true')
visit project_tree_path(project, :master)