Module: ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting
- Extended by:
- ActiveSupport::Concern
- Defined in:
- actionpack/lib/action_dispatch/testing/assertions/routing.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Methods included from ActiveSupport::Concern
append_features, class_methods, extended, included, prepend_features, prepended
Instance Method Details
#with_routing(&block) ⇒ Object
37 38 39 40 41 42 43 |
# File 'actionpack/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 |