Skip to content

Commit 5d1fefe

Browse files
committed
Update tests to reflect new API selectors
1 parent fe96570 commit 5d1fefe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test_wayback_machine_downloader.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ def test_backup_name_being_set_when_base_url_is_domain
2626
end
2727

2828
def test_file_list_curated
29-
assert_equal 20081120203712, @wayback_machine_downloader.get_file_list_curated["linux.htm"][:timestamp]
29+
assert_equal 20060711191226, @wayback_machine_downloader.get_file_list_curated["linux.htm"][:timestamp]
3030
end
3131

3232
def test_file_list_by_timestamp
3333
file_expected = {
34-
file_id: "page.html",
35-
file_url: "http://www.onlyfreegames.net:80/page.html",
36-
timestamp: 20060713153753
34+
file_id: "Fs-06.jpg",
35+
file_url: "http://www.onlyfreegames.net:80/Fs-06.jpg",
36+
timestamp: 20060716125343
3737
}
3838
assert_equal file_expected, @wayback_machine_downloader.get_file_list_by_timestamp[-1]
3939
end
@@ -77,7 +77,7 @@ def test_file_download
7777
def test_from_timestamp_being_respected
7878
@wayback_machine_downloader.from_timestamp = 20050716231334
7979
file_url = @wayback_machine_downloader.get_file_list_curated["linux.htm"][:file_url]
80-
assert_equal "http://www.onlyfreegames.net/linux.htm", file_url
80+
assert_equal "http://www.onlyfreegames.net:80/linux.htm", file_url
8181
end
8282

8383
def test_to_timestamp_being_respected

0 commit comments

Comments
 (0)