Exception: Fix::Error::MissingSubjectBlock

Inherits:
ArgumentError
  • Object
show all
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

Constructor Details

#initializeMissingSubjectBlock

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