Exception: Smartest::Skipped

Inherits:
Error
  • Object
show all
Defined in:
lib/smartest/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason = nil) ⇒ Skipped

Returns a new instance of Skipped.



81
82
83
84
# File 'lib/smartest/errors.rb', line 81

def initialize(reason = nil)
  @reason = StatusReason.normalize(reason)
  super(@reason)
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



79
80
81
# File 'lib/smartest/errors.rb', line 79

def reason
  @reason
end