Sha256: 66f78b918efee3f3d5ff070138b5e6479aefb4cd429767916bded7d517701f36
Contents?: true
Size: 599 Bytes
Versions: 2
Compression:
Stored size: 599 Bytes
Contents
require 'spec_helper' describe TurnipFormatter::Scenario::Failure do let(:example) { failed_example } let(:scenario) { described_class.new(example) } describe '#valid?' do subject { scenario.valid? } context 'called by turnip example' do it { should be true } end context 'called by not turnip example' do let(:example) do failed_example.tap { |e| e.exception.backtrace.pop } end it { should be false } end end describe '#status' do it 'return scenario status' do expect(scenario.status).to eq 'failed' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
turnip_formatter-0.3.1 | spec/turnip_formatter/scenario/failure_spec.rb |
turnip_formatter-0.3.0 | spec/turnip_formatter/scenario/failure_spec.rb |