diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-12 01:36:00 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-12 05:12:42 -0400 |
commit | 584f8601eff79fe6e400026ba6db086002ce2cba (patch) | |
tree | ca092524666d4b7353d766512800b8992359ac2a /features/steps/dashboard | |
parent | 69bbc413fec7aa4168d9ff12df5421674db90032 (diff) | |
download | gitlab-ce-584f8601eff79fe6e400026ba6db086002ce2cba.tar.gz |
Change `within` to `page.within` in feature steps
Diffstat (limited to 'features/steps/dashboard')
-rw-r--r-- | features/steps/dashboard/new_project.rb | 2 | ||||
-rw-r--r-- | features/steps/dashboard/starred_projects.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/features/steps/dashboard/new_project.rb b/features/steps/dashboard/new_project.rb index 07da5f9587e..ea89ad215c0 100644 --- a/features/steps/dashboard/new_project.rb +++ b/features/steps/dashboard/new_project.rb @@ -4,7 +4,7 @@ class Spinach::Features::NewProject < Spinach::FeatureSteps include SharedProject step 'I click "New project" link' do - within('.content') do + page.within('.content') do click_link "New project" end end diff --git a/features/steps/dashboard/starred_projects.rb b/features/steps/dashboard/starred_projects.rb index b098bbc47d0..59c73fe63f2 100644 --- a/features/steps/dashboard/starred_projects.rb +++ b/features/steps/dashboard/starred_projects.rb @@ -8,7 +8,7 @@ class Spinach::Features::DashboardStarredProjects < Spinach::FeatureSteps end step 'I should not see project "Shop"' do - within 'aside' do + page.within 'aside' do expect(page).not_to have_content('Shop') end end |