mirror of https://github.com/rails/rails
Merge pull request #45995 from yahonda/diag45983
Ruby 3.2 `FileUtils.rm_f` raises `Errno::EISDIR` to remove directories
This commit is contained in:
commit
e4990eec1c
|
@ -251,7 +251,7 @@ module ApplicationTests
|
|||
directory ||= suite
|
||||
create_fixture_test directory
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue