aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-12-18 14:53:19 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-12-18 14:53:19 +0900
commitefbc0d499c0dc5b74698418c76e58098c6c113e1 (patch)
tree006ae0b7dc322164a0b74549bc263f67494c70f9 /spec
parentfa7fa5c86b0674eca233922045e4d3dd4ee49cb7 (diff)
downloadruby-efbc0d499c0dc5b74698418c76e58098c6c113e1.tar.gz
Merge bundler-2.1.1 from bundler/bundler
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/commands/exec_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/bundler/commands/exec_spec.rb b/spec/bundler/commands/exec_spec.rb
index c1d6e4c25a..42f760ab12 100644
--- a/spec/bundler/commands/exec_spec.rb
+++ b/spec/bundler/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")