summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2012-03-23 15:45:22 -0700
committerTerence Lee <hone02@gmail.com>2012-03-23 16:37:37 -0700
commitd25ba1c6a08aa6e1eac4934af6537bcabef90e57 (patch)
tree5305efdb72c2ee5948093b2dc2096b442c5b0616
parent0dcbb515b3cc6c357c12762e64b7b77a30c6fb58 (diff)
downloadbundler-d25ba1c6a08aa6e1eac4934af6537bcabef90e57.tar.gz
#1789. test when regex chars are in bundler root
-rw-r--r--spec/install/gems/simple_case_spec.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/install/gems/simple_case_spec.rb b/spec/install/gems/simple_case_spec.rb
index dbce6e4ed3..0619ba52b8 100644
--- a/spec/install/gems/simple_case_spec.rb
+++ b/spec/install/gems/simple_case_spec.rb
@@ -339,6 +339,29 @@ describe "bundle install with gem sources" do
end
end
+ describe "when Bundler root contains regex chars" do
+ before do
+ root_dir = tmp("foo[]bar")
+
+ FileUtils.mkdir_p(root_dir)
+ in_app_root_custom(root_dir)
+ end
+
+ it "doesn't blow up" do
+ build_lib "foo"
+ gemfile = <<-G
+ gem 'foo', :path => "#{lib_path('foo-1.0')}"
+ G
+ File.open('Gemfile', 'w') do |file|
+ file.puts gemfile
+ end
+
+ bundle :install, :exitstatus => true
+
+ exitstatus.should == 0
+ end
+ end
+
describe "when prerelease gems are available" do
it "finds prereleases" do
install_gemfile <<-G