Method: Bacon::Specification#finish_spec
- Defined in:
- lib/mac_bacon.rb
#finish_spec ⇒ Object
259 260 261 262 263 264 265 266 |
# File 'lib/mac_bacon.rb', line 259 def finish_spec if !@exception_occurred && Counter[:requirements] == @number_of_requirements_before # the specification did not contain any requirements, so it flunked execute_block { raise Error.new(:missing, "empty specification: #{@context.name} #{@description}") } end run_after_filters exit_spec unless postponed? end |