lib/relevance/tarantula/attack_handler.rb in tarantula-0.2.0 vs lib/relevance/tarantula/attack_handler.rb in tarantula-0.3.3
- old
+ new
@@ -2,10 +2,10 @@
class Relevance::Tarantula::AttackHandler
include ERB::Util
def attacks
- Relevance::Tarantula::AttackFormSubmission.attacks.select(&:output)
+ Relevance::Tarantula::FormSubmission.attacks.select(&:output)
end
def handle(result)
return unless attacks.size > 0
regexp = '(' + attacks.map {|a| Regexp.escape a.output}.join('|') + ')'