diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-21 17:07:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-21 17:07:18 +0000 |
commit | 07aa3c55bdc72a7ab3565c5903a4560b6785aac5 (patch) | |
tree | 76bc2e808f42389512284541f45d4ffa3e16c673 /test | |
parent | 739e11702a810b0a84959679a634cf72f75815e6 (diff) | |
download | redmine-07aa3c55bdc72a7ab3565c5903a4560b6785aac5.tar.gz redmine-07aa3c55bdc72a7ab3565c5903a4560b6785aac5.zip |
Contextual quick search (#3263).
Eg. when viewing issues, the quick search will search issues only.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2943 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/issues_controller_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 0c5017251..de45e96d9 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -1093,4 +1093,11 @@ class IssuesControllerTest < ActionController::TestCase assert_equal 2, TimeEntry.find(1).issue_id assert_equal 2, TimeEntry.find(2).issue_id end + + def test_default_search_scope + get :index + assert_tag :div, :attributes => {:id => 'quick-search'}, + :child => {:tag => 'form', + :child => {:tag => 'input', :attributes => {:name => 'issues', :type => 'hidden', :value => '1'}}} + end end |