| | 1585 | assert_equal( |
|---|
| | 1586 | { :controller => 'people', :action => 'show', :id => 5, :use_route => :show, :only_path => false }, |
|---|
| | 1587 | controller.send(:hash_for_show_url, 5) |
|---|
| | 1588 | ) |
|---|
| | 1589 | assert_equal( |
|---|
| | 1590 | { :controller => 'people', :action => 'show', :id => 5, :use_route => :show, :only_path => true }, |
|---|
| | 1591 | controller.send(:hash_for_show_path, 5) |
|---|
| | 1592 | ) |
|---|
| | 1593 | assert_equal( |
|---|
| | 1594 | { :controller => 'people', :action => 'multi', :foo => 5, |
|---|
| | 1595 | :bar=> "text", :id=>69, :use_route => :multi, :only_path => false }, |
|---|
| | 1596 | controller.send(:hash_for_multi_url, 5, "text", 69) |
|---|
| | 1597 | ) |
|---|
| | 1598 | assert_equal( |
|---|
| | 1599 | { :controller => 'people', :action => 'multi', :foo => 5, |
|---|
| | 1600 | :bar=> "text", :id=>69, :use_route => :multi, :only_path => true }, |
|---|
| | 1601 | controller.send(:hash_for_multi_path, 5, "text", 69) |
|---|
| | 1602 | ) |
|---|
| | 1603 | |
|---|
| | 1604 | end |
|---|
| | 1605 | |
|---|