downloads: add tests for untested sites.

This commit is contained in:
evazion
2018-02-24 13:21:08 -06:00
parent e48b75c261
commit b859a1f714
6 changed files with 142 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ module DownloadTestHelper
download = Downloads::File.new(test_source, tempfile.path)
rewritten_source, _, _ = download.before_download(test_source, {})
assert_equal(expected_source, rewritten_source, "Tested source URL: #{test_source}")
assert_match(expected_source, rewritten_source, "Tested source URL: #{test_source}")
end
def assert_not_rewritten(source)