diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-26 16:54:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-26 16:54:30 +0000 |
commit | 7f6ac407ef11b94a3e99e4a712320f3a6faa22ec (patch) | |
tree | 95ecf2af0a8a1c718cd3fa2cad6415aacf40a700 /test/functional/welcome_controller_test.rb | |
parent | 0ecab46229c533a9186c2259b2c131a877f0aeb6 (diff) | |
download | redmine-7f6ac407ef11b94a3e99e4a712320f3a6faa22ec.tar.gz redmine-7f6ac407ef11b94a3e99e4a712320f3a6faa22ec.zip |
Fixed that root projects are escaped twice in the project drop down (#11217).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9894 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/welcome_controller_test.rb')
-rw-r--r-- | test/functional/welcome_controller_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb index af86f6638..a846d1aaf 100644 --- a/test/functional/welcome_controller_test.rb +++ b/test/functional/welcome_controller_test.rb @@ -96,6 +96,16 @@ class WelcomeControllerTest < ActionController::TestCase assert @controller.respond_to?(:call_hook) end + def test_project_jump_box_should_escape_names_once + Project.find(1).update_attribute :name, 'Foo & Bar' + @request.session[:user_id] = 2 + + get :index + assert_select "#header select" do + assert_select "option", :text => 'Foo & Bar' + end + end + context "test_api_offset_and_limit" do context "without params" do should "return 0, 25" do |