Class: ScraperWiki::API::Matchers::ExceptionMessageMatcher
Instance Method Summary
collapse
Instance Method Details
#exception_message ⇒ Object
379
380
381
|
# File 'lib/scraperwiki-api/matchers.rb', line 379
def exception_message
last_run['exception_message']
end
|
#failure_message ⇒ Object
383
384
385
|
# File 'lib/scraperwiki-api/matchers.rb', line 383
def failure_message
"#{@actual['short_name']} is broken: #{exception_message}"
end
|
#matches?(actual) ⇒ Boolean
374
375
376
377
|
# File 'lib/scraperwiki-api/matchers.rb', line 374
def matches?(actual)
super
exception_message
end
|
#negative_failure_message ⇒ Object
387
388
389
|
# File 'lib/scraperwiki-api/matchers.rb', line 387
def negative_failure_message
"#{@actual['short_name']} isn't broken: #{exception_message}"
end
|