diff options
-rw-r--r-- | lib/bacon.rb | 2 |
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 |