Respond with 404 when params[:ids] is missing (#12898).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11226 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -226,6 +226,11 @@ class ContextMenusControllerTest < ActionController::TestCase
|
||||
assert_equal [1], assigns(:issues).collect(&:id)
|
||||
end
|
||||
|
||||
def test_should_respond_with_404_without_ids
|
||||
get :issues
|
||||
assert_response 404
|
||||
end
|
||||
|
||||
def test_time_entries_context_menu
|
||||
@request.session[:user_id] = 2
|
||||
get :time_entries, :ids => [1, 2]
|
||||
|
||||
Reference in New Issue
Block a user