module Webspicy::Specification::Condition
Constants
- MATCH_ALL
Attributes
matching_description[RW]
tester[R]
Public Class Methods
match(service, condition)
click to toggle source
Given a service and a condition, returns a Pre
instance of there is a match, nil otherwise.
# File lib/webspicy/specification/condition.rb, line 12 def self.match(service, condition) end
Public Instance Methods
bind(tester)
click to toggle source
Bind the condition instance to a current tester.
# File lib/webspicy/specification/condition.rb, line 16 def bind(tester) @tester = tester self end
fail!(msg)
click to toggle source
# File lib/webspicy/specification/condition.rb, line 34 def fail!(msg) raise Tester::Failure, msg end
sooner_or_later(*args, &bl)
click to toggle source
# File lib/webspicy/specification/condition.rb, line 30 def sooner_or_later(*args, &bl) Webspicy::Support.sooner_or_later(*args, &bl) end
to_s()
click to toggle source
# File lib/webspicy/specification/condition.rb, line 38 def to_s if matching_description == MATCH_ALL self.class.name else matching_description end end