Skip to content

Commit 0a32401

Browse files
committed
Split encoding test into two tests
(One for downloading, one for when files are already present)
1 parent 2fd5048 commit 0a32401

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/test_wayback_machine_downloader.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,14 @@ def test_file_list_exclude_filter_with_a_regex
9393
# Testing encoding conflicts needs a different base_url
9494
def test_nonascii_suburls_download
9595
@wayback_machine_downloader = WaybackMachineDownloader.new base_url: 'https://en.wikipedia.org/wiki/%C3%84'
96-
# Once for the downloading...
96+
# Once just for the downloading...
97+
@wayback_machine_downloader.download_files
98+
end
99+
100+
def test_nonascii_suburls_already_present
101+
@wayback_machine_downloader = WaybackMachineDownloader.new base_url: 'https://en.wikipedia.org/wiki/%C3%84'
102+
# ... twice to test the "is already present" case
97103
@wayback_machine_downloader.download_files
98-
# ... and once for the "is already present"
99104
@wayback_machine_downloader.download_files
100105
end
101106

0 commit comments

Comments
 (0)