Module: ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/action_dispatch/testing/assertions/routing.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#with_routing(&block) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/action_dispatch/testing/assertions/routing.rb', line 37 def with_routing(&block) old_routes = app.routes old_integration_session = integration_session create_routes(&block) ensure reset_routes(old_routes, old_integration_session) end |