diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-06-09 11:00:07 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-06-10 21:03:31 +0900 |
commit | 13c737eb46563480cf228c98350e4d4599436663 (patch) | |
tree | 96bb358976b423360a56b4fd504ee3c796bc9766 /spec/commands/exec_spec.rb | |
parent | c2e097c585cf85ad9188f8ecb6a267e179022014 (diff) | |
download | bundler-13c737eb46563480cf228c98350e4d4599436663.tar.gz |
Added the condition for ruby_core repository.
Diffstat (limited to 'spec/commands/exec_spec.rb')
-rw-r--r-- | spec/commands/exec_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb index 8f49c576b5..fe5cb9f50c 100644 --- a/spec/commands/exec_spec.rb +++ b/spec/commands/exec_spec.rb @@ -279,7 +279,12 @@ RSpec.describe "bundle exec" do G rubyopt = ENV["RUBYOPT"] - rubyopt = "-r#{File.expand_path("../../lib/bundler/setup", __dir__)} #{rubyopt}" + setup_path = if ruby_core? + 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'" expect(out).to have_rubyopts(rubyopt) |