Class: ScraperWiki::API::Matchers::MissingKeysMatcher
Instance Method Summary
collapse
Instance Method Details
#difference ⇒ Object
292
293
294
295
296
297
298
299
|
# File 'lib/scraperwiki-api/matchers.rb', line 292
def difference
keys = if @actual['datasummary']['tables'][@table]
@actual['datasummary']['tables'][@table]['keys']
else
[]
end
@expected - keys
end
|
#failure_predicate ⇒ Object
301
302
303
|
# File 'lib/scraperwiki-api/matchers.rb', line 301
def failure_predicate
'is missing keys'
end
|
#negative_failure_predicate ⇒ Object
305
306
307
|
# File 'lib/scraperwiki-api/matchers.rb', line 305
def negative_failure_predicate
"isn't missing keys"
end
|