Sha256: 2ef266526cc49d66d5bc6770359dcfc84d1e025c9f3f023bcaa921b19b88be92
Contents?: true
Size: 1.46 KB
Versions: 13
Compression:
Stored size: 1.46 KB
Contents
require 'spec_helper' module TurnipFormatter::Scenario describe Pass do let(:scenario) { ::TurnipFormatter::Scenario::Pass.new(example) } include_context 'turnip_formatter scenario setup' include_context 'turnip_formatter standard 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 failure scenario setup' 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
13 entries across 13 versions & 1 rubygems