class ChefSpec::Error::ChefSpecError
def initialize(options = {})
def initialize(options = {}) class_name = self.class.to_s.split("::").last filename = options.delete(:_template) || Util.underscore(class_name) template = ChefSpec.root.join("templates", "errors", "#{filename}.erb") erb = Erubis::Eruby.new(File.read(template)) super erb.evaluate(options) end