aboutsummaryrefslogtreecommitdiffstats
path: root/test/erb/test_erb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/erb/test_erb.rb')
-rw-r--r--test/erb/test_erb.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/erb/test_erb.rb b/test/erb/test_erb.rb
index 5be5ed7e09..424ddae87e 100644
--- a/test/erb/test_erb.rb
+++ b/test/erb/test_erb.rb
@@ -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