mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
committed by
jekyllbot
parent
f00a642901
commit
275702edd5
@@ -80,6 +80,17 @@ module DirectoryHelpers
|
||||
def test_dir(*subdirs)
|
||||
root_dir("test", *subdirs)
|
||||
end
|
||||
|
||||
def temp_dir(*subdirs)
|
||||
if Utils::Platforms.windows?
|
||||
drive = Dir.pwd.sub(%r!^([^\/]+).*!, '\1')
|
||||
temp_root = File.join(drive, "tmp")
|
||||
else
|
||||
temp_root = "/tmp"
|
||||
end
|
||||
|
||||
File.join(temp_root, *subdirs)
|
||||
end
|
||||
end
|
||||
|
||||
class JekyllUnitTest < Minitest::Test
|
||||
|
||||
Reference in New Issue
Block a user