diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-02 00:43:59 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-12 12:12:42 +0300 |
commit | 4c42fc7c4cc4d322109306c433f1c234bdcfc397 (patch) | |
tree | 94d72b0657df465ea50fb349e8dcacb959518569 /features/steps/dashboard | |
parent | 584f8601eff79fe6e400026ba6db086002ce2cba (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/dashboard')
-rw-r--r-- | features/steps/dashboard/new_project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/features/steps/dashboard/new_project.rb b/features/steps/dashboard/new_project.rb index ea89ad215c0..b4ade65ee53 100644 --- a/features/steps/dashboard/new_project.rb +++ b/features/steps/dashboard/new_project.rb @@ -22,7 +22,7 @@ class Spinach::Features::NewProject < Spinach::FeatureSteps expect(github_modal).to be_visible expect(github_modal).to have_content "To enable importing projects from GitHub" - all('.modal-body').each do |element| + page.all('.modal-body').each do |element| expect(element).not_to be_visible unless element == github_modal end end |