Class: ScraperWiki::API::Matchers::HaveValuesEndingWith
Instance Method Summary
collapse
Instance Method Details
#failure_predicate ⇒ Object
717
718
719
|
# File 'lib/scraperwiki-api/matchers.rb', line 717
def failure_predicate
"don't end with #{@expected}"
end
|
#match?(v) ⇒ Boolean
713
714
715
|
# File 'lib/scraperwiki-api/matchers.rb', line 713
def match?(v)
v.end_with? @expected
end
|
#negative_failure_predicate ⇒ Object
721
722
723
|
# File 'lib/scraperwiki-api/matchers.rb', line 721
def negative_failure_predicate
"end with #{@expected}"
end
|