Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't rescue from calling proc filters

- Closes #556.
  • Loading branch information...
commit fb0b136252c05bb1b3ae30c4ccfff63805c1c825 1 parent a4bff1c
@dchelimsky dchelimsky authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/core/metadata.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.