diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-31 22:43:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-31 22:43:24 +0000 |
commit | f29ced77a77629d752a8375f10608b011e6c7d93 (patch) | |
tree | b8c49f48c7ac77cce783fd97dd2e357502779feb /test | |
parent | bf2613a02b6a463d7ead58bc76e7bf5003b50c24 (diff) | |
download | redmine-f29ced77a77629d752a8375f10608b011e6c7d93.tar.gz redmine-f29ced77a77629d752a8375f10608b011e6c7d93.zip |
Makes autocomplete accept issue id with hash.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11292 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/auto_completes_controller_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/auto_completes_controller_test.rb b/test/functional/auto_completes_controller_test.rb index 7464d0a1c..e9e99def5 100644 --- a/test/functional/auto_completes_controller_test.rb +++ b/test/functional/auto_completes_controller_test.rb @@ -50,6 +50,13 @@ class AutoCompletesControllerTest < ActionController::TestCase assert assigns(:issues).include?(Issue.find(13)) 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 get :issues, :project_id => 'ecookbook', :q => '13', :scope => 'all' assert_response :success |