test/test_i18n.rb in review-1.7.2 vs test/test_i18n.rb in review-2.0.0.beta1
- old
+ new
@@ -8,11 +8,11 @@
require 'tmpdir'
class I18nTest < Test::Unit::TestCase
include ReVIEW
- if RUBY_VERSION !~ /^1.8/ ## to avoid Travis error :-(
+ if RUBY_VERSION !~ /^1.8/ ## to avoid Travis error :-(
def test_load_locale_yml
Dir.mktmpdir do |dir|
Dir.chdir(dir) do
file = File.join(dir, "locale.yml")
File.open(file, "w"){|f| f.write("locale: ja\nfoo: \"bar\"\n")}
@@ -135,11 +135,13 @@
def _setup_htmlbuilder
I18n.setup "en"
@builder = HTMLBuilder.new()
@config = {
- "secnolevel" => 2, # for IDGXMLBuilder, HTMLBuilder
- "stylesheet" => nil, # for HTMLBuilder
+ "secnolevel" => 2, # for IDGXMLBuilder, HTMLBuilder
+ "inencoding" => "UTF-8",
+ "outencoding" => "UTF-8",
+ "stylesheet" => nil, # for HTMLBuilder
"ext" => ".re"
}
@book = Book::Base.new(".")
@book.config = @config
@compiler = ReVIEW::Compiler.new(@builder)