Sha256: 1dda772c5840f945332a7504109392bf8863f5df1c2e9e9dc04ac3420a6c9115
Contents?: true
Size: 927 Bytes
Versions: 1
Compression:
Stored size: 927 Bytes
Contents
# encoding: utf-8 require 'test_helper' require 'review/compiler' require 'review/book' require 'review/htmlbuilder' require 'review/i18n' class MARKDOWNBuilderTest < Test::Unit::TestCase include ReVIEW def setup @builder = MARKDOWNBuilder.new() @param = { "secnolevel" => 2, # for IDGXMLBuilder, HTMLBuilder "inencoding" => "UTF-8", "outencoding" => "UTF-8", "stylesheet" => nil, # for HTMLBuilder } ReVIEW.book.param = @param @compiler = ReVIEW::Compiler.new(@builder) @chapter = Book::Chapter.new(Book::Base.new(nil), 1, '-', nil, StringIO.new) location = Location.new(nil, nil) @builder.bind(@compiler, @chapter, location) end def test_inline_em assert_equal "test*foo*abc", @builder.compile_inline("test@<em>{foo}abc") end def test_inline_strong assert_equal "test**foo**abc", @builder.compile_inline("test@<strong>{foo}abc") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
review-1.2.0 | test/test_markdownbuilder.rb |