From 4a6fdb14624294381873a0c6a5c9c56f6392b8a7 Mon Sep 17 00:00:00 2001 From: hartator Date: Thu, 26 Oct 2017 19:34:36 -0500 Subject: [PATCH] Test `all_timestamps` option download all timestamps --- test/test_wayback_machine_downloader.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_wayback_machine_downloader.rb b/test/test_wayback_machine_downloader.rb index 0e4ceb4..8e83bfe 100644 --- a/test/test_wayback_machine_downloader.rb +++ b/test/test_wayback_machine_downloader.rb @@ -74,6 +74,11 @@ class WaybackMachineDownloaderTest < Minitest::Test assert_includes linux_page.read, "Linux Games" end + def test_all_timestamps_being_respected + @wayback_machine_downloader.all_timestamps = true + assert_equal 68, @wayback_machine_downloader.get_file_list_curated.size + end + def test_from_timestamp_being_respected @wayback_machine_downloader.from_timestamp = 20050716231334 file_url = @wayback_machine_downloader.get_file_list_curated["linux.htm"][:file_url]