lib/headdesk/check.rb in headdesk-0.3.0 vs lib/headdesk/check.rb in headdesk-0.4.0
- old
+ new
@@ -28,19 +28,25 @@
module ClassMethods
def describe(desc = nil)
@last_desc = desc if desc
@last_desc
end
+
+ def check_name(cname = nil)
+ @check_name = cname if cname
+ @check_name
+ end
end
def initialize(bundle)
@apk = bundle
@ipa = bundle
@report = {
description: self.class.describe,
steps: [],
export: {}
}
+ @report[:name] = self.class.check_name if self.class.respond_to?(:check_name)
@status = :skip
end
def describe(desc = nil)
@last_desc = desc if desc