Sha256: 002b4794baf7e0a278e6d695f4160e4cdbdcc8fb511d09a200370cc04d361b64

Contents?: true

Size: 435 Bytes

Versions: 6

Compression:

Stored size: 435 Bytes

Contents

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

require 'spec_helper'
require 'turnip_formatter/template/step_multiline'

module TurnipFormatter
  class Template
    describe StepMultiline do
      let(:template) { ::TurnipFormatter::Template::StepMultiline }
      let(:string) { 'a<a>a' }

      describe '.build' do
        subject { template.build(string) }
        it { should eq '<pre class="multiline">a&lt;a&gt;a</pre>' }
      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_multiline_spec.rb
turnip_formatter-0.1.1 spec/turnip_formatter/template/step_multiline_spec.rb
turnip_formatter-0.1.0 spec/turnip_formatter/template/step_multiline_spec.rb
turnip_formatter-0.0.6 spec/turnip_formatter/template/step_multiline_spec.rb
turnip_formatter-0.0.5 spec/turnip_formatter/template/step_multiline_spec.rb
turnip_formatter-0.0.4 spec/turnip_formatter/template/step_multiline_spec.rb