require 'spec_helper' require 'turnip_formatter/printer/step' describe TurnipFormatter::Printer::Step do describe '.print_out' do subject { described_class.print_out(step) } context 'not has extra argument' do let(:step) do step = passed_step expect(step).to receive(:argument).and_return(nil) step end it { should match %r{
} should match %r{
} } end context 'has table argument' do let(:table) { Turnip::Table.new [] } let(:step) do step = passed_step allow(step).to receive(:argument).and_return(table) step end it { should match %r{
} should match %r{} } end context 'has outline argument' do let(:step) do step = passed_step allow(step).to receive(:argument).and_return('DocString') step end it { should match %r{
} should match %r{
}
      }
    end
  end
end