Sha256: 488b34c96a6fe0675c7759fb1b1afc29de6689b90df8e232ff69be0b430137cc

Contents?: true

Size: 302 Bytes

Versions: 7

Compression:

Stored size: 302 Bytes

Contents

require 'spec_helper'

describe Mdoc::Processor::AddToc do
  it 'delete extra blank lines' do
    doc = Mdoc::Document::Kramdown.new('spec/fixtures/multikeys.md')
    doc.body.should_not match(/\:toc/)
    doc.apply!('add_toc')
    doc.apply!('add_title')
    doc.body.should match(/\:toc/)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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