class Error
Custom exception used internally to signal spec failures and missing
assertions. The count_as attribute determines whether the error
increments the :failed or :missing counter.
Definitions
attr_accessor :count_as
Signature
-
attribute
Symbol Either
:failedor:missing.
def initialize(count_as, message)
Signature
-
parameter
count_asSymbol What counter to increment (
:failedor:missing).-
parameter
messageString The error message.
Implementation
def initialize(count_as, message)
@count_as = count_as
super message
end