test/http/copy-from-http.rb in rio-0.4.0 vs test/http/copy-from-http.rb in rio-0.4.1
- old
+ new
@@ -44,21 +44,22 @@
end
def test_gunzip_copy_uri_rio
ario = rio('out.txt').delete! < rio(GZURL).gzip
ans = rio(ario).contents
exp = rio(GZFILE).gzip.contents
-
assert_equal(exp,ans)
end
+
def test_uri_rio_to_file
ario = rio('outf').delete!.touch
url = HWURL
urio = rio(url)
ario < urio
exp = urio.contents
assert_equal(exp,ario.contents)
assert_equal(rio(HWFILE).contents,rio('outf').contents)
end
+
def test_uri_rio_to_file2
ario = rio('outf2').delete!.touch
url = HWURL
urio = rio(url)
urio > ario