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:
Jean-Philippe Lang
2013-01-20 16:04:25 +00:00
parent 6e6ce7c085
commit 15f035be51
2 changed files with 8 additions and 0 deletions
@@ -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]