mirror of
https://github.com/redmine/redmine.git
synced 2026-06-27 16:57:48 +02:00
Fix RuboCop offense Rails/HttpStatus (#39889).
git-svn-id: https://svn.redmine.org/redmine/trunk@22837 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -43,7 +43,7 @@ class JournalsControllerTest < Redmine::ControllerTest
|
||||
:query_id => 999
|
||||
}
|
||||
)
|
||||
assert_response 404
|
||||
assert_response :not_found
|
||||
end
|
||||
|
||||
def test_index_should_return_privates_notes_with_permission_only
|
||||
@@ -156,7 +156,7 @@ class JournalsControllerTest < Redmine::ControllerTest
|
||||
:detail_id => detail.id
|
||||
}
|
||||
)
|
||||
assert_response 302
|
||||
assert_response :found
|
||||
end
|
||||
|
||||
def test_diff_should_default_to_description_diff
|
||||
@@ -179,7 +179,7 @@ class JournalsControllerTest < Redmine::ControllerTest
|
||||
def test_reply_to_issue_without_permission
|
||||
@request.session[:user_id] = 7
|
||||
get(:new, :params => {:id => 6}, :xhr => true)
|
||||
assert_response 403
|
||||
assert_response :forbidden
|
||||
end
|
||||
|
||||
def test_reply_to_note
|
||||
@@ -224,7 +224,7 @@ class JournalsControllerTest < Redmine::ControllerTest
|
||||
},
|
||||
:xhr => true
|
||||
)
|
||||
assert_response 404
|
||||
assert_response :not_found
|
||||
end
|
||||
|
||||
def test_edit_xhr
|
||||
@@ -247,7 +247,7 @@ class JournalsControllerTest < Redmine::ControllerTest
|
||||
|
||||
Role.find(1).remove_permission! :view_private_notes
|
||||
get(:edit, :params => {:id => journal.id}, :xhr => true)
|
||||
assert_response 404
|
||||
assert_response :not_found
|
||||
end
|
||||
|
||||
def test_update_xhr
|
||||
|
||||
Reference in New Issue
Block a user