Sha256: 0b73afacae6d3d67826cd778b43c3ff9d7b0462382c04e98a80b9dd923b15ab5

Contents?: true

Size: 665 Bytes

Versions: 2

Compression:

Stored size: 665 Bytes

Contents

require File.join(File.dirname(__FILE__), 'test_helper')
require 'markout/output'

module Markout
  class OutputTest < Test::Unit::TestCase

    def test_default_initialization
      assert_nothing_raised { default_output }
      assert_not_nil @output.document
      assert_not_nil @output.format
      assert_not_nil @output.formatter
      assert_equal Markout::Html, @output.formatter.class
    end

    def test_export
      default_output
      assert_equal fixture('markdown.html'), @output.export
    end

    def test_export_to_file
      # TODO
    end

    def default_output
      @output = Output.new( fixture_file('markdown.txt') )
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
karmi-markout-0.0.0 test/markout_output_test.rb
karmi-markout-0.1.0 test/markout_output_test.rb