Fix Travis

This commit is contained in:
Christian Mehlmauer
2014-08-07 22:18:22 +02:00
parent ef7ac1d77b
commit 391fd6c960

View File

@@ -23,7 +23,7 @@ class WpTarget < WebSite
# @return [ Boolean ]
def default_wp_content_dir_exists?
response = Browser.get(@uri.merge('wp-content').to_s)
hash = WebSite.page_hash(response.body)
hash = Digest::MD5.hexdigest(response.body)
if WpTarget.valid_response_codes.include?(response.code)
return true if hash != error_404_hash and hash != homepage_hash