aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorArthur Nogueira Neves <github@arthurnn.com>2017-02-01 13:45:56 -0500
committerGitHub <noreply@github.com>2017-02-01 13:45:56 -0500
commitc98e08df7a303f4c7d6d37aa638d4ce97bb1ec9c (patch)
tree04e9d44ed9a2d1c52bdb90abafb9ab0fe75ef302 /railties/test/generators
parentd833e9346839a3e8fca6098e3a5e456354873f8f (diff)
parent725058fc0959df333a5c802193cd9d7305facdbf (diff)
downloadrails-c98e08df7a303f4c7d6d37aa638d4ce97bb1ec9c.tar.gz
rails-c98e08df7a303f4c7d6d37aa638d4ce97bb1ec9c.tar.bz2
rails-c98e08df7a303f4c7d6d37aa638d4ce97bb1ec9c.zip
explicitly require `listen` in `EventedFileUpdateCheckerTest` (#27867)
Currently, executing the `test_initialize_raises_an_ArgumentError_if_no_block_given` test alone will result in an error. ``` $ ./bin/test test/evented_file_update_checker_test.rb -n test_initialize_raises_an_ArgumentError_if_no_block_given Run options: -n test_initialize_raises_an_ArgumentError_if_no_block_given --seed 6692 # Running: E Error: EventedFileUpdateCheckerTest#test_initialize_raises_an_ArgumentError_if_no_block_given: NameError: uninitialized constant EventedFileUpdateCheckerTest::Listen rails/activesupport/test/evented_file_update_checker_test.rb:21:in `teardown' ``` This is because if do not specify a file or directory for `EventedFileUpdateChecker`, do not require `listen`, and using listen method in teardown. https://github.com/rails/rails/blob/master/activesupport/lib/active_support/evented_file_update_checker.rb#L53..L65 Therefore, added listen's require to avoid errors.
Diffstat (limited to 'railties/test/generators')
0 files changed, 0 insertions, 0 deletions