Skip to content

Commit 65a7c70

Browse files
committed
Skip tests for truffleruby
1 parent e6edd5c commit 65a7c70

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

test/erb/test_erb.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ def test_explicit_trim_line_with_carriage_return
236236
end
237237

238238
def test_invalid_trim_mode
239+
pend if RUBY_ENGINE == 'truffleruby'
240+
239241
assert_warning(/#{__FILE__}:#{__LINE__ + 1}/) do
240242
@erb.new("", trim_mode: 'abc-def')
241243
end

test/erb/test_erb_command.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,23 @@
44

55
class TestErbCommand < Test::Unit::TestCase
66
def test_var
7+
pend if RUBY_ENGINE == 'truffleruby'
78
assert_in_out_err(["-I#{File.expand_path('../../lib', __dir__)}", "-w",
89
File.expand_path("../../libexec/erb", __dir__),
910
"var=hoge"],
1011
"<%=var%>", ["hoge"])
1112
end
1213

1314
def test_template_file_encoding
15+
pend if RUBY_ENGINE == 'truffleruby'
1416
assert_in_out_err(["-I#{File.expand_path('../../lib', __dir__)}", "-w",
1517
File.expand_path("../../libexec/erb", __dir__)],
1618
"<%=''.encoding.to_s%>", ["UTF-8"])
1719
end
1820

1921
# These interfaces will be removed at Ruby 2.7.
2022
def test_deprecated_option
23+
pend if RUBY_ENGINE == 'truffleruby'
2124
warnings = [
2225
"warning: -S option of erb command is deprecated. Please do not use this.",
2326
/\n.+\/libexec\/erb:\d+: warning: Passing safe_level with the 2nd argument of ERB\.new is deprecated\. Do not use it, and specify other arguments as keyword arguments\.\n/,

0 commit comments

Comments
 (0)