mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 00:36:01 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user