examples/relevance/tarantula/attack_handler_example.rb in relevance-tarantula-0.2.1 vs examples/relevance/tarantula/attack_handler_example.rb in relevance-tarantula-0.3.2
- old
+ new
@@ -20,10 +20,10 @@
describe "Attacks without an output specified" do
it "never matches anything" do
handler = Relevance::Tarantula::AttackHandler.new
attack = Relevance::Tarantula::Attack.new({:name => 'foo_name', :input => 'foo_code'})
- Relevance::Tarantula::AttackFormSubmission.stubs(:attacks).returns([attack])
+ Relevance::Tarantula::FormSubmission.stubs(:attacks).returns([attack])
result = handler.handle(Relevance::Tarantula::Result.new(:response => stub(:html? => true, :body => '<a href="/foo">good</a>')))
result.should == nil
end
end