diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-03-15 07:28:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-03-15 07:28:25 +0000 |
commit | fa8984f36a3f61588c103da323cfbb0764243ef8 (patch) | |
tree | 9884d5484f6a8a2d30bfce919c8661097eb0d6e6 /test/integration | |
parent | e050625a29bbc3d29b0de18d8df1d9635c24be59 (diff) | |
download | redmine-fa8984f36a3f61588c103da323cfbb0764243ef8.tar.gz redmine-fa8984f36a3f61588c103da323cfbb0764243ef8.zip |
Searching for issue number with REST API redirects to issue HTML page (#29055).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17949 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/api_test/search_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/api_test/search_test.rb b/test/integration/api_test/search_test.rb index 65d4654d8..951fb45a9 100644 --- a/test/integration/api_test/search_test.rb +++ b/test/integration/api_test/search_test.rb @@ -91,4 +91,9 @@ class Redmine::ApiTest::SearchTest < Redmine::ApiTest::Base assert_equal 4, json['limit'] assert_equal issue[8..10], json['results'].map {|r| r['id']} end + + test "GET /search.xml should not quick jump to the issue with given id" do + get '/search.xml', :params => {:q => '3'} + assert_response :success + end end |