lib/prop_check/helper.rb in prop_check-0.14.1 vs lib/prop_check/helper.rb in prop_check-0.15.0

- old
+ new

@@ -31,15 +31,12 @@ def lazy_append(this_enumerator, other_enumerator) [this_enumerator, other_enumerator].lazy.flat_map(&:lazy) end def call_splatted(val, &block) - case val - when Hash - block.call(**val) - else - block.call(val) - end + return block.call(**val) if val.is_a?(Hash) && val.keys.all? { |k| k.is_a?(Symbol) } + + block.call(val) # if kwval != {} # block.call(**kwval) # else # block.call(*val) # end