1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Don't assert over specific error message

This triggers a failure on Rubinius otherwise:

https://travis-ci.org/haml/haml/jobs/4429546
This commit is contained in:
Norman Clarke 2013-01-28 12:31:30 -03:00
parent 5205991fcf
commit 9fd5a0a335

View file

@ -1894,7 +1894,7 @@ HAML
assert(false, "Expected exception")
rescue Haml::Error => e
assert_equal(3, e.line)
assert_equal('Invalid UTF-8 character "\xFE"', e.message)
assert_match(/Invalid .* character/, e.message)
end
def test_ascii_incompatible_encoding_error
@ -1904,7 +1904,7 @@ HAML
assert(false, "Expected exception")
rescue Haml::Error => e
assert_equal(3, e.line)
assert_equal('Invalid UTF-16LE character "\xFE"', e.message)
assert_match(/Invalid .* character/, e.message)
end
def test_same_coding_comment_as_encoding