spec/lib/mina/runner_spec.rb in mina-1.0.0.beta2 vs spec/lib/mina/runner_spec.rb in mina-1.0.0.beta3
- old
+ new
@@ -25,12 +25,9 @@
describe '#run' do
it 'runs the commands on a backend' do
instance.set(:execution_mode, :printer)
runner = Mina::Runner.new(['ls -al'], :local)
- out, _err = capture_io do
- runner.run
- end
- expect(out).to eq("\\[\\\"ls\\ -al\\\"\\]\n")
+ expect { runner.run }.to output("\\[\\\"ls\\ -al\\\"\\]\n").to_stdout
end
end
end