Exception: Scampi::Error
Overview
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.
Instance Attribute Summary collapse
-
#count_as ⇒ Object
Returns the value of attribute count_as.
Instance Method Summary collapse
- #Either `:failed` or `:missing`.=(`: failed`) ⇒ Object
-
#initialize(count_as, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(count_as, message) ⇒ Error
Returns a new instance of Error.
11 12 13 14 |
# File 'lib/scampi/error.rb', line 11 def initialize(count_as, ) @count_as = count_as super end |
Instance Attribute Details
#count_as ⇒ Object
Returns the value of attribute count_as.
7 8 9 |
# File 'lib/scampi/error.rb', line 7 def count_as @count_as end |
Instance Method Details
#Either `:failed` or `:missing`.=(`: failed`) ⇒ Object
7 |
# File 'lib/scampi/error.rb', line 7 attr_accessor :count_as |