test/test_topbuilder.rb in review-1.4.0 vs test/test_topbuilder.rb in review-1.5.0
- old
+ new
@@ -13,11 +13,12 @@
@builder = TOPBuilder.new()
@config = ReVIEW::Configure.values
@config.merge!({
"secnolevel" => 2,
"inencoding" => "UTF-8",
- "outencoding" => "UTF-8"
+ "outencoding" => "UTF-8",
+ "language" => "ja",
})
@book = Book::Base.new(nil)
@book.config = @config
@compiler = ReVIEW::Compiler.new(@builder)
@chapter = Book::Chapter.new(@book, 1, '-', nil, StringIO.new)
@@ -28,9 +29,10 @@
# to ignore lineno in original method
def warn(msg)
puts msg
end
end
+ I18n.setup(@config["language"])
end
def test_headline_level1
actual = compile_block("={test} this is test.\n")
assert_equal %Q|■H1■第1章 this is test.\n|, actual