Class: ScraperWiki::API::Matchers::TableMatcher
Instance Method Summary
collapse
Instance Method Details
#failure_message ⇒ Object
243
244
245
|
# File 'lib/scraperwiki-api/matchers.rb', line 243
def failure_message
"expected #{@actual['short_name']} to have a #{@expected} table"
end
|
#matches?(actual) ⇒ Boolean
238
239
240
241
|
# File 'lib/scraperwiki-api/matchers.rb', line 238
def matches?(actual)
super
actual['datasummary']['tables'].key?(@expected)
end
|
#negative_failure_message ⇒ Object
247
248
249
|
# File 'lib/scraperwiki-api/matchers.rb', line 247
def negative_failure_message
"expected #{@actual['short_name']} to not have a #{@expected} table"
end
|