From a3a82fd0d37b49c087c117ecc68649243f45012c Mon Sep 17 00:00:00 2001 From: Matt Green Date: Sun, 23 Jun 2013 22:52:26 -0500 Subject: [PATCH] Run after filters before verifying there are expectations --- lib/motion/spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/motion/spec.rb b/lib/motion/spec.rb index 03a6539e..852ff621 100644 --- a/lib/motion/spec.rb +++ b/lib/motion/spec.rb @@ -414,11 +414,11 @@ def run_postponed_block(block) end def finish_spec + run_after_filters 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