spec/spec_helper.rb in clamby-1.6.9 vs spec/spec_helper.rb in clamby-1.6.10
- old
+ new
@@ -11,10 +11,10 @@
# so that Command can keep doing what it always does.
mocks.verify_partial_doubles = true
end
def download(url)
- file = open(url)
+ file = URI.open(url)
file.is_a?(StringIO) ? to_tempfile(file) : file
end
# OpenURI returns either Tempfile or StringIO depending of the size of
# the response. We want to unify this and always return Tempfile.