Sha256: 6f0359c3b975b56c724a5c4203b37335b30aedbd524a09b760d006c682f13507

Contents?: true

Size: 530 Bytes

Versions: 6

Compression:

Stored size: 530 Bytes

Contents

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

require 'spec_helper'
require 'turnip_formatter/template/step_source'

module TurnipFormatter
  class Template
    describe StepSource do
      let(:template) { ::TurnipFormatter::Template::StepSource }
      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/template/step_source'"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
turnip_formatter-0.1.2 spec/turnip_formatter/template/step_source_spec.rb
turnip_formatter-0.1.1 spec/turnip_formatter/template/step_source_spec.rb
turnip_formatter-0.1.0 spec/turnip_formatter/template/step_source_spec.rb
turnip_formatter-0.0.6 spec/turnip_formatter/template/step_source_spec.rb
turnip_formatter-0.0.5 spec/turnip_formatter/template/step_source_spec.rb
turnip_formatter-0.0.4 spec/turnip_formatter/template/step_source_spec.rb