blob: e3233e5721451affe2e6c6b76232323ffdb9fc22 (
plain) (
tree)
|
|
require 'abstract_unit'
require 'file_update_checker_with_enumerable_test_cases'
class FileUpdateCheckerTest < ActiveSupport::TestCase
include FileUpdateCheckerWithEnumerableTestCases
def new_checker(files=[], dirs={}, &block)
ActiveSupport::FileUpdateChecker.new(files, dirs, &block)
end
def wait
# noop
end
def touch(files)
sleep 1 # let's wait a bit to ensure there's a new mtime
super
end
end
|