Commit 22286a44 authored by jplang's avatar jplang

Makes autocomplete accept issue id with hash.

git-svn-id: https://svn.redmine.org/redmine/trunk@11292 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent ed9e5098
...@@ -50,6 +50,13 @@ class AutoCompletesControllerTest < ActionController::TestCase ...@@ -50,6 +50,13 @@ class AutoCompletesControllerTest < ActionController::TestCase
assert assigns(:issues).include?(Issue.find(13)) assert assigns(:issues).include?(Issue.find(13))
end end
def test_issues_should_return_issue_with_given_id_preceded_with_hash
get :issues, :project_id => 'subproject1', :q => '#13'
assert_response :success
assert_not_nil assigns(:issues)
assert assigns(:issues).include?(Issue.find(13))
end
def test_auto_complete_with_scope_all_should_search_other_projects def test_auto_complete_with_scope_all_should_search_other_projects
get :issues, :project_id => 'ecookbook', :q => '13', :scope => 'all' get :issues, :project_id => 'ecookbook', :q => '13', :scope => 'all'
assert_response :success assert_response :success
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment