summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-11-14 09:29:54 +0100
committerRémy Coutable <remy@rymai.me>2017-11-14 09:29:54 +0100
commit70c31ab42e24a4be588b79a82a98f7cf70316391 (patch)
treecb133dc93aa196eab058dd4f48c2b7bdd48c9aaf /features
parent701577f0f2954c54efa8e83d232b985f4571c4c6 (diff)
downloadgitlab-ce-70c31ab42e24a4be588b79a82a98f7cf70316391.tar.gz
Use #query_scope instead of #parent in a Spinach feature
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/commits/commits.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/steps/project/commits/commits.rb b/features/steps/project/commits/commits.rb
index 318e054e978..c623a516c47 100644
--- a/features/steps/project/commits/commits.rb
+++ b/features/steps/project/commits/commits.rb
@@ -62,7 +62,7 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
end
step 'I should see additional file lines' do
- page.within @diff.parent do
+ page.within @diff.query_scope do
expect(first('.new_line').text).not_to have_content "..."
end
end