summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-12-17 22:32:52 +0000
committerBundlerbot <bot@bundler.io>2019-12-17 22:32:52 +0000
commit8bd21aa0f5dc92fce4df277715f4eab546d30a7f (patch)
treeb2ab1e41a1f24405d4fbf30e25e2daf06eaf7c8a /spec
parent683fe9799e37bff81e53f1a7e97d3a19896b8fc9 (diff)
parent0a5db7e274cac1198d7e22d4e302dd9002342eae (diff)
downloadbundler-2.1.1.tar.gz
Merge #7502v2.1.1
7502: Release 2.1.1 r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was I want to get regression fixed as soon as possible to reduce impact. ### What is your fix for the problem, implemented in this PR? My fix is to release what we have already fixed as soon as possible. Co-authored-by: Bundlerbot <bot@bundler.io> Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
Diffstat (limited to 'spec')
-rw-r--r--spec/commands/exec_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index c1d6e4c25a..42f760ab12 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/commands/exec_spec.rb
@@ -61,6 +61,12 @@ RSpec.describe "bundle exec" do
expect(out).to eq(Gem::VERSION)
end
+ it "works when exec'ing to rubygems through sh -c" do
+ install_gemfile 'gem "rack"'
+ bundle "exec sh -c '#{gem_cmd} --version'"
+ expect(out).to eq(Gem::VERSION)
+ end
+
it "respects custom process title when loading through ruby" do
script_that_changes_its_own_title_and_checks_if_picked_up_by_ps_unix_utility = <<~'RUBY'
Process.setproctitle("1-2-3-4-5-6-7-8-9-10-11-12-13-14-15")