]> source.dussan.org Git - redmine.git/commitdiff
Makes autocomplete accept issue id with hash.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 31 Jan 2013 22:43:24 +0000 (22:43 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 31 Jan 2013 22:43:24 +0000 (22:43 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11292 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/auto_completes_controller_test.rb

index 7464d0a1c0a15440d62a363d0ad1cb360b1385b5..e9e99def55154404c37db11bc090b70b9b15fd6f 100644 (file)
@@ -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