Use a resourceful path for message marking
This commit is contained in:
parent
5405dde6ec
commit
db30ea642e
4 changed files with 6 additions and 5 deletions
|
@ -25,7 +25,7 @@ class MessagesControllerTest < ActionController::TestCase
|
|||
{ :controller => "messages", :action => "show", :id => "1" }
|
||||
)
|
||||
assert_routing(
|
||||
{ :path => "/message/mark/1", :method => :post },
|
||||
{ :path => "/messages/1/mark", :method => :post },
|
||||
{ :controller => "messages", :action => "mark", :message_id => "1" }
|
||||
)
|
||||
assert_routing(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue