##// END OF EJS Templates
Makes autocomplete accept issue id with hash....
Jean-Philippe Lang -
r11062:f29ced77a776
parent child
Show More
@@ -50,6 +50,13 class AutoCompletesControllerTest < ActionController::TestCase
50 assert assigns(:issues).include?(Issue.find(13))
50 assert assigns(:issues).include?(Issue.find(13))
51 end
51 end
52
52
53 def test_issues_should_return_issue_with_given_id_preceded_with_hash
54 get :issues, :project_id => 'subproject1', :q => '#13'
55 assert_response :success
56 assert_not_nil assigns(:issues)
57 assert assigns(:issues).include?(Issue.find(13))
58 end
59
53 def test_auto_complete_with_scope_all_should_search_other_projects
60 def test_auto_complete_with_scope_all_should_search_other_projects
54 get :issues, :project_id => 'ecookbook', :q => '13', :scope => 'all'
61 get :issues, :project_id => 'ecookbook', :q => '13', :scope => 'all'
55 assert_response :success
62 assert_response :success
General Comments 0
You need to be logged in to leave comments. Login now