Skip to content

Commit 7bb4e1b

Browse files
authored
Merge pull request #1660 from betesh/master
Don't swallow exceptions for flow control. fixes #1656
2 parents fc4f530 + 63609f2 commit 7bb4e1b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/rspec/rails/example/request_example_group.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ module RequestExampleGroup
1111
include RSpec::Rails::Matchers::RenderTemplate
1212
include ActionController::TemplateAssertions
1313

14-
begin
14+
if ActionPack::VERSION::MAJOR >= 5
1515
include ActionDispatch::IntegrationTest::Behavior
16-
rescue NameError # rubocop:disable Lint/HandleExceptions
17-
# rails is too old to provide integration test helpers
1816
end
1917

2018
# Delegates to `Rails.application`.

0 commit comments

Comments
 (0)