diff options
author | Vít Ondruch <vondruch@redhat.com> | 2017-12-01 14:59:59 +0100 |
---|---|---|
committer | Vít Ondruch <vondruch@redhat.com> | 2017-12-01 15:15:53 +0100 |
commit | 82e5f58fd34d7a04dc9de3644ad3f60fc629412b (patch) | |
tree | 3c5de36a1bed2da055aad3cb268ffe07f1d4b4f2 | |
parent | 5e49f422b69df8fc5a0c0c06cb1adfc167212b5d (diff) | |
download | bundler-82e5f58fd34d7a04dc9de3644ad3f60fc629412b.tar.gz |
Allow test execution in paths containing dash.
PR #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 #6185 by relaxing the restriction a bit and allowing
path to contain dash.
-rw-r--r-- | spec/spec_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b1404ff385..373fc6d4f4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -21,7 +21,7 @@ rescue LoadError 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 |