class ChefSpec::Coverage

def set_template(file = "human.erb")

Returns:
  • (true) -

Parameters:
  • path (string) --
def set_template(file = "human.erb")
  @template = [
    ChefSpec.root.join("templates", "coverage", file),
    File.expand_path(file, Dir.pwd),
  ].find { |f| File.exist?(f) }
  raise Error::TemplateNotFound.new(path: file) unless @template
end