Sha256: d4905a28c00892e036e96a213f2ab26be32ea3b50179110f63de2952c4f939b7
Contents?: true
Size: 720 Bytes
Versions: 1
Compression:
Stored size: 720 Bytes
Contents
require 'spec_helper' module TurnipFormatter describe Step do let(:step) { ::TurnipFormatter::Step.new(description) } let(:description) { ['StepName', 'Keyword', ['Docstring']] } describe '#attention?' do subject { step.attention? } it { should be_false } end describe '#name' do subject { step.name } it { should eq('KeywordStepName') } end describe '#docs' do subject { step.docs } it { should include :extra_args } end context 'No docstring' do let(:description) { ['StepName', 'Keyword', []] } describe '#docs' do subject { step.docs } it { should_not include :extra_args } 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_spec.rb |