Use heredoc to script runner for another ruby process

This commit is contained in:
Hiroshi SHIBATA 2025-01-08 10:48:48 +09:00
parent 18f756e4af
commit aaf36f4f8e
Notes: git 2025-01-08 02:55:58 +00:00

View File

@ -58,7 +58,12 @@ end
RSpec.describe "bundled_gems.rb" do
def script(code, options = {})
options[:artifice] ||= "compact_index"
ruby("require 'bundler/inline'\n\n" + code, options)
code = <<~RUBY
require 'bundler/inline'
#{code}
RUBY
ruby(code, options)
end
it "Show warning require and LoadError" do