1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/file_update_checker_test.rb

22 lines
440 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "abstract_unit"
require "file_update_checker_shared_tests"
2010-06-20 07:26:42 -04:00
class FileUpdateCheckerTest < ActiveSupport::TestCase
include FileUpdateCheckerSharedTests
2015-11-11 00:38:18 -05:00
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
2012-01-06 17:42:53 -05:00
end