summaryrefslogtreecommitdiff
path: root/lib/rubygems/test_utilities.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/test_utilities.rb2
1 files changed, 2 insertions, 0 deletions
@@ -38,6 +38,8 @@ class Gem::FakeFetcher
end
def find_data(path)
if URI === path and "URI::#{path.scheme.upcase}" != path.class.name then
raise ArgumentError,
"mismatch for scheme #{path.scheme} and class #{path.class}"