Skip to content

Commit

Permalink
Auto merge of rubygems#6200 - voxik:relax-directory-restrictions, r=s…
Browse files Browse the repository at this point in the history
…egiddins

Allow test execution in paths containing dash.

PR rubygems#5036 added restriction on what characters can be contained in path,
from where the specs are executed. But they dissallows even dash, which
is hopefully handled just fine on all systems.

This patch fixes rubygems#6185 by relaxing the restriction a bit and allowing
path to contain dash.
  • Loading branch information
bundlerbot committed Dec 4, 2017
2 parents 5e49f42 + 82e5f58 commit 5566b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
abort "Run rake spec:deps to install development dependencies"
end

if File.expand_path(__FILE__) =~ %r{([^\w/\.])}
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

Expand Down

0 comments on commit 5566b68

Please sign in to comment.