Class: ScraperWiki::API::Matchers::HaveValuesMatching
Instance Method Summary
collapse
Instance Method Details
#failure_predicate ⇒ Object
629
630
631
|
# File 'lib/scraperwiki-api/matchers.rb', line 629
def failure_predicate
"don't match #{@expected.inspect}"
end
|
#match?(v) ⇒ Boolean
625
626
627
|
# File 'lib/scraperwiki-api/matchers.rb', line 625
def match?(v)
v[@expected]
end
|
#negative_failure_predicate ⇒ Object
633
634
635
|
# File 'lib/scraperwiki-api/matchers.rb', line 633
def negative_failure_predicate
"match #{@expected.inspect}"
end
|