lib/prop_check/property/shrinker.rb in prop_check-0.11.0 vs lib/prop_check/property/shrinker.rb in prop_check-0.11.1
- old
+ new
@@ -1,5 +1,6 @@
+require 'prop_check/helper'
class PropCheck::Property::Shrinker
def initialize(bindings_tree, io, hooks, config)
@problem_child = bindings_tree
@io = io
@siblings = @problem_child.children.lazy
@@ -60,10 +61,10 @@
end
end
private def safe_call_block(sibling, &block)
begin
- block.call(*sibling.root)
+ PropCheck::Helper.call_splatted(sibling.root, &block)
# It is correct that we want to rescue _all_ Exceptions
# not only 'StandardError's
rescue Exception => e
@problem_child = sibling
@parent_siblings = @siblings