mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 17:56:44 +00:00
Split encoding test into two tests
(One for downloading, one for when files are already present)
This commit is contained in:
parent
2fd50480ea
commit
0a324016b8
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user