Commit 8bd9839a authored by Samuel E. Giddins's avatar Samuel E. Giddins

[SpecHelper] Consolidate pre-flight setup code

parent c887edd4
......@@ -84,16 +84,6 @@ module Bacon
include SpecHelper::Fixture
include SpecHelper::Command
alias_method :original_initialize, :initialize
def initialize(name, &block)
original_initialize(name, &block)
before do
Pod::UI.output = ''
Pod::UI.warnings = ''
Pod::UI.next_input = ''
end
end
def skip_xcodebuild?
ENV['SKIP_XCODEBUILD']
end
......
......@@ -15,6 +15,8 @@ module Bacon
end
::Pod::UI.output = ''
::Pod::UI.warnings = ''
::Pod::UI.next_input = ''
# The following prevents a nasty behaviour where the increments are not
# balanced when testing informative which might lead to sections not
# being printed to the output as they are too nested.
......
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