aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/test_utilities.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/test_utilities.rb')
-rw-r--r--lib/rubygems/test_utilities.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/test_utilities.rb b/lib/rubygems/test_utilities.rb
index bd5f2134be..dc0d93e6c2 100644
--- a/lib/rubygems/test_utilities.rb
+++ b/lib/rubygems/test_utilities.rb
@@ -63,9 +63,9 @@ class Gem::FakeFetcher
end
end
- def cache_update_path uri, path = nil
+ def cache_update_path uri, path = nil, update = true
if data = fetch_path(uri)
- open(path, 'wb') { |io| io.write data } if path
+ open(path, 'wb') { |io| io.write data } if path and update
data
else
Gem.read_binary(path) if path