class EventedFileUpdateCheckerTest

Public Instance Methods

new_checker(files = [], dirs = {}, &block) click to toggle source
# File activesupport/test/evented_file_update_checker_test.rb, line 16
def new_checker(files = [], dirs = {}, &block)
  ActiveSupport::EventedFileUpdateChecker.new(files, dirs, &block).tap do |c|
    wait
  end
end
setup() click to toggle source
Calls superclass method
# File activesupport/test/evented_file_update_checker_test.rb, line 10
def setup
  skip if ENV["LISTEN"] == "0"
  require "listen"
  super
end
teardown() click to toggle source
Calls superclass method
# File activesupport/test/evented_file_update_checker_test.rb, line 22
def teardown
  super
  Listen.stop
end
touch(files) click to toggle source
Calls superclass method
# File activesupport/test/evented_file_update_checker_test.rb, line 31
def touch(files)
  super
  wait # wait for the events to fire
end
wait() click to toggle source
# File activesupport/test/evented_file_update_checker_test.rb, line 27
def wait
  sleep 1
end