Sha256: c6366e5441320c4d2eb9ff2d2366b9453894980968af2cee9540731653393d03
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 Bytes
Contents
require 'spec_helper' describe TurnipFormatter::Scenario::Pending do let(:example) { pending_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 pending_example.tap { |e| e.execution_result[:pending_message] = '' } end it { should be false } end end describe '#status' do it 'return scenario status' do expect(scenario.status).to eq 'pending' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
turnip_formatter-0.3.0 | spec/turnip_formatter/scenario/pending_spec.rb |