aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2015-11-08 18:14:08 -0800
committerXavier Noria <fxn@hashref.com>2015-11-08 22:49:50 -0800
commite8fbf68aa1c69c73595d32c6a6299fe4baa79108 (patch)
treec89b82e7a202d460fc1cae0c2495171ae6e41e7b /activesupport
parent7ea3207f416b01e89fd4a8e61cb9a2257bb7e991 (diff)
downloadrails-e8fbf68aa1c69c73595d32c6a6299fe4baa79108.tar.gz
rails-e8fbf68aa1c69c73595d32c6a6299fe4baa79108.tar.bz2
rails-e8fbf68aa1c69c73595d32c6a6299fe4baa79108.zip
let listen stop all listeners on teardown
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/file_evented_update_checker_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/test/file_evented_update_checker_test.rb b/activesupport/test/file_evented_update_checker_test.rb
index 727b99958e..a720b912d0 100644
--- a/activesupport/test/file_evented_update_checker_test.rb
+++ b/activesupport/test/file_evented_update_checker_test.rb
@@ -10,6 +10,11 @@ class FileEventedUpdateCheckerTest < ActiveSupport::TestCase
def build_new_watcher(files, dirs={}, &block)
ActiveSupport::FileEventedUpdateChecker.new(files, dirs, &block)
end
+
+ def teardown
+ super
+ Listen.stop
+ end
end
class FileEventedUpdateCheckerPathHelperTest < ActiveSupport::TestCase