From 4c42fc7c4cc4d322109306c433f1c234bdcfc397 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Mon, 1 Jun 2015 17:43:59 -0400 Subject: 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 --- features/steps/admin/settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'features/steps/admin') diff --git a/features/steps/admin/settings.rb b/features/steps/admin/settings.rb index 06616bfbd72..1c0b7a4b712 100644 --- a/features/steps/admin/settings.rb +++ b/features/steps/admin/settings.rb @@ -45,7 +45,7 @@ class Spinach::Features::AdminSettings < Spinach::FeatureSteps end step 'I should see all checkboxes checked' do - all('input[type=checkbox]').each do |checkbox| + page.all('input[type=checkbox]').each do |checkbox| expect(checkbox).to be_checked end end -- cgit v1.2.3