We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc4f530 + 63609f2 commit 7bb4e1bCopy full SHA for 7bb4e1b
lib/rspec/rails/example/request_example_group.rb
@@ -11,10 +11,8 @@ module RequestExampleGroup
11
include RSpec::Rails::Matchers::RenderTemplate
12
include ActionController::TemplateAssertions
13
14
- begin
+ if ActionPack::VERSION::MAJOR >= 5
15
include ActionDispatch::IntegrationTest::Behavior
16
- rescue NameError # rubocop:disable Lint/HandleExceptions
17
- # rails is too old to provide integration test helpers
18
end
19
20
# Delegates to `Rails.application`.
0 commit comments