Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-07-21 13:18:34 +0300
committerRémy Coutable <remy@rymai.me>2016-07-21 13:18:34 +0300
commit71a3336dc4f241e00c006a222397e62b039672ed (patch)
tree48d87e0f5c72ef9bfaa23d6dc2615e2b425fcb40 /spec/helpers/time_helper_spec.rb
parent479814b29289ab5598117ff22b63e386a3d2d9f3 (diff)
Cast duration to integer in `TimeHelper#time_interval_in_words`
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/helpers/time_helper_spec.rb')
-rw-r--r--spec/helpers/time_helper_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/helpers/time_helper_spec.rb b/spec/helpers/time_helper_spec.rb
index 413ead944b9..bf3ed5c094c 100644
--- a/spec/helpers/time_helper_spec.rb
+++ b/spec/helpers/time_helper_spec.rb
@@ -5,6 +5,7 @@ describe TimeHelper do
it "returns minutes and seconds" do
intervals_in_words = {
100 => "1 minute 40 seconds",
+ 100.32 => "1 minute 40 seconds",
121 => "2 minutes 1 second",
3721 => "62 minutes 1 second",
0 => "0 seconds"