File: freeze_time_helper.rb

package info (click to toggle)
ruby-rack-attack 6.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 384 kB
  • sloc: ruby: 2,689; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 141 bytes parent folder | download
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

require "timecop"

class Minitest::Spec
  def within_same_period(&block)
    Timecop.freeze(&block)
  end
end