diff --git a/app/helpers/timer_helper.rb b/app/helpers/timer_helper.rb index a81e869..592a06b 100644 --- a/app/helpers/timer_helper.rb +++ b/app/helpers/timer_helper.rb @@ -4,7 +4,7 @@ def format_time(time) run_rand_20 if rand_run(0.2) run_rand_50 if rand_run(0.5) run_rand_90 if rand_run(0.9) - time.strftime('%Y-%m-%d:%H:%M:%S') + time.strftime('%Y-%m-%d::%H:%M:%S') end def rand_run(value) diff --git a/spec/helpers/timer_helper_spec.rb b/spec/helpers/timer_helper_spec.rb index fa20a68..2753cd2 100644 --- a/spec/helpers/timer_helper_spec.rb +++ b/spec/helpers/timer_helper_spec.rb @@ -5,7 +5,7 @@ it "returns correctly formatted time" do 100.times do current_time = Time.now() - expect(helper.format_time(current_time)).to eql(current_time.strftime('%Y-%m-%d:%H:%M:%S')) + expect(helper.format_time(current_time)).to eql(current_time.strftime('%Y-%m-%d::%H:%M:%S')) end end end