diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-11 11:01:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-11 11:01:35 +0000 |
commit | 1ca69f2af1eb152264fa0b0493f5173900da2f08 (patch) | |
tree | de68bc6563158a017ed46b31978e973f941fd454 /test/functional/search_controller_test.rb | |
parent | 212bf1e2bbe680261beb4e096a051f63471cc45f (diff) | |
download | redmine-1ca69f2af1eb152264fa0b0493f5173900da2f08.tar.gz redmine-1ca69f2af1eb152264fa0b0493f5173900da2f08.zip |
Different icon for closed issues in search result (#992).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2256 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/search_controller_test.rb')
-rw-r--r-- | test/functional/search_controller_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb index ce06ec298..b804bbd28 100644 --- a/test/functional/search_controller_test.rb +++ b/test/functional/search_controller_test.rb @@ -45,6 +45,17 @@ class SearchControllerTest < Test::Unit::TestCase assert_tag :a, :content => 'Changesets (4)' end + def test_search_issues + get :index, :q => 'issue', :issues => 1 + assert_response :success + assert_template 'index' + + assert assigns(:results).include?(Issue.find(8)) + assert assigns(:results).include?(Issue.find(5)) + assert_tag :dt, :attributes => { :class => /issue closed/ }, + :child => { :tag => 'a', :content => /Closed/ } + end + def test_search_project_and_subprojects get :index, :id => 1, :q => 'recipe subproject', :scope => 'subprojects', :submit => 'Search' assert_response :success |