Sha256: 7e11e360703cac5ec17be40f1a932626e294a235c67564d01ad13792a35f2ff4

Contents?: true

Size: 598 Bytes

Versions: 4

Compression:

Stored size: 598 Bytes

Contents

require 'spec_helper'

describe Mdoc do
  it 'find pandoc.html' do
    Mdoc.load_defaults
    Mdoc.load_cli_options %w[-t pandoc.html -d spec/fixtures/templates]
    tpl = Mdoc.find_tpl_file
    tpl.should match(%r|spec/fixtures/templates/pandoc\.html\.erb$|)
    Mdoc.find_out_file('ff.md').should eq('ff.html')
  end

  it 'find default.html' do
    Mdoc.load_defaults
    Mdoc.load_cli_options %w[-t html -d spec/fixtures/templates]
    tpl = Mdoc.find_tpl_file
    tpl.should match(%r|spec/fixtures/templates/default\.html\.erb$|)
    Mdoc.find_out_file('ff.md').should eq('ff.html')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mdoc-0.0.8 spec/tpl_out_spec.rb
mdoc-0.0.7 spec/tpl_out_spec.rb
mdoc-0.0.6 spec/tpl_out_spec.rb
mdoc-0.0.5 spec/tpl_out_spec.rb