From: Jean-Philippe Lang Date: Sat, 2 Jul 2016 07:53:31 +0000 (+0000) Subject: Only make sure it's a date. X-Git-Tag: 3.4.0~853 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d9a0084b764026af4c07de469810bbbedad08456;p=redmine.git Only make sure it's a date. git-svn-id: http://svn.redmine.org/redmine/trunk@15600 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/time_entry_test.rb b/test/unit/time_entry_test.rb index 59f416c9e..b86b1c53a 100644 --- a/test/unit/time_entry_test.rb +++ b/test/unit/time_entry_test.rb @@ -122,7 +122,7 @@ class TimeEntryTest < ActiveSupport::TestCase def test_spent_on_with_time c = TimeEntry.new c.spent_on = Time.now - assert_equal Date.today, c.spent_on + assert_kind_of Date, c.spent_on end def test_validate_time_entry