mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 09:46:05 +00:00
Test all_timestamps option download all timestamps
This commit is contained in:
parent
5bd9fbffdd
commit
4a6fdb1462
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user