summaryrefslogtreecommitdiffstats
path: root/test/unit/time_entry_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-09 17:32:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-09 17:32:46 +0000
commit6768bec4560e3c9a31578e2879f345f4c9e77a17 (patch)
tree88a5794488f55efae223104bcbec645f747149ab /test/unit/time_entry_test.rb
parentc0f44db4f705e45127cd2352cd86abdbfa0ec1d1 (diff)
downloadredmine-6768bec4560e3c9a31578e2879f345f4c9e77a17.tar.gz
redmine-6768bec4560e3c9a31578e2879f345f4c9e77a17.zip
Fixed: no error is raised when entering invalid hours on the issue update form (#2465).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2251 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/time_entry_test.rb')
-rw-r--r--test/unit/time_entry_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/time_entry_test.rb b/test/unit/time_entry_test.rb
index f86e42eab..dd54fd1b2 100644
--- a/test/unit/time_entry_test.rb
+++ b/test/unit/time_entry_test.rb
@@ -24,6 +24,7 @@ class TimeEntryTest < Test::Unit::TestCase
assertions = { "2" => 2.0,
"21.1" => 21.1,
"2,1" => 2.1,
+ "1,5h" => 1.5,
"7:12" => 7.2,
"10h" => 10.0,
"10 h" => 10.0,
@@ -40,7 +41,7 @@ class TimeEntryTest < Test::Unit::TestCase
assertions.each do |k, v|
t = TimeEntry.new(:hours => k)
- assert_equal v, t.hours
+ assert_equal v, t.hours, "Converting #{k} failed:"
end
end
end