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.8.0.alpha2 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.8.0.alpha1 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.7.1 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.7.0 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.6.1 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.6.0 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.6.0.rc1 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.6.0.beta1 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.5.3 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.5.2 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.5.1 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.5.0 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.5.0.rc1 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.5.0.rc0 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.5.0.beta3 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.5.0.beta2 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.5.0.beta1 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.4.1 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.4.0 spec/unit/services/markdown_service_spec.rb
locomotivecms_steam-1.4.0.rc2 spec/unit/services/markdown_service_spec.rb