diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-12-20 17:26:41 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-12-20 17:36:29 +0100 |
commit | 322236491329e6136fc239fce31d00c6e3193d98 (patch) | |
tree | 15fb8608da6d1d5959afbd84bffdb20dfc46162e /spec | |
parent | 6ab5f479ae7e53e0833a342fb4129ae3952b049e (diff) | |
download | bundler-322236491329e6136fc239fce31d00c6e3193d98.tar.gz |
Fix `rake build` when path has spaces on itfix/rake_build_with_spaced_path
Diffstat (limited to 'spec')
-rw-r--r-- | spec/runtime/gem_tasks_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/runtime/gem_tasks_spec.rb b/spec/runtime/gem_tasks_spec.rb index 4b92de76bb..74270a2316 100644 --- a/spec/runtime/gem_tasks_spec.rb +++ b/spec/runtime/gem_tasks_spec.rb @@ -57,6 +57,20 @@ RSpec.describe "require 'bundler/gem_tasks'" do expect(err).to be_empty end + context "rake build when path has spaces" do + before do + spaced_bundled_app = tmp.join("bundled app") + FileUtils.mv bundled_app, spaced_bundled_app + Dir.chdir(spaced_bundled_app) + end + + it "still runs successfully" do + bundle! "exec rake build" + + expect(err).to be_empty + end + end + it "adds 'pkg' to rake/clean's CLOBBER" do with_gem_path_as(Spec::Path.base_system_gems.to_s) do sys_exec! %(#{rake} -e 'load "Rakefile"; puts CLOBBER.inspect') |