Class: ScraperWiki::API::Matchers::HaveValuesWithAtMostTheKeys

Inherits:
FieldKeyMatcher show all
Defined in:
lib/scraperwiki-api/matchers.rb

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from ScraperWiki::API::Matchers::CustomMatcher

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_predicateObject



809
810
811
# File 'lib/scraperwiki-api/matchers.rb', line 809

def negative_predicate
  'have no extra keys'
end

#predicateObject



805
806
807
# File 'lib/scraperwiki-api/matchers.rb', line 805

def predicate
  'have extra keys'
end