Sha256: 9463054742079fc477c999f525e987ff7ff5bb88abe84feae60ba8ed4d4393a3
Contents?: true
Size: 1.51 KB
Versions: 5
Compression:
Stored size: 1.51 KB
Contents
require 'spec_helper' module TurnipFormatter::Scenario describe Failure do let(:scenario) { ::TurnipFormatter::Scenario::Pending.new(pending_example) } let(:pending_example) do example.execution_result[:pending_message] = 'No such step(0): ' example end include_context 'turnip_formatter passed scenario metadata' context 'Turnip example' do include_context 'turnip_formatter scenario setup', proc { pending('Pending') } describe '#validation' do it 'should not raise exception' do expect { scenario.validation }.not_to raise_error end end end context 'Not Turnip example' do let(:failure_example) do example end context 'Not pending example' do include_context 'turnip_formatter scenario setup', proc { expect(true).to be_true } describe '#validation' do it 'should raise exception' do expect { scenario.validation }.to raise_error NotPendingScenarioError end end end context 'Not exist pending step information' do include_context 'turnip_formatter scenario setup', proc { pending('Pending') } let(:pending_example) do example end describe '#validation' do it 'should raise exception' do expect { scenario.validation }.to raise_error NoExistPendingStepInformationError end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems