Sha256: 7ba936415687b9e1ace6fa7884e3d86725f35857ee1c8ba6dd6b577110d0cdc4
Contents?: true
Size: 1.55 KB
Versions: 4
Compression:
Stored size: 1.55 KB
Contents
require 'spec_helper' module TurnipFormatter::Scenario describe Pass do let(:scenario) { ::TurnipFormatter::Scenario::Pass.new(example) } include_context 'turnip_formatter scenario setup', proc { expect(true).to be_true } include_context 'turnip_formatter passed scenario metadata' context 'Turnip example' do describe '#validation' do it 'should not raise exception' do expect { scenario.validation }.not_to raise_error end end end context 'Not Turnip example' do context 'Not passed example' do include_context 'turnip_formatter scenario setup', proc { expect(true).to be_false } describe '#validation' do it 'should raise exception' do expect { scenario.validation }.to raise_error NotPassedScenarioError end end end context 'not exist feature file' do let(:metadata) do metadata = super() metadata[:file_path] = '/path/to/hoge.rb' metadata end describe '#validation' do it 'should raise exception' do expect { scenario.validation }.to raise_error NoFeatureFileError end end end context 'not exist step information' do let(:metadata) { { file_path: '/path/to/hoge.rb' } } describe '#validation' do it 'should raise exception' do expect { scenario.validation }.to raise_error NotExistStepsInformationError end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems