Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Auto merge of #5036 - bundler:seg-specs-no-spaces, r=indirect
Browse files Browse the repository at this point in the history
Fail fast in the specs when running from a path with special characters

\c @indirect
  • Loading branch information
homu committed Oct 3, 2016
2 parents de2d3df + d967ea9 commit b16fe03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
abort "Run rake spec:deps to install development dependencies"
end

if File.expand_path(__FILE__) =~ %r{([^\w/\.])}
abort "The bundler specs cannot be run from a path that contains special characters (particularly #{$1.inspect})"
end

require "bundler"

# Require the correct version of popen for the current platform
Expand Down

0 comments on commit b16fe03

Please sign in to comment.