2017-07-09 08:06:36 -04:00
|
|
|
# frozen_string_literal: true
|
2017-07-10 09:39:13 -04:00
|
|
|
|
2018-09-29 20:50:43 -04:00
|
|
|
require_relative "abstract_unit"
|
|
|
|
require_relative "file_update_checker_shared_tests"
|
2010-06-20 07:26:42 -04:00
|
|
|
|
2015-10-12 15:44:21 -04:00
|
|
|
class FileUpdateCheckerTest < ActiveSupport::TestCase
|
2015-11-10 10:21:33 -05:00
|
|
|
include FileUpdateCheckerSharedTests
|
2015-10-12 15:44:21 -04:00
|
|
|
|
2015-11-11 00:38:18 -05:00
|
|
|
def new_checker(files = [], dirs = {}, &block)
|
2015-10-12 14:41:14 -04:00
|
|
|
ActiveSupport::FileUpdateChecker.new(files, dirs, &block)
|
2012-03-15 08:21:20 -04:00
|
|
|
end
|
2015-11-09 12:24:41 -05:00
|
|
|
|
|
|
|
def wait
|
|
|
|
# noop
|
|
|
|
end
|
|
|
|
|
|
|
|
def touch(files)
|
|
|
|
sleep 1 # let's wait a bit to ensure there's a new mtime
|
|
|
|
super
|
|
|
|
end
|
2012-01-06 17:42:53 -05:00
|
|
|
end
|