summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-05 08:18:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-05 08:18:14 +0000
commit89da75623d52de8b68ace6c219636ffad23e732e (patch)
tree4e3cb9d1adf0823050efd76e80f29c628fd54db5 /test/integration/api_test
parentc7653df32b9c0b6a9b56232b758c49eca2bd7e90 (diff)
downloadredmine-89da75623d52de8b68ace6c219636ffad23e732e.tar.gz
redmine-89da75623d52de8b68ace6c219636ffad23e732e.zip
Adds a test for invalid enumeration class parameter.
git-svn-id: http://svn.redmine.org/redmine/trunk@13708 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test')
-rw-r--r--test/integration/api_test/enumerations_test.rb6
1 files changed, 6 insertions, 0 deletions
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