Rspec fixes

This commit is contained in:
Erwan
2012-10-23 12:19:16 +02:00
parent 38d335193f
commit fd5cf4785c
2 changed files with 12 additions and 12 deletions

View File

@@ -56,9 +56,9 @@ class WpEnumerator
request_count += 1
request.on_complete do |response|
if options[:show_progress_bar]
print "\rChecking for #{enumerate_size} total #{options[:type]}... #{(request_count * 100) / enumerate_size}% complete."
end
print "\rChecking for #{enumerate_size} total #{options[:type]}... #{(request_count * 100) / enumerate_size}% complete." if options[:show_progress_bar]
if WpTarget.valid_response_codes.include?(response.code)
if Digest::MD5.hexdigest(response.body) != options[:error_404_hash]
found << target