mirror of https://github.com/rails/rails
18 lines
429 B
Ruby
18 lines
429 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "abstract_unit"
|
|
require_relative "file_update_checker_shared_tests"
|
|
|
|
class FileUpdateCheckerTest < ActiveSupport::TestCase
|
|
include FileUpdateCheckerSharedTests
|
|
|
|
def new_checker(files = [], dirs = {}, &block)
|
|
ActiveSupport::FileUpdateChecker.new(files, dirs, &block)
|
|
end
|
|
|
|
def touch(files)
|
|
sleep 1 # let's wait a bit to ensure there's a new mtime
|
|
super
|
|
end
|
|
end
|