Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-02 00:43:59 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-06-12 12:12:42 +0300
commit4c42fc7c4cc4d322109306c433f1c234bdcfc397 (patch)
tree94d72b0657df465ea50fb349e8dcacb959518569 /features/steps/explore
parent584f8601eff79fe6e400026ba6db086002ce2cba (diff)
Call `page.all` instead of `all` in feature steps
There's a naming conflict between Capybara and rspec-matchers which both define the `all` method. See https://github.com/jnicklas/capybara/issues/1396
Diffstat (limited to 'features/steps/explore')
-rw-r--r--features/steps/explore/projects.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/steps/explore/projects.rb b/features/steps/explore/projects.rb
index 17c16c3fb1c..49c2f6a1253 100644
--- a/features/steps/explore/projects.rb
+++ b/features/steps/explore/projects.rb
@@ -22,14 +22,14 @@ class Spinach::Features::ExploreProjects < Spinach::FeatureSteps
step 'I should see empty public project details with http clone info' do
project = Project.find_by(name: 'Empty Public Project')
- all(:css, '.git-empty .clone').each do |element|
+ page.all(:css, '.git-empty .clone').each do |element|
expect(element.text).to 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')
- all(:css, '.git-empty .clone').each do |element|
+ page.all(:css, '.git-empty .clone').each do |element|
expect(element.text).to include(project.url_to_repo)
end
end