mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 08:46:01 +01:00
Adds a test for invalid enumeration class parameter.
git-svn-id: http://svn.redmine.org/redmine/trunk@13708 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user