--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: temporary_routes
comment: 
- !ruby/struct:SM::Flow::P 
  body: A helper to make it easier to test different route configurations. This method temporarily replaces ActionController::Routing::Routes with a new RouteSet instance.
- !ruby/struct:SM::Flow::P 
  body: "The new instance is yielded to the passed block. Typically the block will create some routes using map.draw { map.connect ... }:"
- !ruby/struct:SM::Flow::VERB 
  body: "  with_routing do |set|\n    set.draw { set.connect ':controller/:id/:action' }\n    assert_equal(\n       ['/content/10/show', {}],\n       set.generate(:controller =&gt; 'content', :id =&gt; 10, :action =&gt; 'show')\n    )\n  end\n"
full_name: ActionController::TestProcess#with_routing
is_singleton: false
name: with_routing
params: () {|temporary_routes| ...}
visibility: public
