Class: Opticon::Failure::ContentTestFailure

Inherits:
Base
  • Object
show all
Defined in:
lib/opticon/failure.rb

Instance Attribute Summary

Attributes inherited from Base

#condition, #exception, #response, #uri

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_s

Constructor Details

This class inherits a constructor from Opticon::Failure::Base

Instance Method Details

#failure_messageObject



31
32
33
34
35
36
37
# File 'lib/opticon/failure.rb', line 31

def failure_message
  if exception 
    return exception.message
  else
    "Page content did not include the expected #{condition.class} #{condition.inspect}"
  end
end