require 'spec_helper' require 'turnip_formatter/step_template/exception' describe TurnipFormatter::StepTemplate::Exception do after do TurnipFormatter.step_templates.pop end let!(:template) do described_class.new end describe '#build_failed' do subject { template.build_failed(failed_example) } it { should match %r{
} } end describe '#build_pending' do subject { template.build_pending(pending_example) } it { should match %r{
} } it { should match %r{
No such step} }
  end
end