mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
test-case => failing
This commit is contained in:
parent
d6bc2fa5a9
commit
55d9176b4a
1 changed files with 13 additions and 0 deletions
|
@ -1253,6 +1253,19 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
|
|||
assert_equal 'api/v3/products#list', @response.body
|
||||
end
|
||||
|
||||
def test_controller_option_with_nesting_and_leading_slash
|
||||
draw do
|
||||
scope '/job', controller: 'job' do
|
||||
scope ':id', action: 'manage_applicant' do
|
||||
get "/active"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
get '/job/5/active'
|
||||
assert_equal 'job#manage_applicant', @response.body
|
||||
end
|
||||
|
||||
def test_dynamically_generated_helpers_on_collection_do_not_clobber_resources_url_helper
|
||||
draw do
|
||||
resources :replies do
|
||||
|
|
Loading…
Reference in a new issue