diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-24 08:28:41 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-26 09:51:17 +0200 |
commit | 89f7345f3ffdc212e60d4d657d878d1e5d6d6f9a (patch) | |
tree | 50929c127d5b45237cfbe9dd1dd26a406a7e7ed5 /features/steps/explore | |
parent | 1302dc8f0420dacec65ef1dcc955763c6c263cec (diff) | |
download | gitlab-ce-89f7345f3ffdc212e60d4d657d878d1e5d6d6f9a.tar.gz |
Remove unnecessary page. from tests.
Diffstat (limited to 'features/steps/explore')
-rw-r--r-- | features/steps/explore/groups_feature.rb | 2 | ||||
-rw-r--r-- | features/steps/explore/projects.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/features/steps/explore/groups_feature.rb b/features/steps/explore/groups_feature.rb index b529c5f8455..94c918d932b 100644 --- a/features/steps/explore/groups_feature.rb +++ b/features/steps/explore/groups_feature.rb @@ -63,7 +63,7 @@ class Spinach::Features::ExploreGroupsFeature < Spinach::FeatureSteps end step 'I should not see member roles' do - page.body.should_not match(%r{owner|developer|reporter|guest}i) + body.should_not match(%r{owner|developer|reporter|guest}i) end protected diff --git a/features/steps/explore/projects.rb b/features/steps/explore/projects.rb index f31d32a4a2d..7248b2e8d8c 100644 --- a/features/steps/explore/projects.rb +++ b/features/steps/explore/projects.rb @@ -22,14 +22,14 @@ class Spinach::Features::ExploreProjectsFeature < Spinach::FeatureSteps step 'I should see empty public project details with http clone info' do project = Project.find_by(name: 'Empty Public Project') - page.all(:css, '.git-empty .clone').each do |element| + all(:css, '.git-empty .clone').each do |element| element.text.should include(project.http_url_to_repo) end end step 'I should see empty public project details with ssh clone info' do project = Project.find_by(name: 'Empty Public 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 |