Skip to content
Snippets Groups Projects
Commit ce64a422 authored by Eric Davis's avatar Eric Davis
Browse files

Fixed a failing test caused by comparing a Time object (n.day.ago) with a Date object

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2141 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 2564f050
No related merge requests found
......@@ -192,9 +192,9 @@ class IssueTest < Test::Unit::TestCase
end
def test_overdue
assert Issue.new(:due_date => 1.day.ago).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).overdue?
assert !Issue.new(:due_date => 1.day.from_now.to_date).overdue?
assert !Issue.new(:due_date => nil).overdue?
end
end
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