Test all_timestamps option download all timestamps

This commit is contained in:
hartator 2017-10-26 19:34:36 -05:00
parent 5bd9fbffdd
commit 4a6fdb1462

View File

@ -74,6 +74,11 @@ class WaybackMachineDownloaderTest < Minitest::Test
assert_includes linux_page.read, "Linux Games" assert_includes linux_page.read, "Linux Games"
end 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 def test_from_timestamp_being_respected
@wayback_machine_downloader.from_timestamp = 20050716231334 @wayback_machine_downloader.from_timestamp = 20050716231334
file_url = @wayback_machine_downloader.get_file_list_curated["linux.htm"][:file_url] file_url = @wayback_machine_downloader.get_file_list_curated["linux.htm"][:file_url]