Split encoding test into two tests

(One for downloading, one for when files are already present)
This commit is contained in:
Ian Kirker 2017-02-15 10:58:40 +00:00
parent 2fd50480ea
commit 0a324016b8

View File

@ -93,9 +93,14 @@ class WaybackMachineDownloaderTest < Minitest::Test
# Testing encoding conflicts needs a different base_url # Testing encoding conflicts needs a different base_url
def test_nonascii_suburls_download def test_nonascii_suburls_download
@wayback_machine_downloader = WaybackMachineDownloader.new base_url: 'https://en.wikipedia.org/wiki/%C3%84' @wayback_machine_downloader = WaybackMachineDownloader.new base_url: 'https://en.wikipedia.org/wiki/%C3%84'
# Once for the downloading... # Once just for the downloading...
@wayback_machine_downloader.download_files
end
def test_nonascii_suburls_already_present
@wayback_machine_downloader = WaybackMachineDownloader.new base_url: 'https://en.wikipedia.org/wiki/%C3%84'
# ... twice to test the "is already present" case
@wayback_machine_downloader.download_files @wayback_machine_downloader.download_files
# ... and once for the "is already present"
@wayback_machine_downloader.download_files @wayback_machine_downloader.download_files
end end