summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-07-09 00:45:19 +0000
committerGo MAEDA <maeda@farend.jp>2020-07-09 00:45:19 +0000
commit3f11c1f10b7af03587abfbba90d0c744a9992e2d (patch)
tree6653b53f7d8dffa2de6eab1a28c4175007c3e181 /test/unit/issue_test.rb
parent09db3e7131755ad10c615c38d7674f97c3212f62 (diff)
downloadredmine-3f11c1f10b7af03587abfbba90d0c744a9992e2d.tar.gz
redmine-3f11c1f10b7af03587abfbba90d0c744a9992e2d.zip
Add "behind-schedule" CSS class to issues (#31881).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19868 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_test.rb')
-rw-r--r--test/unit/issue_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index d82f6e079..940825a4a 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -3021,6 +3021,11 @@ class IssueTest < ActiveSupport::TestCase
assert_include 'assigned-to-me', issue2.css_classes(user)
end
+ def test_css_classes_behind_schedule
+ assert_include 'behind-schedule', Issue.find(1).css_classes.split(' ')
+ assert_not_include 'behind-schedule', Issue.find(2).css_classes.split(' ')
+ end
+
def test_save_attachments_with_hash_should_save_attachments_in_keys_order
set_tmp_attachments_directory
issue = Issue.generate!