lib/api-tester/reporter/api_report.rb in api-tester-0.3.0 vs lib/api-tester/reporter/api_report.rb in api-tester-0.3.1
- old
+ new
@@ -15,9 +15,13 @@
def add_new_report report
self.reports << report
end
+ def add_reports reports
+ self.reports.concat reports
+ end
+
def print
if self.reports.size > 0
puts "Issues discovered: #{self.reports.size}"
self.reports.each do |report|
report.print