2016-08-06 12:03:25 -04:00
|
|
|
require "abstract_unit"
|
|
|
|
require "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
|