Permalink
Browse files

#1789. test when regex chars are in bundler root

  • Loading branch information...
1 parent 0dcbb51 commit d25ba1c6a08aa6e1eac4934af6537bcabef90e57 @hone hone committed Mar 23, 2012
Showing with 23 additions and 0 deletions.
  1. +23 −0 spec/install/gems/simple_case_spec.rb
@@ -339,6 +339,29 @@
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

0 comments on commit d25ba1c

Please sign in to comment.