Class: ScraperWiki::API::Matchers::MissingKeysMatcher
- Inherits:
-
KeysMatcher
- Object
- CustomMatcher
- ScraperInfoMatcher
- TablesMatcher
- KeysMatcher
- ScraperWiki::API::Matchers::MissingKeysMatcher
- Defined in:
- lib/scraperwiki-api/matchers.rb
Instance Method Summary collapse
Methods inherited from KeysMatcher
#failure_message, #matches?, #negative_failure_message
Methods inherited from TablesMatcher
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 ⇒ Object
271 272 273 |
# File 'lib/scraperwiki-api/matchers.rb', line 271 def difference @expected - @actual['datasummary']['tables'][@table]['keys'] end |
#failure_predicate ⇒ Object
275 276 277 |
# File 'lib/scraperwiki-api/matchers.rb', line 275 def failure_predicate 'is missing keys' end |
#negative_failure_predicate ⇒ Object
279 280 281 |
# File 'lib/scraperwiki-api/matchers.rb', line 279 def negative_failure_predicate "isn't missing keys" end |