spec/standalone/ucblit/logging/configurator_spec.rb in berkeley_library-logging-0.2.5 vs spec/standalone/ucblit/logging/configurator_spec.rb in berkeley_library-logging-0.2.6

- old
+ new

@@ -6,18 +6,18 @@ module Logging describe Configurator do describe :configure! do attr_reader :config - before(:each) do + before do @stdout_orig = $stdout $stdout = StringIO.new @config = OpenStruct.new config.lograge = Lograge::OrderedOptions.new end - after(:each) do + after do $stdout = @stdout_orig end it 'sets the logger' do Configurator.configure(config)