From 6d18eea5abc3017ee366912126697e97a98e76a3 Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Sat, 4 Jul 2020 14:05:29 -0700 Subject: [PATCH] Add Capybara::RSpecMatchers to some tests that should include it --- spec/basic_node_spec.rb | 1 + spec/rack_test_spec.rb | 1 + spec/selector_spec.rb | 1 + 3 files changed, 3 insertions(+) diff --git a/spec/basic_node_spec.rb b/spec/basic_node_spec.rb index 55315284..f8a674a1 100644 --- a/spec/basic_node_spec.rb +++ b/spec/basic_node_spec.rb @@ -3,6 +3,7 @@ require 'spec_helper' RSpec.describe Capybara do + include Capybara::RSpecMatchers describe '.string' do let :string do described_class.string <<-STRING diff --git a/spec/rack_test_spec.rb b/spec/rack_test_spec.rb index b74b7e3e..c09e717d 100644 --- a/spec/rack_test_spec.rb +++ b/spec/rack_test_spec.rb @@ -38,6 +38,7 @@ Capybara::SpecHelper.run_specs TestSessions::RackTest, 'RackTest', capybara_skip end RSpec.describe Capybara::Session do # rubocop:disable RSpec/MultipleDescribes + include Capybara::RSpecMatchers context 'with rack test driver' do let(:session) { TestSessions::RackTest } diff --git a/spec/selector_spec.rb b/spec/selector_spec.rb index afb026ac..39fa4c01 100644 --- a/spec/selector_spec.rb +++ b/spec/selector_spec.rb @@ -3,6 +3,7 @@ require 'spec_helper' RSpec.describe Capybara do + include Capybara::RSpecMatchers describe 'Selectors' do let :string do described_class.string <<-STRING