Use #query_scope instead of #parent in a Spinach feature

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2017-11-14 09:29:54 +01:00
parent 701577f0f2
commit 70c31ab42e
No known key found for this signature in database
GPG Key ID: 46DF07E5CD9E96AB
1 changed files with 1 additions and 1 deletions

View File

@ -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