lib/headdesk/check.rb in headdesk-0.4.0 vs lib/headdesk/check.rb in headdesk-0.5.0

- old
+ new

@@ -33,10 +33,14 @@ def check_name(cname = nil) @check_name = cname if cname @check_name end + + def doc + "#{check_name}.md" + end end def initialize(bundle) @apk = bundle @ipa = bundle @@ -44,9 +48,10 @@ description: self.class.describe, steps: [], export: {} } @report[:name] = self.class.check_name if self.class.respond_to?(:check_name) + @report[:doc] = "https://github.com/GoCarrot/headdesk/blob/#{Headdesk::VERSION}/docs/#{self.class.doc}" if self.class.respond_to?(:check_name) @status = :skip end def describe(desc = nil) @last_desc = desc if desc