Merge pull request #45995 from yahonda/diag45983

Ruby 3.2 `FileUtils.rm_f` raises `Errno::EISDIR` to remove directories
This commit is contained in:
Yasuo Honda 2022-09-10 14:43:41 +00:00 committed by GitHub
commit e4990eec1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ module ApplicationTests
directory ||= suite directory ||= suite
create_fixture_test directory create_fixture_test directory
assert_match "3 users", run_test_command("test/#{suite}") assert_match "3 users", run_test_command("test/#{suite}")
Dir.chdir(app_path) { FileUtils.rm_f "test/#{directory}" } Dir.chdir(app_path) { FileUtils.rm_r "test/#{directory}" }
end end
end end