Sha256: 91b8d38bf88cdae23bfc83fd7afbd9c3113d5cda14881b4d1658fde3b5f202c3
Contents?: true
Size: 746 Bytes
Versions: 2
Compression:
Stored size: 746 Bytes
Contents
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 do expect(subject).to have_tag 'div.step_exception' do with_tag 'pre' with_tag 'ol > li', text: ':in step:0 `' end end end describe '#build_pending' do subject { template.build_pending(pending_example) } it do expect(subject).to have_tag 'div.step_exception' do with_tag 'pre', text: 'No such step(0):' with_tag 'ol > li' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
turnip_formatter-0.3.1 | spec/turnip_formatter/step_template/exception_spec.rb |
turnip_formatter-0.3.0 | spec/turnip_formatter/step_template/exception_spec.rb |