diff options
author | Go MAEDA <maeda@farend.jp> | 2019-02-18 14:56:19 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-02-18 14:56:19 +0000 |
commit | b68dcfc930399bffdeef154f666d5e516c7680ae (patch) | |
tree | baff4b32b46056ede371b42b690b0d5115111819 /test | |
parent | b41c5c89d482225b1252dfcd7d700c505f2afc03 (diff) | |
download | redmine-b68dcfc930399bffdeef154f666d5e516c7680ae.tar.gz redmine-b68dcfc930399bffdeef154f666d5e516c7680ae.zip |
Issues autocomplete should response with content type json and not html (#30818).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@17881 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/auto_completes_controller_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/auto_completes_controller_test.rb b/test/functional/auto_completes_controller_test.rb index f4f8b4fbf..4be188140 100644 --- a/test/functional/auto_completes_controller_test.rb +++ b/test/functional/auto_completes_controller_test.rb @@ -138,4 +138,14 @@ class AutoCompletesControllerTest < Redmine::ControllerTest assert_include "issue", response.body assert_not_include "Bug #12: Closed issue on a locked version", response.body end + + def test_auto_complete_should_return_json_content_type_response + get :issues, :params => { + :project_id => 'subproject1', + :q => '#13' + } + + assert_response :success + assert_include 'application/json', response.headers['Content-Type'] + end end |