From 0a324016b85755ce27a054074ea656eef8730d60 Mon Sep 17 00:00:00 2001 From: Ian Kirker Date: Wed, 15 Feb 2017 10:58:40 +0000 Subject: [PATCH] Split encoding test into two tests (One for downloading, one for when files are already present) --- test/test_wayback_machine_downloader.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/test_wayback_machine_downloader.rb b/test/test_wayback_machine_downloader.rb index 6125042..cd5b822 100644 --- a/test/test_wayback_machine_downloader.rb +++ b/test/test_wayback_machine_downloader.rb @@ -93,9 +93,14 @@ class WaybackMachineDownloaderTest < Minitest::Test # 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... + # 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 - # ... and once for the "is already present" @wayback_machine_downloader.download_files end