Skip to content
Find file
33 lines (29 sloc) 883 Bytes
module RSpec
module Rails
# @api public
# Container class for request spec functionality.
module RequestExampleGroup
extend ActiveSupport::Concern
include RSpec::Rails::RailsExampleGroup
include ActionDispatch::Integration::Runner
include ActionDispatch::Assertions
include RSpec::Rails::Matchers::RedirectTo
include RSpec::Rails::Matchers::RenderTemplate
include ActionController::TemplateAssertions
begin
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
end
included do
before do
@routes = ::Rails.application.routes
end
end
end
end
end
Something went wrong with that request. Please try again.