lib/henry/task/rspec_task.rb in henry-container-0.0.40 vs lib/henry/task/rspec_task.rb in henry-container-0.0.41
- old
+ new
@@ -89,18 +89,18 @@
# Interpolates and returns the report file name.
#
# @param [String] file_name the report file name.
# @returns [String] the report file name.
def report_file_name(file_name)
- file_name.gsub(/\${[AZ_]}/, '${TASK_NAME}' => self.name, '${DATE}' => DateTime.now.to_s)
+ file_name.gsub(/\${[AZ_]+}/, '${TASK_NAME}' => self.name, '${DATE}' => DateTime.now.to_s)
end
# Interpolates and returns the reports directory for the given format.
#
# @param [String] format the formatter name.
# @return [Stiring] the reports directory.
def reports_dir(format)
- REPORTS_DIR.gsub(/\${[AZ_]}/, '${FORMAT}' => format)
+ REPORTS_DIR.gsub(/\${[AZ_]+}/, '${FORMAT}' => format)
end
end
end