Sha256: e8950691bce429ef748c40ca375332028a91a007b84551747e048d93a24c5fd3
Contents?: true
Size: 697 Bytes
Versions: 3
Compression:
Stored size: 697 Bytes
Contents
require 'spec_helper' require 'redcarpet/confluence' describe 'Smoke Tests' do let(:markdown_options) { { autolink: true, fenced_code_blocks: true, no_intra_emphasis: true, strikethrough: true, superscript: true, tables: true } } let(:renderer) { Redcarpet::Markdown.new(Redcarpet::Confluence, markdown_options) } let(:markdown_text) { File.read(File.expand_path('../sample.md', __FILE__)).force_encoding('UTF-8') } let(:confluence_text) { File.read(File.expand_path('../sample.confluence', __FILE__)).force_encoding('UTF-8') } it 'renders the markdown into confluence correctly' do expect(renderer.render(markdown_text)).to eq(confluence_text) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
redcarpet-confluence-1.1.0 | spec/smoke_spec.rb |
redcarpet-confluence-1.0.1 | spec/smoke_spec.rb |
redcarpet-confluence-1.0.0 | spec/smoke_spec.rb |