aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/test/file_update_checker_test.rb
blob: e3233e5721451affe2e6c6b76232323ffdb9fc22 (plain) (tree)
1
2
3
4
5
6
7
8
9
                       
                                                        
 
                                                     
                                                  
 
                                            
                                                             
     








                                                            
   
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