Make TestConvertible to pass with utf-8 encoding

This commit is contained in:
Shigeya Suzuki 2013-08-18 10:43:25 +09:00
parent 8b892ed735
commit fbea3471dd
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class TestConvertible < Test::Unit::TestCase
should "not parse if there is encoding error in file" do
name = 'broken_front_matter3.erb'
out = capture_stdout do
ret = @convertible.read_yaml(@base, name)
ret = @convertible.read_yaml(@base, name, :encoding => 'utf-8')
assert_equal({}, ret)
end
assert_match(/invalid byte sequence in UTF-8/, out)