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:
parent
5205991fcf
commit
9fd5a0a335
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue