From 89f7345f3ffdc212e60d4d657d878d1e5d6d6f9a Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Wed, 24 Sep 2014 08:28:41 +0200 Subject: Remove unnecessary page. from tests. --- features/steps/project/issues.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'features/steps/project/issues.rb') diff --git a/features/steps/project/issues.rb b/features/steps/project/issues.rb index 1aaf8b1cb7e..137eac33238 100644 --- a/features/steps/project/issues.rb +++ b/features/steps/project/issues.rb @@ -113,7 +113,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps step 'I should see selected milestone with title "v3.0"' do issues_milestone_selector = "#issue_milestone_id_chzn > a" - page.find(issues_milestone_selector).should have_content("v3.0") + find(issues_milestone_selector).should have_content("v3.0") end When 'I select first assignee from "Shop" project' do @@ -126,7 +126,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps issues_assignee_selector = "#issue_assignee_id_chzn > a" assignee_name = project.users.first.name - page.find(issues_assignee_selector).should have_content(assignee_name) + find(issues_assignee_selector).should have_content(assignee_name) end step 'project "Shop" have "Release 0.4" open issue' do @@ -164,7 +164,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps step 'I see empty project details with ssh clone info' do project = Project.find_by(name: 'Empty Project') - page.all(:css, '.git-empty .clone').each do |element| + all(:css, '.git-empty .clone').each do |element| element.text.should include(project.url_to_repo) end end -- cgit v1.2.1