mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 05:26:02 +08:00
DEV: Fix methods removed in Ruby 3.2 (#15459)
* File.exists? is deprecated and removed in Ruby 3.2 in favor of File.exist? * Dir.exists? is deprecated and removed in Ruby 3.2 in favor of Dir.exist?
This commit is contained in:
@ -31,7 +31,7 @@ task "smoke:test" do
|
||||
end
|
||||
|
||||
dir = ENV["SMOKE_TEST_SCREENSHOT_PATH"] || 'tmp/smoke-test-screenshots'
|
||||
FileUtils.mkdir_p(dir) unless Dir.exists?(dir)
|
||||
FileUtils.mkdir_p(dir) unless Dir.exist?(dir)
|
||||
|
||||
wait = ENV["WAIT_FOR_URL"].to_i
|
||||
|
||||
|
Reference in New Issue
Block a user