Use a resourceful path for message marking

This commit is contained in:
Andy Allan 2018-09-05 11:02:56 +08:00
parent 5405dde6ec
commit db30ea642e
4 changed files with 6 additions and 5 deletions

View file

@ -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(