Change user's diary comments path to match model name
This commit is contained in:
parent
899795a82b
commit
6f71b372fb
3 changed files with 12 additions and 9 deletions
|
@ -9,7 +9,7 @@ class DiaryCommentsControllerTest < ActionDispatch::IntegrationTest
|
|||
|
||||
def test_routes
|
||||
assert_routing(
|
||||
{ :path => "/user/username/diary/comments", :method => :get },
|
||||
{ :path => "/user/username/diary_comments", :method => :get },
|
||||
{ :controller => "diary_comments", :action => "index", :display_name => "username" }
|
||||
)
|
||||
assert_routing(
|
||||
|
@ -26,7 +26,10 @@ class DiaryCommentsControllerTest < ActionDispatch::IntegrationTest
|
|||
)
|
||||
|
||||
get "/user/username/diary/comments/1"
|
||||
assert_redirected_to "/user/username/diary/comments"
|
||||
assert_redirected_to "/user/username/diary_comments"
|
||||
|
||||
get "/user/username/diary/comments"
|
||||
assert_redirected_to "/user/username/diary_comments"
|
||||
end
|
||||
|
||||
def test_index
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue