]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of test/unit/time_entry_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 27 Oct 2020 15:18:49 +0000 (15:18 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 27 Oct 2020 15:18:49 +0000 (15:18 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20211 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/time_entry_test.rb

index 355a1d8fca8677700ebaebd2fef9f3194ce93307..636e09748cd215c3d1498334e731829b712605bc 100644 (file)
@@ -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:"