module TestHelpers::Paths

Public Instance Methods

app_path(*args) click to toggle source
# File railties/test/isolation/abstract_unit.rb, line 40
def app_path(*args)
  tmp_path(*%w[app] + args)
end
app_template_path() click to toggle source
# File railties/test/isolation/abstract_unit.rb, line 31
def app_template_path
  File.join Dir.tmpdir, "app_template"
end
framework_path() click to toggle source
# File railties/test/isolation/abstract_unit.rb, line 44
def framework_path
  RAILS_FRAMEWORK_ROOT
end
quails_root() click to toggle source
# File railties/test/isolation/abstract_unit.rb, line 48
def quails_root
  app_path
end
tmp_path(*args) click to toggle source
# File railties/test/isolation/abstract_unit.rb, line 35
def tmp_path(*args)
  @tmp_path ||= File.realpath(Dir.mktmpdir)
  File.join(@tmp_path, *args)
end