test/test_builder.rb in review-1.2.0 vs test/test_builder.rb in review-1.3.0
- old
+ new
@@ -78,11 +78,11 @@
[:print, "#{utf8_str}\n", "#{expect}\n"],
[:puts, "#{utf8_str}\n", "#{expect}\n"],
].each do |m, instr, expstr|
b = Builder.new
b.bind(nil, nil, nil)
- ReVIEW.book.param = params
+ ReVIEW.book.config = params
b.__send__(m, instr)
if "".respond_to?(:encode)
assert_equal expstr.encode("UTF-8"), b.result
else
assert_equal expstr, b.result
@@ -126,12 +126,12 @@
text = "abc\\d\\#a"
assert_equal [:text, text], @b.compile_inline(text)
end
def test_convert_outencoding
- ReVIEW.book.param = {'outencoding' => "EUC"}
+ ReVIEW.book.config = {'outencoding' => "EUC"}
b = Builder.new
- ret = b.convert_outencoding("a", ReVIEW.book.param["outencoding"])
+ ret = b.convert_outencoding("a", ReVIEW.book.config["outencoding"])
assert_equal "a", ret
end
class XBuilder < Builder
def list_header(id, caption)