Added prospective test for encoding conflict errors

This commit is contained in:
Ian Kirker 2017-02-15 10:50:12 +00:00
parent 63941f99dd
commit 2fd50480ea

View File

@ -89,5 +89,14 @@ class WaybackMachineDownloaderTest < Minitest::Test
@wayback_machine_downloader.all = true
assert_equal 69, @wayback_machine_downloader.get_file_list_curated.size
end
# Testing encoding conflicts needs a different base_url
def test_nonascii_suburls_download
@wayback_machine_downloader = WaybackMachineDownloader.new base_url: 'https://en.wikipedia.org/wiki/%C3%84'
# Once for the downloading...
@wayback_machine_downloader.download_files
# ... and once for the "is already present"
@wayback_machine_downloader.download_files
end
end