summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_spec_fetcher.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_spec_fetcher.rb b/test/rubygems/test_gem_spec_fetcher.rb
index 57983a2752..20a40b68c1 100644
--- a/test/rubygems/test_gem_spec_fetcher.rb
+++ b/test/rubygems/test_gem_spec_fetcher.rb
@@ -415,7 +415,8 @@ class TestGemSpecFetcher < Gem::TestCase
def test_cache_dir_escapes_windows_paths
uri = URI.parse("file:///C:/WINDOWS/Temp/gem_repo")
cache_dir = @sf.cache_dir(uri)
- assert cache_dir !~ /:/, "#{cache_dir} should not contain a :"
+ pos = (/\A[a-z]:/i =~ cache_dir) ? 2 : 0
+ refute /:/ =~ cache_dir[pos..-1], "#{cache_dir} should not contain a :"
end
end