Shorten note path helper calls in tests
This commit is contained in:
parent
b2acd6e49c
commit
23e00dc4c7
2 changed files with 44 additions and 44 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue