From 89da75623d52de8b68ace6c219636ffad23e732e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 5 Dec 2014 08:18:14 +0000 Subject: [PATCH] Adds a test for invalid enumeration class parameter. git-svn-id: http://svn.redmine.org/redmine/trunk@13708 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/api_test/enumerations_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/api_test/enumerations_test.rb b/test/integration/api_test/enumerations_test.rb index 30509d1e8..463be6397 100644 --- a/test/integration/api_test/enumerations_test.rb +++ b/test/integration/api_test/enumerations_test.rb @@ -31,4 +31,10 @@ class Redmine::ApiTest::EnumerationsTest < Redmine::ApiTest::Base end end end + + test "GET /enumerations/invalid_subclass.xml should return 404" do + get '/enumerations/invalid_subclass.xml' + assert_response 404 + assert_equal 'application/xml', response.content_type + end end -- 2.39.5