diff options
author | Wojciech Wnętrzak <w.wnetrzak@gmail.com> | 2012-07-12 21:33:49 +0200 |
---|---|---|
committer | Wojciech Wnętrzak <w.wnetrzak@gmail.com> | 2012-07-13 08:15:21 +0200 |
commit | 5fcf885d5854da64568bb1bf2c90c4e7d382db3d (patch) | |
tree | 4273b758a59766e3a0e4d4225392cdb3f2085b2d /actionpack/lib/action_dispatch/testing | |
parent | acec6d3b780e082bfaa33abde770cee6d049943c (diff) | |
download | rails-5fcf885d5854da64568bb1bf2c90c4e7d382db3d.tar.gz rails-5fcf885d5854da64568bb1bf2c90c4e7d382db3d.tar.bz2 rails-5fcf885d5854da64568bb1bf2c90c4e7d382db3d.zip |
Updated with_routing example to 3.x syntax [ci skip]
Diffstat (limited to 'actionpack/lib/action_dispatch/testing')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/routing.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/routing.rb b/actionpack/lib/action_dispatch/testing/assertions/routing.rb index 41fa3a4b95..9de545b3c5 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/routing.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/routing.rb @@ -127,16 +127,13 @@ module ActionDispatch # with a new RouteSet instance. # # The new instance is yielded to the passed block. Typically the block - # will create some routes using <tt>map.draw { map.connect ... }</tt>: + # will create some routes using <tt>set.draw { match ... }</tt>: # # with_routing do |set| - # set.draw do |map| - # map.connect ':controller/:action/:id' - # assert_equal( - # ['/content/10/show', {}], - # map.generate(:controller => 'content', :id => 10, :action => 'show') - # end + # set.draw do + # resources :users # end + # assert_equal "/users", users_path # end # def with_routing |