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