summaryrefslogtreecommitdiff
path: root/features/steps/project/snippets.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps/project/snippets.rb')
-rw-r--r--features/steps/project/snippets.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/features/steps/project/snippets.rb b/features/steps/project/snippets.rb
index e3f5e9e3ef3..dd49701a3d9 100644
--- a/features/steps/project/snippets.rb
+++ b/features/steps/project/snippets.rb
@@ -23,7 +23,9 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
step 'I click link "New snippet"' do
- first(:link, "New snippet").click
+ page.within '#content-body' do
+ first(:link, "New snippet").click
+ end
end
step 'I click link "Snippet one"' do