From c9f21c9691033b1fb1d6ddb7dd48057ec4f25aa3 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 26 Jun 2015 16:01:02 +0200 Subject: [PATCH] Use page.within in tests Signed-off-by: Dmitriy Zaporozhets --- features/steps/project/issues/issues.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/steps/project/issues/issues.rb b/features/steps/project/issues/issues.rb index c3b34ab3f19..91d5c3688e2 100644 --- a/features/steps/project/issues/issues.rb +++ b/features/steps/project/issues/issues.rb @@ -263,19 +263,19 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps end step 'I should not see labels field' do - within '.issue-form' do + page.within '.issue-form' do expect(page).not_to have_content("Labels") end end step 'I should not see milestone field' do - within '.issue-form' do + page.within '.issue-form' do expect(page).not_to have_content("Milestone") end end step 'I should not see assignee field' do - within '.issue-form' do + page.within '.issue-form' do expect(page).not_to have_content("Assign to") end end