Sha256: 544503c558495dcf228a47a68b1127b8b48481d0421117742d04bba0cbc999fb

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
turnip_formatter-0.0.3 spec/turnip_formatter/template/step_multiline_spec.rb
turnip_formatter-0.0.2 spec/turnip_formatter/template/step_multiline_spec.rb