Class: ScraperWiki::API::Matchers::HaveValuesWithAtMostTheKeys
Instance Method Summary
collapse
Instance Method Details
#difference(v) ⇒ Object
801
802
803
|
# File 'lib/scraperwiki-api/matchers.rb', line 801
def difference(v)
v.keys - @expected
end
|
#negative_predicate ⇒ Object
809
810
811
|
# File 'lib/scraperwiki-api/matchers.rb', line 809
def negative_predicate
'have no extra keys'
end
|
#predicate ⇒ Object
805
806
807
|
# File 'lib/scraperwiki-api/matchers.rb', line 805
def predicate
'have extra keys'
end
|