Skip to content

Commit 632a2c3

Browse files
authored
Add Capybara RSpec matchers for request specs
This enables you to call matchers like `have_css` in your request specs.
1 parent 7d416f7 commit 632a2c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ruby_on_rails/rspec.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ RSpec.configure do |config|
108108
config.include FactoryBot::Syntax::Methods
109109
config.include ActiveSupport::Testing::TimeHelpers
110110
config.include JavaScriptErrorReporter, type: :system, js: true
111+
config.include Capybara::RSpecMatchers, type: :request
111112

112113
config.infer_spec_type_from_file_location!
113114

0 commit comments

Comments
 (0)