Permalink
Browse files

Updated with_routing example to 3.x syntax [ci skip]

  • Loading branch information...
1 parent acec6d3 commit 5fcf885d5854da64568bb1bf2c90c4e7d382db3d @morgoth morgoth committed Jul 12, 2012
Showing with 4 additions and 7 deletions.
  1. +4 −7 actionpack/lib/action_dispatch/testing/assertions/routing.rb
View
11 actionpack/lib/action_dispatch/testing/assertions/routing.rb
@@ -127,16 +127,13 @@ def assert_routing(path, options, defaults={}, extras={}, message=nil)
# 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

0 comments on commit 5fcf885

Please sign in to comment.