Class: ScraperWiki::API::Matchers::ExceptionMessageMatcher
Instance Method Summary
collapse
#last_run
#does_not_match?, #initialize
Instance Method Details
#exception_message ⇒ Object
340
341
342
|
# File 'lib/scraperwiki-api/matchers.rb', line 340
def exception_message
last_run['exception_message']
end
|
#failure_message ⇒ Object
344
345
346
|
# File 'lib/scraperwiki-api/matchers.rb', line 344
def failure_message
"#{@actual['short_name']} is broken: #{exception_message}"
end
|
#matches?(actual) ⇒ Boolean
335
336
337
338
|
# File 'lib/scraperwiki-api/matchers.rb', line 335
def matches?(actual)
super
exception_message
end
|
#negative_failure_message ⇒ Object
348
349
350
|
# File 'lib/scraperwiki-api/matchers.rb', line 348
def negative_failure_message
"#{@actual['short_name']} isn't broken: #{exception_message}"
end
|