Sha256: 6272062bfbd33de55835392c32534698ae91d18cbc925c2ce9d83a25bc77188f

Contents?: true

Size: 621 Bytes

Versions: 3

Compression:

Stored size: 621 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('pandoc.html')
    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('html')
    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

3 entries across 3 versions & 1 rubygems

Version Path
mdoc-0.0.11 spec/tpl_out_spec.rb
mdoc-0.0.10 spec/tpl_out_spec.rb
mdoc-0.0.9 spec/tpl_out_spec.rb