summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Piotrowski <piotrowski+git@gmail.com>2019-03-03 20:31:38 +0100
committerJan Piotrowski <piotrowski+git@gmail.com>2019-03-03 20:31:38 +0100
commit6464fc09a16d1bf226dc3f5163e63136bee6692a (patch)
treea9018be0c988ca1a091b7f615dbe8d958ed4f003
parenteeb5722f24e8868cbbf3687cc772254ac65d19df (diff)
downloadbundler-6464fc09a16d1bf226dc3f5163e63136bee6692a.tar.gz
adapt path regex to also work with Windows paths
-rw-r--r--spec/support/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index 9be5955ac3..d9ccd86f63 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -318,7 +318,7 @@ module Spec
Dir.chdir(root) { gem_command! :build, gemspec.to_s }
end
bundler_path = root + "bundler-#{Bundler::VERSION}.gem"
- elsif g.to_s =~ %r{\A/.*\.gem\z}
+ elsif g.to_s =~ %r{\A[A-Z]?:/.*\.gem\z}
g
else
"#{gem_repo}/gems/#{g}.gem"