diff --git a/spec/bundler/commands/exec_spec.rb b/spec/bundler/commands/exec_spec.rb index fe5cb9f50c..b3ec2c2cfe 100644 --- a/spec/bundler/commands/exec_spec.rb +++ b/spec/bundler/commands/exec_spec.rb @@ -280,10 +280,10 @@ RSpec.describe "bundle exec" do rubyopt = ENV["RUBYOPT"] setup_path = if ruby_core? - File.expand_path("../../../lib/bundler/setup", __dir__) - else - File.expand_path("../../lib/bundler/setup", __dir__) - end + File.expand_path("../../../lib/bundler/setup", __dir__) + else + File.expand_path("../../lib/bundler/setup", __dir__) + end rubyopt = "-r#{setup_path} #{rubyopt}" bundle "exec 'echo $RUBYOPT'"