lib/headdesk/report.rb in headdesk-0.3.0 vs lib/headdesk/report.rb in headdesk-0.4.0
- old
+ new
@@ -37,10 +37,10 @@
def to_s
ERB.new(<<~DESCRIPTION, nil, '>').result(binding)
Bundle Id: <%= bundle_id %>\n
<%= describe %>\n
<% for @check in checks %>
- <%= color_for_status[@check[:status]] % icon_for_status[@check[:status]] %> <%= color_for_status[@check[:status]] % @check[:description] %>\n
+ <%= color_for_status[@check[:status]] % icon_for_status[@check[:status]] %> <%= color_for_status[@check[:status]] % (@check[:description] + " (" + @check[:name] + ")") %>\n
<% for @step in @check[:steps] %>
↳ <%= color_for_status[@step[:status]] % icon_for_status[@step[:status]] %> <%= color_for_status[@step[:status]] % @step[:description] %>\n
<% end %>
<% unless @check[:export].empty? %><%= " 💾 " + @check[:export].to_json + "\n" %><% end %>\n
<% end %>