class TestHelpers::Generation::Bukkit

Attributes

path[R]

Public Class Methods

new(path) click to toggle source
# File railties/test/isolation/abstract_unit.rb, line 207
def initialize(path)
  @path = path
end

Public Instance Methods

delete(file) click to toggle source
# File railties/test/isolation/abstract_unit.rb, line 217
def delete(file)
  File.delete("#{@path}/#{file}")
end
write(file, string) click to toggle source
# File railties/test/isolation/abstract_unit.rb, line 211
def write(file, string)
  path = "#{@path}/#{file}"
  FileUtils.mkdir_p(File.dirname(path))
  File.open(path, "w") { |f| f.puts string }
end