diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2008-03-02 11:52:09 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2008-03-02 11:52:09 +0100 |
commit | eae20f9918990779d47720b464ba14042e1bfc86 (patch) | |
tree | acf671983eb4227e2bedea37fc1ecc0a438dd17b /lib | |
parent | d9f431c62b681ec5a3641142b83c2cbb6ba2daed (diff) | |
download | bacon-eae20f9918990779d47720b464ba14042e1bfc86.tar.gz bacon-eae20f9918990779d47720b464ba14042e1bfc86.tar.xz bacon-eae20f9918990779d47720b464ba14042e1bfc86.zip |
Count failed requirements too
darcs-hash:20080302105209-4fc50-e6cfe0927a54a1f170038c0d4555baf1b81054bf.gz
Diffstat (limited to 'lib')
-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 |