summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-20 16:04:25 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-20 16:04:25 +0000
commit15f035be518d65f6a8debed0dd19d58190e8b492 (patch)
treefab1590ec1a3066899a34b4b5c9aef50a1852d30 /test/functional
parent6e6ce7c08595fbc2b1562d89099a6d6bad769cd5 (diff)
downloadredmine-15f035be518d65f6a8debed0dd19d58190e8b492.tar.gz
redmine-15f035be518d65f6a8debed0dd19d58190e8b492.zip
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
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/context_menus_controller_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb
index b3e643510..9039ab00b 100644
--- a/test/functional/context_menus_controller_test.rb
+++ b/test/functional/context_menus_controller_test.rb
@@ -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]