This test is invalid for new router
This commit is contained in:
parent
faba03850a
commit
8f2c0bf1a0
@ -485,26 +485,6 @@ def test_nested_restful_routes
|
||||
end
|
||||
end
|
||||
|
||||
def test_nested_restful_routes_with_overwritten_defaults
|
||||
with_routing do |set|
|
||||
set.draw do
|
||||
resources :threads do
|
||||
resources :messages, :name_prefix => nil do
|
||||
resources :comments, :name_prefix => nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
assert_simply_restful_for :threads
|
||||
assert_simply_restful_for :messages,
|
||||
:path_prefix => 'threads/1/',
|
||||
:options => { :thread_id => '1' }
|
||||
assert_simply_restful_for :comments,
|
||||
:path_prefix => 'threads/1/messages/2/',
|
||||
:options => { :thread_id => '1', :message_id => '2' }
|
||||
end
|
||||
end
|
||||
|
||||
def test_shallow_nested_restful_routes
|
||||
with_routing do |set|
|
||||
set.draw do
|
||||
|
Loading…
Reference in New Issue
Block a user