Commit 9a3459f0 authored by jplang's avatar jplang

Only make sure it's a date.

git-svn-id: https://svn.redmine.org/redmine/trunk@15600 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent d05aa2cd
...@@ -122,7 +122,7 @@ class TimeEntryTest < ActiveSupport::TestCase ...@@ -122,7 +122,7 @@ class TimeEntryTest < ActiveSupport::TestCase
def test_spent_on_with_time def test_spent_on_with_time
c = TimeEntry.new c = TimeEntry.new
c.spent_on = Time.now c.spent_on = Time.now
assert_equal Date.today, c.spent_on assert_kind_of Date, c.spent_on
end end
def test_validate_time_entry def test_validate_time_entry
......
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