lib/rspec/rails/example/request_example_group.rb in rspec-rails-3.5.0 vs lib/rspec/rails/example/request_example_group.rb in rspec-rails-3.5.1
- old
+ new
@@ -9,13 +9,11 @@
include ActionDispatch::Assertions
include RSpec::Rails::Matchers::RedirectTo
include RSpec::Rails::Matchers::RenderTemplate
include ActionController::TemplateAssertions
- begin
+ if ActionPack::VERSION::MAJOR >= 5
include ActionDispatch::IntegrationTest::Behavior
- rescue NameError # rubocop:disable Lint/HandleExceptions
- # rails is too old to provide integration test helpers
end
# Delegates to `Rails.application`.
def app
::Rails.application