updated matchers

git-svn-id: file:///home/svn/framework3/trunk@11741 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Jonathan Cran 2011-02-11 00:48:34 +00:00
parent 2b0854dc1b
commit 5bb3a16e7a
1 changed files with 25 additions and 0 deletions

View File

@ -3,6 +3,31 @@ require 'regexr'
module MsfMatchers
class ContainACompleteTest
def initialize()
@r = Regexr.new(true)
end
def matches?(data)
@data = data
return @r.verify_start_and_end(@data,"meterpreter_functional_test_start", "meterpreter_functional_test_end")
end
def failure_message
"Beginning or end was incorrect."
end
def negative_failure_message
"Expected to find a no beginning or end, but it matched."
end
end
def contain_a_complete_test
ContainACompleteTest.new
end
class ContainAllSuccesses
def initialize(successes)