diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-08-30 19:59:29 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-08-30 19:59:29 +0000 |
commit | 2342fe9a755ff6a4ed509d0eb866fde1d744b791 (patch) | |
tree | 79096e67e6ae82c0312ca32cea99d7a7528d57b0 /test/functional/welcome_controller_test.rb | |
parent | b405a0be535b365276dfdfbf092107bb07c70713 (diff) | |
download | redmine-2342fe9a755ff6a4ed509d0eb866fde1d744b791.tar.gz redmine-2342fe9a755ff6a4ed509d0eb866fde1d744b791.zip |
User preference for monospaced / variable-width font in textareas (#23653).
git-svn-id: http://svn.redmine.org/redmine/trunk@15753 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/welcome_controller_test.rb')
-rw-r--r-- | test/functional/welcome_controller_test.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb index 88b160bc9..004fb674a 100644 --- a/test/functional/welcome_controller_test.rb +++ b/test/functional/welcome_controller_test.rb @@ -104,6 +104,24 @@ class WelcomeControllerTest < Redmine::ControllerTest assert_select 'script', :text => %r{warnLeavingUnsaved}, :count => 0 end + def test_textarea_font_set_to_monospace + user = User.find(1) + user.pref.textarea_font = 'monospace' + user.pref.save! + @request.session[:user_id] = 1 + get :index + assert_select 'body.textarea-monospace' + end + + def test_textarea_font_set_to_proportional + user = User.find(1) + user.pref.textarea_font = 'proportional' + user.pref.save! + @request.session[:user_id] = 1 + get :index + assert_select 'body.textarea-proportional' + end + def test_logout_link_should_post @request.session[:user_id] = 2 |