From 24a19816238251d0485ee7a7b00c95051b0ddfaf Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 27 Oct 2020 15:18:49 +0000 Subject: [PATCH] fix source indent of test/unit/time_entry_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20211 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/time_entry_test.rb | 38 ++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/test/unit/time_entry_test.rb b/test/unit/time_entry_test.rb index 355a1d8fc..636e09748 100644 --- a/test/unit/time_entry_test.rb +++ b/test/unit/time_entry_test.rb @@ -68,25 +68,25 @@ class TimeEntryTest < ActiveSupport::TestCase end def test_hours_format - 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, - "45m" => 0.75, - "45 m" => 0.75, - "3h15" => 3.25, - "3h 15" => 3.25, - "3 h 15" => 3.25, - "3 h 15m" => 3.25, - "3 h 15 m" => 3.25, - "3 hours" => 3.0, - "12min" => 0.2, - "12 Min" => 0.2, - } - + 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, + "45m" => 0.75, + "45 m" => 0.75, + "3h15" => 3.25, + "3h 15" => 3.25, + "3 h 15" => 3.25, + "3 h 15m" => 3.25, + "3 h 15 m" => 3.25, + "3 hours" => 3.0, + "12min" => 0.2, + "12 Min" => 0.2, + } assertions.each do |k, v| t = TimeEntry.new(:hours => k) assert_equal v, t.hours, "Converting #{k} failed:" -- 2.39.5