spec/spec_helper.rb in facter-1.7.0.rc1 vs spec/spec_helper.rb in facter-1.7.0.rc2

- old
+ new

@@ -18,9 +18,16 @@ end RSpec.configure do |config| config.mock_with :mocha + if Facter::Util::Config.is_windows? + require 'win32console' + config.output_stream = $stdout + config.error_stream = $stderr + config.formatters.each { |f| f.instance_variable_set(:@output, $stdout) } + end + config.before :each do # Ensure that we don't accidentally cache facts and environment # between test cases. Facter::Util::Loader.any_instance.stubs(:load_all) Facter.clear