aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/file_update_checker_shared_tests.rb
Commit message (Collapse)AuthorAgeFilesLines
* remove unused variableyuuji.yaginuma2017-02-011-1/+1
| | | | | | | | This removes the following warnings. ``` activesupport/test/file_update_checker_shared_tests.rb:279: warning: assigned but unused variable - checker ```
* Raise in the initialize not in the executeRafael Mendonça França2017-01-311-3/+2
|
* Raise an error if FileUpdateChecker#execute is called with no blockkenta-s2017-01-281-0/+7
|
* Merge pull request #26829 from headius/wait_for_events_in_listen_testsAaron Patterson2016-10-191-0/+18
| | | | Wait for file events to propagated for slower Listen backends.
* Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty linesRyuta Kamizono2016-08-071-2/+0
|
* applies new string literal convention in activesupport/testXavier Noria2016-08-061-27/+27
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Make file update checker tests more resilient on WindowsSean Griffin2016-04-211-5/+7
| | | | | | | | | Without the `wdm` gem, it appears that `listen` keeps an open handle to each of these files, causing them not to be removed when the tempdir tries to clean iteslf up, and then directory to fail to unlink. In addition to fixing that particular failure, we now construct OS agnostic paths, and capture exceptions if the directory fails to unlink so that minitest will report it rather than crash
* Remove unused variableRafael Mendonça França2016-04-131-1/+0
|
* Handle max_time edge cases for epoch times and add testBlake Mesdag2016-04-121-0/+17
|
* Use block form of Dir.mktmpdir to ensure tidy upAndrew White2016-04-031-3/+3
| | | | | | | | If the test run was interrupted in some way then it left temporary directories inside of test causing the git worktree to be in a dirty state. By overriding the run method we can use the block form of Dir.mktmpdir to ensure that the directories are cleaned up no matter which way the test run is exited.
* Fix test that fails in isolationeileencodes2015-12-181-0/+1
| | | | | | | | | | | | | | | This test needs to have a require for the Listen gem or else it returns an error when run by itself or with a certain order in the Active Support tests. We use `silence_warnings` because Listen has some warnings about private methods. It's already silenced when it's required in Active Support EventedFileUpdateChecker. ``` 1) Error: EventedFileUpdateCheckerTest#test_should_not_execute_the_block_if_no_paths_are_given: NameError: uninitialized constant EventedFileUpdateCheckerTest::Listen test/evented_file_update_checker_test.rb:21:in `teardown' ```
* Fix instance variable not defined warning from Active Support test suiteJuanitoFatas2015-11-121-1/+1
| | | | | | | | | | Before ./Users/Juan/dev/rails/activesupport/test/file_update_checker_shared_tests.rb:20: warning: instance variable @tmpdir not initialized After No warnings
* modernizes the test definitions in the file monitors suiteXavier Noria2015-11-111-16/+17
|
* applies code style guidelinesXavier Noria2015-11-111-1/+1
|
* renames the module with shared tests for file monitorsXavier Noria2015-11-101-0/+240