From d63784569f4989f32289ac074a4e9eaec11b6420 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 23 Dec 2009 20:05:46 +0000 Subject: Force TimeEntry#hours default to nil (#3075, #4449). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3232 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/time_entry_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/unit/time_entry_test.rb') diff --git a/test/unit/time_entry_test.rb b/test/unit/time_entry_test.rb index 7ac1c02a3..3c135510a 100644 --- a/test/unit/time_entry_test.rb +++ b/test/unit/time_entry_test.rb @@ -44,4 +44,8 @@ class TimeEntryTest < ActiveSupport::TestCase assert_equal v, t.hours, "Converting #{k} failed:" end end + + def test_hours_should_default_to_nil + assert_nil TimeEntry.new.hours + end end -- cgit v1.2.3