Permalink
Browse files

don't rescue from calling proc filters

- Closes #556.
  • Loading branch information...
1 parent a4bff1c commit fb0b136252c05bb1b3ae30c4ccfff63805c1c825 @dchelimsky dchelimsky committed Feb 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/core/metadata.rb
@@ -185,9 +185,9 @@ def filter_applies?(key, value, metadata=self)
# { :if => nil } # => exclude the example
# The value of metadata[:if] is the same in these two cases but
# they need to be treated differently.
- value.call(metadata[key], metadata) rescue false
+ value.call(metadata[key], metadata)
else
- value.call(metadata[key]) rescue false
+ value.call(metadata[key])
end
else
metadata[key].to_s == value.to_s

0 comments on commit fb0b136

Please sign in to comment.