Commit 2c462d18 authored by Fabio Pelosin's avatar Fabio Pelosin

[Specs] Only print the count of the disabled specs in the summary.

parent 5e57791c
...@@ -38,6 +38,7 @@ module Bacon ...@@ -38,6 +38,7 @@ module Bacon
#:nodoc: #:nodoc:
def handle_summary def handle_summary
print ErrorLog if Backtraces print ErrorLog if Backtraces
puts "\e[33m#{Counter[:disabled]} disabled specifications\n\e[0m" unless Counter[:disabled].zero?
puts "%d specifications (%d requirements), %d failures, %d errors" % puts "%d specifications (%d requirements), %d failures, %d errors" %
Counter.values_at(:specifications, :requirements, :failed, :errors) Counter.values_at(:specifications, :requirements, :failed, :errors)
end end
...@@ -61,10 +62,8 @@ module Bacon ...@@ -61,10 +62,8 @@ module Bacon
class Context class Context
def xit(description, *args) def xit(description, *args)
Counter[:disabled] += 1
Bacon.handle_requirement(description, true) {[]} Bacon.handle_requirement(description, true) {[]}
title = "\e[33m> Disabled Specificiations\e[0m"
ErrorLog.insert(0,"#{title}\n") unless ErrorLog.include?(title)
ErrorLog.insert(title.length, "\n - #{self.name} #{description}")
end end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment