Sha256: b9bd5eeb66385b88f7626e47039afb84f0abe866505b0ab5f4bb1042fc48044e

Contents?: true

Size: 312 Bytes

Versions: 7

Compression:

Stored size: 312 Bytes

Contents

require 'spec_helper'

describe Mdoc::Processor::AddTitle do
  it 'delete extra blank lines' do
    doc = Mdoc::Document::Kramdown.new('spec/fixtures/multikeys.md')
    doc.body.should match(/^The content inside/)
    doc.apply!('add_title')
    doc.body.should match(/^\# The title for our document/)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mdoc-0.0.11 spec/add_title_spec.rb
mdoc-0.0.10 spec/add_title_spec.rb
mdoc-0.0.9 spec/add_title_spec.rb
mdoc-0.0.8 spec/add_title_spec.rb
mdoc-0.0.7 spec/add_title_spec.rb
mdoc-0.0.6 spec/add_title_spec.rb
mdoc-0.0.5 spec/add_title_spec.rb