Skip to content

Commit c4d348b

Browse files
fix: update time display with colon
1 parent 3c7a464 commit c4d348b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/helpers/timer_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ def format_time(time)
44
run_rand_20 if rand_run(0.2)
55
run_rand_50 if rand_run(0.5)
66
run_rand_90 if rand_run(0.9)
7-
time.strftime('%Y-%m-%d:%H:%M:%S')
7+
time.strftime('%Y-%m-%d::%H:%M:%S')
88
end
99

1010
def rand_run(value)

spec/helpers/timer_helper_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
it "returns correctly formatted time" do
66
100.times do
77
current_time = Time.now()
8-
expect(helper.format_time(current_time)).to eql(current_time.strftime('%Y-%m-%d:%H:%M:%S'))
8+
expect(helper.format_time(current_time)).to eql(current_time.strftime('%Y-%m-%d::%H:%M:%S'))
99
end
1010
end
1111
end

0 commit comments

Comments
 (0)