Sha256: 89e4d3111c244697c78b565db96ebc0ac9affb7aac68c026cb5351270effd59e

Contents?: true

Size: 531 Bytes

Versions: 12

Compression:

Stored size: 531 Bytes

Contents

# -*- coding: utf-8 -*-

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

module TurnipFormatter
  module StepTemplate
    describe Source do
      let(:template) { ::TurnipFormatter::StepTemplate::Source }
      let(:source) { __FILE__ + ':3' }

      describe '.build' do
        subject { template.build(source) }
        it do
          should match '<pre class="source"><code class="ruby">'
          should match "require 'turnip_formatter/step_template/source'"
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
turnip_formatter-0.2.11 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.2.10 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.2.9 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.2.8 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.2.7 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.2.6 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.2.5 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.2.4 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.2.3 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.2.2 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.2.1 spec/turnip_formatter/step_template/source_spec.rb
turnip_formatter-0.2.0 spec/turnip_formatter/step_template/source_spec.rb