summary refs log tree commit diff
path: root/lib/bacon.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bacon.rb')
-rw-r--r--lib/bacon.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb
index af754d4..0547249 100644
--- a/lib/bacon.rb
+++ b/lib/bacon.rb
@@ -285,8 +285,8 @@ class Should
 
     r = yield(@object, *args)
     if Bacon::Counter[:depth] > 0
-      raise Bacon::Error.new(:failed, description)  unless @negated ^ r
       Bacon::Counter[:requirements] += 1
+      raise Bacon::Error.new(:failed, description)  unless @negated ^ r
     end
     @negated ^ r ? r : false
   end