summaryrefslogtreecommitdiff
path: root/lib/rubygems/test_utilities.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/test_utilities.rb2
1 files changed, 1 insertions, 1 deletions
@@ -76,7 +76,7 @@ class Gem::FakeFetcher
def cache_update_path(uri, path = nil, update = true)
if data = fetch_path(uri)
- open(path, 'wb') {|io| io.write data } if path and update
data
else
Gem.read_binary(path) if path