Class: Contr::Matcher::Sync
Instance Method Summary collapse
-
#initialize ⇒ Sync
constructor
A new instance of Sync.
- #match ⇒ Object
Constructor Details
#initialize ⇒ Sync
Returns a new instance of Sync.
6 7 8 9 10 11 12 |
# File 'lib/contr/matcher/sync.rb', line 6 def initialize(*) super @async = false @ok_rules = [] @failed_rules = [] end |
Instance Method Details
#match ⇒ Object
14 15 16 17 |
# File 'lib/contr/matcher/sync.rb', line 14 def match any_failed?(guarantees) && dump_state_and_raise(GuaranteesNotMatched) all_failed?(expectations) && dump_state_and_raise(ExpectationsNotMatched) end |