mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
* ci: freeze time in more specs * Introduce within_same_period helper method --------- Co-authored-by: Gonzalo <456459+grzuy@users.noreply.github.com>
9 lines
141 B
Ruby
9 lines
141 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "timecop"
|
|
|
|
class Minitest::Spec
|
|
def within_same_period(&block)
|
|
Timecop.freeze(&block)
|
|
end
|
|
end
|