diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-02-01 13:43:32 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-02-01 14:13:22 -0500 |
| commit | d3ba14a31d45b7132e193d51742f59e121f211a0 (patch) | |
| tree | 581fe430d63dc004ef3177c275ccdf0655b91184 /test/ruby | |
| parent | ae0441358b65d17832b01a6866330b5e469bd7fb (diff) | |
[PRISM] Do not shell out in prism tests
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index aecb223bcc..69cc6980b0 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -720,8 +720,15 @@ module Prism end def test_InterpolatedXStringNode - assert_prism_eval('`echo #{1}`') - assert_prism_eval('`echo #{"100"}`') + assert_prism_eval(<<~RUBY) + def self.`(command) = command * 2 + `echo \#{1}` + RUBY + + assert_prism_eval(<<~RUBY) + def self.`(command) = command * 2 + `echo \#{"100"}` + RUBY end def test_MatchLastLineNode |
