提交 ccd1c435 编写于 作者: M Mikko Johansson

Skips tests on Windows that create files with illegal characters

上级 3c2fe5cc
......@@ -136,10 +136,15 @@ def get(path)
def with_static_file(file)
path = "#{FIXTURE_LOAD_PATH}/#{public_path}" + file
File.open(path, "wb+") { |f| f.write(file) }
begin
File.open(path, "wb+") { |f| f.write(file) }
rescue Errno::EPROTO
skip "Couldn't create a file #{path}"
end
yield file
ensure
File.delete(path)
File.delete(path) if File.exists? path
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册