spec/device/balancer_spec.rb in logstash-logger-0.12.0 vs spec/device/balancer_spec.rb in logstash-logger-0.13.0

- old
+ new

@@ -2,22 +2,19 @@ describe LogStashLogger::Device::Balancer do include_context 'device' # Create a Balancer writing to both STDOUT and a StringIO - let(:subject) { balancer_device } + subject { balancer_device } - let(:stdout) { $stdout } - let(:io) { StringIO.new } - describe '#write' do before do allow(subject.devices).to receive(:sample) { io } end it "writes to one device" do expect(io).to receive(:write).once - expect(stdout).to_not receive(:write) + expect($stdout).to_not receive(:write) subject.write("log message") end end describe '#flush, #close' do