summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lib/bacon.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb
index f034fc7..3b71fd1 100644
--- a/lib/bacon.rb
+++ b/lib/bacon.rb
@@ -329,8 +329,10 @@ class Should
     if Bacon::Counter[:depth] > 0
       Bacon::Counter[:requirements] += 1
       raise Bacon::Error.new(:failed, description)  unless @negated ^ r
+      r
+    else
+      @negated ? !r : !!r
     end
-    @negated ^ r ? r : false
   end
 
   def method_missing(name, *args, &block)