@@ -34,10 +34,20 class RoutingMessagesTest < ActionController::IntegrationTest | |||||
34 | :board_id => 'lala' } |
|
34 | :board_id => 'lala' } | |
35 | ) |
|
35 | ) | |
36 | assert_routing( |
|
36 | assert_routing( | |
|
37 | { :method => 'get', :path => "/boards/lala/topics/quote/22" }, | |||
|
38 | { :controller => 'messages', :action => 'quote', :id => '22', | |||
|
39 | :board_id => 'lala' } | |||
|
40 | ) | |||
|
41 | assert_routing( | |||
37 | { :method => 'post', :path => "/boards/lala/topics/new" }, |
|
42 | { :method => 'post', :path => "/boards/lala/topics/new" }, | |
38 | { :controller => 'messages', :action => 'new', :board_id => 'lala' } |
|
43 | { :controller => 'messages', :action => 'new', :board_id => 'lala' } | |
39 | ) |
|
44 | ) | |
40 | assert_routing( |
|
45 | assert_routing( | |
|
46 | { :method => 'post', :path => "/boards/lala/topics/preview" }, | |||
|
47 | { :controller => 'messages', :action => 'preview', | |||
|
48 | :board_id => 'lala' } | |||
|
49 | ) | |||
|
50 | assert_routing( | |||
41 | { :method => 'post', :path => "/boards/lala/topics/22/edit" }, |
|
51 | { :method => 'post', :path => "/boards/lala/topics/22/edit" }, | |
42 | { :controller => 'messages', :action => 'edit', :id => '22', |
|
52 | { :controller => 'messages', :action => 'edit', :id => '22', | |
43 | :board_id => 'lala' } |
|
53 | :board_id => 'lala' } |
General Comments 0
You need to be logged in to leave comments.
Login now