Ignore JRuby's broken Ripper

This commit is contained in:
Takashi Kokubun 2018-11-01 16:14:54 +09:00
parent 1320e49bc6
commit 2e49bb4950
2 changed files with 8 additions and 0 deletions

View File

@ -111,6 +111,10 @@ describe Hamlit::Engine do
end
it 'does not crash when nil is given' do
if /java/ === RUBY_PLATFORM
skip 'maybe due to Ripper of JRuby'
end
assert_raises ArgumentError do
render_hamlit("%div{ nil }")
end

View File

@ -38,6 +38,10 @@ describe Hamlit::StringSplitter do
end
it 'raises internal error' do
if /java/ === RUBY_PLATFORM
skip 'Ripper of JRuby is behaving in a different way'
end
assert_raises Hamlit::InternalError do
Hamlit::StringSplitter.compile('"]')
end