Class: ScraperWiki::API::Matchers::HaveValuesWithAtLeastTheKeys
- Inherits:
-
FieldKeyMatcher
- Object
- CustomMatcher
- DatastoreMatcher
- FieldMatcher
- FieldKeyMatcher
- ScraperWiki::API::Matchers::HaveValuesWithAtLeastTheKeys
- 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
739 740 741 |
# File 'lib/scraperwiki-api/matchers.rb', line 739 def difference(v) @expected - v.keys end |
#negative_predicate ⇒ Object
747 748 749 |
# File 'lib/scraperwiki-api/matchers.rb', line 747 def negative_predicate "aren't missing keys" end |
#predicate ⇒ Object
743 744 745 |
# File 'lib/scraperwiki-api/matchers.rb', line 743 def predicate 'are missing keys' end |