Commit fe35ff02 authored by marutosijp's avatar marutosijp

try IssueTest#test_overdue failing on CI server at Japanese daytime (#22320)

git-svn-id: https://svn.redmine.org/redmine/trunk@16938 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 802e2f02
......@@ -2296,11 +2296,13 @@ class IssueTest < ActiveSupport::TestCase
end
def test_overdue
assert Issue.new(:due_date => 1.day.ago.to_date).overdue?
assert !Issue.new(:due_date => Date.today).overdue?
assert !Issue.new(:due_date => 1.day.from_now.to_date).overdue?
User.current = nil
today = User.current.today
assert Issue.new(:due_date => (today - 1.day).to_date).overdue?
assert !Issue.new(:due_date => today).overdue?
assert !Issue.new(:due_date => (today + 1.day).to_date).overdue?
assert !Issue.new(:due_date => nil).overdue?
assert !Issue.new(:due_date => 1.day.ago.to_date,
assert !Issue.new(:due_date => (today - 1.day).to_date,
:status => IssueStatus.where(:is_closed => true).first
).overdue?
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment