test/test_markdownbuilder.rb in review-4.2.0 vs test/test_markdownbuilder.rb in review-5.0.0
- old
+ new
@@ -14,10 +14,11 @@
@book.config = @config
@compiler = ReVIEW::Compiler.new(@builder)
@chapter = Book::Chapter.new(@book, 1, '-', nil, StringIO.new)
location = Location.new(nil, nil)
@builder.bind(@compiler, @chapter, location)
+ I18n.setup(@config['language'])
end
def test_quote
actual = compile_block("//quote{\nfoo\nbar\n\nbuz\n//}\n")
expected = <<-EOS
@@ -45,10 +46,12 @@
actual = compile_block("//memo[this is @<b>{test}<&>_]{\ntest1\n\ntest@<i>{2}\n//}\n")
expected = <<-EOS
<div class="memo">
<p class="caption">this is **test**<&>_</p>
test1
+
test*2*
+
</div>
EOS
assert_equal expected, actual
end