Sha256: 3b4528efd4dacff533a90ee44f6c5b5bbce742da879060dbe9f67ce29d5d2ba4

Contents?: true

Size: 404 Bytes

Versions: 10

Compression:

Stored size: 404 Bytes

Contents

require 'spec_helper'
require 'turnip_formatter/step_template/source'

describe TurnipFormatter::StepTemplate::Source do
  let(:template) do
    described_class.new
  end

  describe '#build' do
    subject { template.build(failed_example) }

    it do
      should match %r{<pre class="source">}
      should match %r{<code class="ruby">}
      should match %r{<span class="linenum">}
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
turnip_formatter-0.6.0.pre.beta.7 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.6.0.pre.beta.6 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.6.0.pre.beta.5 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.6.0.pre.beta.4 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.6.0.pre.beta.3 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.6.0.pre.beta.2 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.6.0.pre.beta.1 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.5.0 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.4.0 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.3.4 spec/turnip_formatter/step_template/source_spec.rb