diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-08-09 16:58:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-08-09 16:58:36 +0000 |
commit | f1650b8ff48aec72afd83e17b07eca2b0b7d9b55 (patch) | |
tree | 4102180f875b50464c75ae696e3621e56b8a3601 /test/functional/auto_completes_controller_test.rb | |
parent | f82a7a35b0e1bebdc190e70e79be3e7f39d24896 (diff) | |
download | redmine-f1650b8ff48aec72afd83e17b07eca2b0b7d9b55.tar.gz redmine-f1650b8ff48aec72afd83e17b07eca2b0b7d9b55.zip |
Adds autocomplete to issue field on time logging form.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10182 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/auto_completes_controller_test.rb')
-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 554d52088..0be93b049 100644 --- a/test/functional/auto_completes_controller_test.rb +++ b/test/functional/auto_completes_controller_test.rb @@ -40,6 +40,13 @@ class AutoCompletesControllerTest < ActionController::TestCase assert assigns(:issues).include?(Issue.find(13)) end + def test_auto_complete_without_project_should_search_all_projects + get :issues, :q => '13' + assert_response :success + assert_not_nil assigns(:issues) + assert assigns(:issues).include?(Issue.find(13)) + end + def test_auto_complete_without_scope_all_should_not_search_other_projects get :issues, :project_id => 'ecookbook', :q => '13' assert_response :success |