diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-05 15:41:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-05 15:41:54 +0000 |
commit | e951d8458413f02ba613163df862d1a352ed3692 (patch) | |
tree | c9f1ec441a1243ffa35bb35ba5865588c710b20e /test/unit/user_test.rb | |
parent | bbe8ea29e8d3e6de60b96c08d60de9447bcceca9 (diff) | |
download | redmine-e951d8458413f02ba613163df862d1a352ed3692.tar.gz redmine-e951d8458413f02ba613163df862d1a352ed3692.zip |
Add a user preference to choose how comments/replies are displayed: in chronological or reverse chronological order (#589, #776).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1197 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/user_test.rb')
-rw-r--r-- | test/unit/user_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 845a34afd..3209f261a 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -144,4 +144,12 @@ class UserTest < Test::Unit::TestCase @jsmith.reload assert !@jsmith.projects.first.recipients.include?(@jsmith.mail) end + + def test_comments_sorting_preference + assert !@jsmith.wants_comments_in_reverse_order? + @jsmith.pref.comments_sorting = 'asc' + assert !@jsmith.wants_comments_in_reverse_order? + @jsmith.pref.comments_sorting = 'desc' + assert @jsmith.wants_comments_in_reverse_order? + end end |