Sha256: f9d2de6a50a7a35b855cb14dd68974ec3da3b5de1d34596c4b57fedbd0c6674f

Contents?: true

Size: 519 Bytes

Versions: 54

Compression:

Stored size: 519 Bytes

Contents

require 'spec_helper'

describe Locomotive::Steam::MarkdownService do

  let(:service) { described_class.new }

  describe '#to_html' do

    let(:text) { <<-EOF
First level header
==================

Second level header
-------------------
    EOF
    }

    subject { service.to_html(text) }

    it do
      is_expected.to eq <<-EOF
<h1>First level header</h1>

<h2>Second level header</h2>
      EOF
    end

    describe 'no text' do

      let(:text) { nil }
      it { is_expected.to eq '' }
    end

  end

end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
locomotivecms_steam-1.0.0.rc9 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.rc8 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.rc6 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.rc4 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.rc3 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.rc2 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.rc1 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.pre.beta.3 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.pre.beta.2 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.pre.beta.1 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.3 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.2 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.1 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.0.0.pre.alpha spec/unit/services/markdown_service_spec.rb