aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/file_evented_update_checker_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/file_evented_update_checker_test.rb')
-rw-r--r--activesupport/test/file_evented_update_checker_test.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/activesupport/test/file_evented_update_checker_test.rb b/activesupport/test/file_evented_update_checker_test.rb
index a720b912d0..72cf9bd387 100644
--- a/activesupport/test/file_evented_update_checker_test.rb
+++ b/activesupport/test/file_evented_update_checker_test.rb
@@ -1,13 +1,11 @@
require 'abstract_unit'
-require 'fileutils'
-require 'thread'
require 'pathname'
require 'file_update_checker_with_enumerable_test_cases'
class FileEventedUpdateCheckerTest < ActiveSupport::TestCase
include FileUpdateCheckerWithEnumerableTestCases
- def build_new_watcher(files, dirs={}, &block)
+ def build_new_watcher(files=[], dirs={}, &block)
ActiveSupport::FileEventedUpdateChecker.new(files, dirs, &block)
end
@@ -15,6 +13,10 @@ class FileEventedUpdateCheckerTest < ActiveSupport::TestCase
super
Listen.stop
end
+
+ def wait
+ sleep 0.5
+ end
end
class FileEventedUpdateCheckerPathHelperTest < ActiveSupport::TestCase