Merged r2250 and r2251 from trunk.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2252 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-01-10 10:51:59 +00:00
parent 3155b8ccad
commit 764393aa6a
5 changed files with 26 additions and 4 deletions
+2 -1
View File
@@ -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