diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-10-01 13:55:09 +0300 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2018-10-02 18:08:14 +0300 |
commit | 786ae683679d90a0e55bfe844ac694aeb7d68ce6 (patch) | |
tree | 96dce39cab69c121adfa21b177e8b0808c36af98 /spec/helpers | |
parent | 6369ff1ce172cefc84574f2dde055399b64bf7b5 (diff) |
Do not omit leading zeros in duration_in_numbers helper
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/time_helper_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/helpers/time_helper_spec.rb b/spec/helpers/time_helper_spec.rb index 37455c3e491..cc310766433 100644 --- a/spec/helpers/time_helper_spec.rb +++ b/spec/helpers/time_helper_spec.rb @@ -39,10 +39,10 @@ describe TimeHelper do context "with allow_overflow = true" do where(:duration, :formatted_string) do - 0 | "00:00" - 1.second | "00:01" - 42.seconds | "00:42" - 2.minutes + 1.second | "02:01" + 0 | "00:00:00" + 1.second | "00:00:01" + 42.seconds | "00:00:42" + 2.minutes + 1.second | "00:02:01" 3.hours + 2.minutes + 1.second | "03:02:01" 30.hours | "30:00:00" end |