summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-08-04 08:40:56 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 19:06:14 +0900
commit8adc606271210acad490e93c47c3e1501407fb27 (patch)
treeaeb33c52bbc6d22e2b9e8a3733d9bb65db0970c2 /spec
parentb6c082fd0951d22bc63582283d19f7c970829628 (diff)
[rubygems/rubygems] Fix git repo initialization on a path with spaces
https://github.com/rubygems/rubygems/commit/a2d6e10192
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/commands/newgem_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb
index 01f8a5daea..4ccf9be6a8 100644
--- a/spec/bundler/commands/newgem_spec.rb
+++ b/spec/bundler/commands/newgem_spec.rb
@@ -52,6 +52,17 @@ RSpec.describe "bundle gem" do
gem_skeleton_assertions
expect(bundled_app("#{gem_name}/.git")).not_to exist
end
+
+ context "on a path with spaces" do
+ before do
+ Dir.mkdir(bundled_app("path with spaces"))
+ end
+
+ it "properly initializes git repo", :readline do
+ bundle "gem #{gem_name}", :dir => bundled_app("path with spaces")
+ expect(bundled_app("path with spaces/#{gem_name}/.git")).to exist
+ end
+ end
end
shared_examples_for "--mit flag" do