summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-27 15:18:49 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-27 15:18:49 +0000
commit24a19816238251d0485ee7a7b00c95051b0ddfaf (patch)
treefe6726f0a67c85e26bfd2076a4d4b7adee97b5b6 /test/unit
parentc866eb56fb170225073db940ffae431d49d41c3a (diff)
downloadredmine-24a19816238251d0485ee7a7b00c95051b0ddfaf.tar.gz
redmine-24a19816238251d0485ee7a7b00c95051b0ddfaf.zip
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
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/time_entry_test.rb38
1 files 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:"