summaryrefslogtreecommitdiff
path: root/spec/helpers
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2018-10-01 12:55:09 +0200
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-02 17:08:14 +0200
commit786ae683679d90a0e55bfe844ac694aeb7d68ce6 (patch)
tree96dce39cab69c121adfa21b177e8b0808c36af98 /spec/helpers
parent6369ff1ce172cefc84574f2dde055399b64bf7b5 (diff)
downloadgitlab-ce-786ae683679d90a0e55bfe844ac694aeb7d68ce6.tar.gz
Do not omit leading zeros in duration_in_numbers helper
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/time_helper_spec.rb8
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