| 376 | | controller.assert_routing collection_path, :action => 'index' |
|---|
| 377 | | controller.assert_routing new_path, :action => 'new' |
|---|
| 378 | | controller.assert_routing member_path, :action => 'show', :id => '1' |
|---|
| 379 | | controller.assert_routing edit_member_path, :action => 'edit', :id => '1' |
|---|
| 380 | | controller.assert_routing "#{collection_path}.xml", :action => 'index', :format => 'xml' |
|---|
| 381 | | controller.assert_routing "#{new_path}.xml", :action => 'new', :format => 'xml' |
|---|
| 382 | | controller.assert_routing "#{member_path}.xml", :action => 'show', :id => '1', :format => 'xml' |
|---|
| 383 | | controller.assert_routing formatted_edit_member_path, :action => 'edit', :id => '1', :format => 'xml' |
|---|
| | 390 | unless options[:without].include?(:collection) |
|---|
| | 391 | controller.assert_routing collection_path, :action => 'index' |
|---|
| | 392 | controller.assert_routing new_path, :action => 'new' |
|---|
| | 393 | end |
|---|
| | 394 | unless options[:without].include?(:member) |
|---|
| | 395 | controller.assert_routing member_path, :action => 'show', :id => '1' |
|---|
| | 396 | controller.assert_routing edit_member_path, :action => 'edit', :id => '1' |
|---|
| | 397 | end |
|---|
| | 398 | |
|---|
| | 399 | unless options[:without].include?(:collection) |
|---|
| | 400 | controller.assert_routing "#{collection_path}.xml", :action => 'index', :format => 'xml' |
|---|
| | 401 | controller.assert_routing "#{new_path}.xml", :action => 'new', :format => 'xml' |
|---|
| | 402 | end |
|---|
| | 403 | unless options[:without].include?(:member) |
|---|
| | 404 | controller.assert_routing "#{member_path}.xml", :action => 'show', :id => '1', :format => 'xml' |
|---|
| | 405 | controller.assert_routing formatted_edit_member_path, :action => 'edit', :id => '1', :format => 'xml' |
|---|
| | 406 | end |
|---|
| 386 | | assert_recognizes(options[:options].merge(:action => 'index'), :path => collection_path, :method => :get) |
|---|
| 387 | | assert_recognizes(options[:options].merge(:action => 'new'), :path => new_path, :method => :get) |
|---|
| 388 | | assert_recognizes(options[:options].merge(:action => 'create'), :path => collection_path, :method => :post) |
|---|
| 389 | | assert_recognizes(options[:options].merge(:action => 'show', :id => '1'), :path => member_path, :method => :get) |
|---|
| 390 | | assert_recognizes(options[:options].merge(:action => 'edit', :id => '1'), :path => edit_member_path, :method => :get) |
|---|
| 391 | | assert_recognizes(options[:options].merge(:action => 'update', :id => '1'), :path => member_path, :method => :put) |
|---|
| 392 | | assert_recognizes(options[:options].merge(:action => 'destroy', :id => '1'), :path => member_path, :method => :delete) |
|---|
| | 409 | unless options[:without].include?(:collection) |
|---|
| | 410 | assert_recognizes(options[:options].merge(:action => 'index'), :path => collection_path, :method => :get) |
|---|
| | 411 | assert_recognizes(options[:options].merge(:action => 'new'), :path => new_path, :method => :get) |
|---|
| | 412 | assert_recognizes(options[:options].merge(:action => 'create'), :path => collection_path, :method => :post) |
|---|
| | 413 | end |
|---|
| | 414 | unless options[:without].include?(:member) |
|---|
| | 415 | assert_recognizes(options[:options].merge(:action => 'show', :id => '1'), :path => member_path, :method => :get) |
|---|
| | 416 | assert_recognizes(options[:options].merge(:action => 'edit', :id => '1'), :path => edit_member_path, :method => :get) |
|---|
| | 417 | assert_recognizes(options[:options].merge(:action => 'update', :id => '1'), :path => member_path, :method => :put) |
|---|
| | 418 | assert_recognizes(options[:options].merge(:action => 'destroy', :id => '1'), :path => member_path, :method => :delete) |
|---|
| | 419 | end |
|---|
| 394 | | assert_recognizes(options[:options].merge(:action => 'index', :format => 'xml'), :path => "#{collection_path}.xml", :method => :get) |
|---|
| 395 | | assert_recognizes(options[:options].merge(:action => 'new', :format => 'xml'), :path => "#{new_path}.xml", :method => :get) |
|---|
| 396 | | assert_recognizes(options[:options].merge(:action => 'create', :format => 'xml'), :path => "#{collection_path}.xml", :method => :post) |
|---|
| 397 | | assert_recognizes(options[:options].merge(:action => 'show', :id => '1', :format => 'xml'), :path => "#{member_path}.xml", :method => :get) |
|---|
| 398 | | assert_recognizes(options[:options].merge(:action => 'edit', :id => '1', :format => 'xml'), :path => formatted_edit_member_path, :method => :get) |
|---|
| 399 | | assert_recognizes(options[:options].merge(:action => 'update', :id => '1', :format => 'xml'), :path => "#{member_path}.xml", :method => :put) |
|---|
| 400 | | assert_recognizes(options[:options].merge(:action => 'destroy', :id => '1', :format => 'xml'), :path => "#{member_path}.xml", :method => :delete) |
|---|
| | 421 | unless options[:without].include?(:collection) |
|---|
| | 422 | assert_recognizes(options[:options].merge(:action => 'index', :format => 'xml'), :path => "#{collection_path}.xml", :method => :get) |
|---|
| | 423 | assert_recognizes(options[:options].merge(:action => 'new', :format => 'xml'), :path => "#{new_path}.xml", :method => :get) |
|---|
| | 424 | assert_recognizes(options[:options].merge(:action => 'create', :format => 'xml'), :path => "#{collection_path}.xml", :method => :post) |
|---|
| | 425 | end |
|---|
| | 426 | unless options[:without].include?(:member) |
|---|
| | 427 | assert_recognizes(options[:options].merge(:action => 'show', :id => '1', :format => 'xml'), :path => "#{member_path}.xml", :method => :get) |
|---|
| | 428 | assert_recognizes(options[:options].merge(:action => 'edit', :id => '1', :format => 'xml'), :path => formatted_edit_member_path, :method => :get) |
|---|
| | 429 | assert_recognizes(options[:options].merge(:action => 'update', :id => '1', :format => 'xml'), :path => "#{member_path}.xml", :method => :put) |
|---|
| | 430 | assert_recognizes(options[:options].merge(:action => 'destroy', :id => '1', :format => 'xml'), :path => "#{member_path}.xml", :method => :delete) |
|---|
| | 431 | end |
|---|
| 422 | | assert_named_route "#{full_prefix}", "#{name_prefix}#{controller_name}_path", options[:options] |
|---|
| 423 | | assert_named_route "#{full_prefix}/new", "#{name_prefix}new_#{singular_name}_path", options[:options] |
|---|
| 424 | | assert_named_route "#{full_prefix}/1", "#{name_prefix}#{singular_name}_path", options[:options].merge(:id => '1') |
|---|
| 425 | | assert_named_route "#{full_prefix}/1;edit", "#{name_prefix}edit_#{singular_name}_path", options[:options].merge(:id => '1') |
|---|
| 426 | | assert_named_route "#{full_prefix}.xml", "formatted_#{name_prefix}#{controller_name}_path", options[:options].merge( :format => 'xml') |
|---|
| 427 | | assert_named_route "#{full_prefix}/new.xml", "formatted_#{name_prefix}new_#{singular_name}_path", options[:options].merge( :format => 'xml') |
|---|
| 428 | | assert_named_route "#{full_prefix}/1.xml", "formatted_#{name_prefix}#{singular_name}_path", options[:options].merge(:id => '1', :format => 'xml') |
|---|
| 429 | | assert_named_route "#{full_prefix}/1.xml;edit", "formatted_#{name_prefix}edit_#{singular_name}_path", options[:options].merge(:id => '1', :format => 'xml') |
|---|
| | 460 | unless options[:without].include?(:collection) |
|---|
| | 461 | assert_named_route "#{full_prefix}", "#{name_prefix}#{controller_name}_path", options[:options] |
|---|
| | 462 | assert_named_route "#{full_prefix}/new", "#{name_prefix}new_#{singular_name}_path", options[:options] |
|---|
| | 463 | end |
|---|
| | 464 | unless options[:without].include?(:member) |
|---|
| | 465 | assert_named_route "#{full_prefix}/1", "#{name_prefix}#{singular_name}_path", options[:options].merge(:id => '1') |
|---|
| | 466 | assert_named_route "#{full_prefix}/1;edit", "#{name_prefix}edit_#{singular_name}_path", options[:options].merge(:id => '1') |
|---|
| | 467 | end |
|---|
| | 468 | unless options[:without].include?(:collection) |
|---|
| | 469 | assert_named_route "#{full_prefix}.xml", "formatted_#{name_prefix}#{controller_name}_path", options[:options].merge( :format => 'xml') |
|---|
| | 470 | assert_named_route "#{full_prefix}/new.xml", "formatted_#{name_prefix}new_#{singular_name}_path", options[:options].merge( :format => 'xml') |
|---|
| | 471 | end |
|---|
| | 472 | unless options[:without].include?(:member) |
|---|
| | 473 | assert_named_route "#{full_prefix}/1.xml", "formatted_#{name_prefix}#{singular_name}_path", options[:options].merge(:id => '1', :format => 'xml') |
|---|
| | 474 | assert_named_route "#{full_prefix}/1.xml;edit", "formatted_#{name_prefix}edit_#{singular_name}_path", options[:options].merge(:id => '1', :format => 'xml') |
|---|
| | 475 | end |
|---|