Skip to content

Commit d94793b

Browse files
fix: run tests 100 times for randomness
1 parent 6ba8657 commit d94793b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/helpers/timer_helper_spec.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
describe TimerHelper do
44
describe "time format" do
55
it "returns correctly formatted time" do
6-
current_time = Time.now()
7-
expect(helper.format_time(current_time)).to eql(current_time.strftime('%Y-%m-%d:%H:%M:%S'))
6+
100.times
7+
current_time = Time.now()
8+
expect(helper.format_time(current_time)).to eql(current_time.strftime('%Y-%m-%d::%H:%M:%S'))
9+
end
810
end
911
end
1012
end

0 commit comments

Comments
 (0)