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