Class: ScraperWiki::API::Matchers::HaveValuesWithAtMostTheKeys
- Inherits:
-
FieldKeyMatcher
- Object
- CustomMatcher
- DatastoreMatcher
- FieldMatcher
- FieldKeyMatcher
- ScraperWiki::API::Matchers::HaveValuesWithAtMostTheKeys
- Defined in:
- lib/scraperwiki-api/matchers.rb
Instance Method Summary collapse
Methods inherited from FieldKeyMatcher
#failure_predicate, #match?, #negative_failure_predicate
Methods inherited from FieldMatcher
#at, #blank?, #failure_description, #failure_predicate, #in, #matcher, #matches, #mismatches, #negative_failure_description, #negative_failure_predicate
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
#difference(v) ⇒ Object
758 759 760 |
# File 'lib/scraperwiki-api/matchers.rb', line 758 def difference(v) v.keys - @expected end |
#negative_predicate ⇒ Object
766 767 768 |
# File 'lib/scraperwiki-api/matchers.rb', line 766 def negative_predicate 'have no extra keys' end |
#predicate ⇒ Object
762 763 764 |
# File 'lib/scraperwiki-api/matchers.rb', line 762 def predicate 'have extra keys' end |