fix source tests

This commit is contained in:
r888888888
2017-11-20 12:29:35 -08:00
parent e21f7c14db
commit 9d5e4f969f
6 changed files with 25 additions and 23 deletions

View File

@@ -17,6 +17,8 @@ module Sources
end
def initialize(url, referer_url: nil)
@url = url
Site.strategies.each do |strategy|
if strategy.url_match?(url) || strategy.url_match?(referer_url)
@strategy = strategy.new(url, referer_url)