do not use subject an an explicit call

Fixes #2731
This commit is contained in:
Pier-Hugues Pellerin 2015-04-15 10:20:03 -04:00 committed by Jordan Sissel
parent 26c5a5ff61
commit b233a34ce9

View file

@ -3,9 +3,7 @@ require "spec_helper"
require "logstash/bundler"
describe LogStash::Bundler do
context "capture_stdout" do
it "should capture stdout from block" do
original_stdout = $stdout
output, exception = LogStash::Bundler.capture_stdout do
@ -54,7 +52,7 @@ describe LogStash::Bundler do
it 'should call Bundler::CLI.start with the correct arguments' do
expect(::Bundler::CLI).to receive(:start).with(bundler_args)
subject
LogStash::Bundler.invoke_bundler!(options)
end
context 'abort with an exception' do