summaryrefslogtreecommitdiff
path: root/features/steps/snippets
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-12 01:36:00 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-06-12 05:12:42 -0400
commit584f8601eff79fe6e400026ba6db086002ce2cba (patch)
treeca092524666d4b7353d766512800b8992359ac2a /features/steps/snippets
parent69bbc413fec7aa4168d9ff12df5421674db90032 (diff)
downloadgitlab-ce-584f8601eff79fe6e400026ba6db086002ce2cba.tar.gz
Change `within` to `page.within` in feature steps
Diffstat (limited to 'features/steps/snippets')
-rw-r--r--features/steps/snippets/snippets.rb4
-rw-r--r--features/steps/snippets/user.rb6
2 files changed, 5 insertions, 5 deletions
diff --git a/features/steps/snippets/snippets.rb b/features/steps/snippets/snippets.rb
index 0f56fb03068..09fdd1b5a13 100644
--- a/features/steps/snippets/snippets.rb
+++ b/features/steps/snippets/snippets.rb
@@ -13,7 +13,7 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps
end
step 'I click link "Edit"' do
- within ".file-title" do
+ page.within ".file-title" do
click_link "Edit"
end
end
@@ -25,7 +25,7 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps
step 'I submit new snippet "Personal snippet three"' do
fill_in "personal_snippet_title", :with => "Personal snippet three"
fill_in "personal_snippet_file_name", :with => "my_snippet.rb"
- within('.file-editor') do
+ page.within('.file-editor') do
find(:xpath, "//input[@id='personal_snippet_content']").set 'Content of snippet three'
end
click_button "Create snippet"
diff --git a/features/steps/snippets/user.rb b/features/steps/snippets/user.rb
index e6c6ec27e76..007fcb2893f 100644
--- a/features/steps/snippets/user.rb
+++ b/features/steps/snippets/user.rb
@@ -32,19 +32,19 @@ class Spinach::Features::SnippetsUser < Spinach::FeatureSteps
end
step 'I click "Internal" filter' do
- within('.nav-tabs') do
+ page.within('.nav-tabs') do
click_link "Internal"
end
end
step 'I click "Private" filter' do
- within('.nav-tabs') do
+ page.within('.nav-tabs') do
click_link "Private"
end
end
step 'I click "Public" filter' do
- within('.nav-tabs') do
+ page.within('.nav-tabs') do
click_link "Public"
end
end