Sha256: 951d4e990ed5acfe3073d26954eb899e6ac5b9a4f7966b0d503ea2833d946219

Contents?: true

Size: 746 Bytes

Versions: 1

Compression:

Stored size: 746 Bytes

Contents

require 'spec_helper'

module TurnipFormatter
  class Step
    describe Failure do
      let(:description) { ['StepName', 'Keyword', ['Docstring']] }
      let(:step) { ::TurnipFormatter::Step.new(description) }
      let(:pending_step) { step.dup.extend TurnipFormatter::Step::Pending }

      describe '#attention?' do
        subject { pending_step.attention? }
        it { should be_true }
      end

      describe '#status' do
        subject { pending_step.status }
        it { should eq 'pending' }
      end

      describe '#attention' do
        it 'should have been implemented' do
          expect(step).not_to respond_to(:attention)
          expect(pending_step).to respond_to(:attention)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
turnip_formatter-0.0.1 spec/turnip_formatter/step/pending_spec.rb