Sha256: b7f870ce7f9813b75de992b96a483880323853f134efaa8834bbaab09c40f5f3

Contents?: true

Size: 508 Bytes

Versions: 54

Compression:

Stored size: 508 Bytes

Contents

require 'spec_helper'

describe Locomotive::Steam::TextileService do

  let(:service) { described_class.new }

  describe '#to_html' do

    let(:text) { <<-EOF
h1. Give RedCloth a try!

A *simple* paragraph
    EOF
    }

    subject { service.to_html(text) }

    it do
      is_expected.to eq <<-EOF
<h1>Give RedCloth a try!</h1>
<p>A <strong>simple</strong> paragraph</p>
EOF
      .strip
    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/textile_service_spec.rb
locomotivecms_steam-1.0.0.rc8 spec/unit/services/textile_service_spec.rb
locomotivecms_steam-1.0.0.rc6 spec/unit/services/textile_service_spec.rb
locomotivecms_steam-1.0.0.rc4 spec/unit/services/textile_service_spec.rb
locomotivecms_steam-1.0.0.rc3 spec/unit/services/textile_service_spec.rb
locomotivecms_steam-1.0.0.rc2 spec/unit/services/textile_service_spec.rb
locomotivecms_steam-1.0.0.rc1 spec/unit/services/textile_service_spec.rb
locomotivecms_steam-1.0.0.pre.beta.3 spec/unit/services/textile_service_spec.rb
locomotivecms_steam-1.0.0.pre.beta.2 spec/unit/services/textile_service_spec.rb
locomotivecms_steam-1.0.0.pre.beta.1 spec/unit/services/textile_service_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.3 spec/unit/services/textile_service_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.2 spec/unit/services/textile_service_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.1 spec/unit/services/textile_service_spec.rb
locomotivecms_steam-1.0.0.pre.alpha spec/unit/services/textile_service_spec.rb