Class: ScraperWiki::API::Matchers::HaveValuesMatching
- Inherits:
-
FieldMatcher
- Object
- CustomMatcher
- DatastoreMatcher
- FieldMatcher
- ScraperWiki::API::Matchers::HaveValuesMatching
- Defined in:
- lib/scraperwiki-api/matchers.rb
Instance Method Summary collapse
Methods inherited from FieldMatcher
#at, #blank?, #failure_description, #in, #matcher, #matches, #mismatches, #negative_failure_description
Methods inherited from DatastoreMatcher
#does_not_match?, #failure_description, #failure_message, #failure_size, #failures, #items, #matches, #matches?, #mismatches, #negative_failure_description, #negative_failure_message
Methods inherited from CustomMatcher
#does_not_match?, #failure_message, #initialize, #matches?, #negative_failure_message
Constructor Details
This class inherits a constructor from ScraperWiki::API::Matchers::CustomMatcher
Instance Method Details
#failure_predicate ⇒ Object
586 587 588 |
# File 'lib/scraperwiki-api/matchers.rb', line 586 def failure_predicate "don't match #{@expected.inspect}" end |
#match?(v) ⇒ Boolean
582 583 584 |
# File 'lib/scraperwiki-api/matchers.rb', line 582 def match?(v) v[@expected] end |
#negative_failure_predicate ⇒ Object
590 591 592 |
# File 'lib/scraperwiki-api/matchers.rb', line 590 def negative_failure_predicate "match #{@expected.inspect}" end |