Use heredoc to script runner for another ruby process
This commit is contained in:
parent
18f756e4af
commit
aaf36f4f8e
Notes:
git
2025-01-08 02:55:58 +00:00
@ -58,7 +58,12 @@ end
|
|||||||
RSpec.describe "bundled_gems.rb" do
|
RSpec.describe "bundled_gems.rb" do
|
||||||
def script(code, options = {})
|
def script(code, options = {})
|
||||||
options[:artifice] ||= "compact_index"
|
options[:artifice] ||= "compact_index"
|
||||||
ruby("require 'bundler/inline'\n\n" + code, options)
|
code = <<~RUBY
|
||||||
|
require 'bundler/inline'
|
||||||
|
|
||||||
|
#{code}
|
||||||
|
RUBY
|
||||||
|
ruby(code, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "Show warning require and LoadError" do
|
it "Show warning require and LoadError" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user