use stdout

This commit is contained in:
Jan Renz
2015-06-18 20:13:43 +02:00
parent 278e30ccf8
commit 6af614ca7c
2 changed files with 4 additions and 4 deletions

View File

@ -4,11 +4,11 @@ describe MochaAdapter do
let(:adapter) { described_class.new }
let(:count) { 42 }
let(:failed) { 25 }
let(:stderr) { "#{count-failed} passing (20ms)\n\n#{failed} failing" }
let(:stdout) { "#{count-failed} passing (20ms)\n\n#{failed} failing" }
describe '#parse_output' do
it 'returns the correct numbers' do
expect(adapter.parse_output(stderr: stderr)).to eq(count: count, failed: failed)
expect(adapter.parse_output(stdout: stdout)).to eq(count: count, failed: failed)
end
end
end