Commit 1db64746 authored by Eloy Duran's avatar Eloy Duran

Filter backtraces in specs error log.

parent 12a91103
......@@ -21,6 +21,16 @@ module Bacon
extend ColorOutput
summary_at_exit
module FilterBacktraces
def handle_summary
ErrorLog.replace(ErrorLog.split("\n").reject do |line|
line =~ %r{(gems/mocha|spec_helper)}
end.join("\n").lstrip << "\n\n")
super
end
end
extend FilterBacktraces
class Context
include Pod::Config::Mixin
......@@ -32,7 +42,7 @@ module Bacon
require 'colored'
def xit(description, *args)
puts "- #{description} [DISABLED]".blue
puts "- #{description} [DISABLED]".yellow
ErrorLog << "[DISABLED] #{self.name} #{description}\n\n"
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