1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/erb] Skip a test for JRuby

https://github.com/ruby/erb/commit/48a75665ab
This commit is contained in:
Takashi Kokubun 2022-11-02 22:56:24 -07:00 committed by git
parent f667d3afc9
commit 7b6c5f9b5b

View file

@ -79,6 +79,9 @@ class TestERB < Test::Unit::TestCase
end
def test_concurrent_default_binding
# This test randomly fails with JRuby -- NameError: undefined local variable or method `template2'
pend if RUBY_ENGINE == 'jruby'
template1 = 'one <%= ERB.new(template2).result %>'
eval 'template2 = "two"', TOPLEVEL_BINDING