Exception: Fix::Error::MissingSubjectBlock
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Fix::Error::MissingSubjectBlock
- Defined in:
- lib/fix/error/missing_subject_block.rb
Overview
Error raised when attempting to test a specification without providing a subject block
Constant Summary collapse
- MISSING_BLOCK_ERROR =
"Subject block is required for testing a specification. " \ "Use: test { subject } or match? { subject }"
Instance Method Summary collapse
-
#initialize ⇒ MissingSubjectBlock
constructor
A new instance of MissingSubjectBlock.
Constructor Details
#initialize ⇒ MissingSubjectBlock
Returns a new instance of MissingSubjectBlock.
10 11 12 |
# File 'lib/fix/error/missing_subject_block.rb', line 10 def initialize super(MISSING_BLOCK_ERROR) end |