Avoid making 2 times the request to get raw file list

This commit is contained in:
hartator
2015-11-05 16:19:03 -06:00
parent 355f4c1be7
commit 5d17e3e631
2 changed files with 6 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ class WaybackMachineDownloaderTest < Minitest::Test
file_url: "http://www.onlyfreegames.net:80/Fs-06.jpg",
timestamp: 20060716125343
}
assert_equal file_expected, @wayback_machine_downloader.file_list_by_timestamp[-1]
assert_equal file_expected, @wayback_machine_downloader.get_file_list_by_timestamp[-1]
end
def test_file_download