Makes autocomplete accept issue id with hash.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11292 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-01-31 22:43:24 +00:00
parent bf2613a02b
commit f29ced77a7
1 changed files with 7 additions and 0 deletions

View File

@ -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