Updated with_routing example to 3.x syntax [ci skip]
This commit is contained in:
parent
acec6d3b78
commit
5fcf885d58
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user