Shorten note path helper calls in tests

This commit is contained in:
Anton Khorev 2024-03-24 17:19:05 +03:00
parent b2acd6e49c
commit 23e00dc4c7
2 changed files with 44 additions and 44 deletions

View file

@ -99,12 +99,12 @@ class NotesControllerTest < ActionDispatch::IntegrationTest
def test_read_hidden_note
hidden_note_with_comment = create(:note_with_comments, :status => "hidden")
get note_path(:id => hidden_note_with_comment)
get note_path(hidden_note_with_comment)
assert_response :not_found
assert_template "browse/not_found"
assert_template :layout => "map"
get note_path(:id => hidden_note_with_comment), :xhr => true
get note_path(hidden_note_with_comment), :xhr => true
assert_response :not_found
assert_template "browse/not_found"
assert_template :layout => "xhr"