lib/prop_check/generator.rb in prop_check-0.10.1 vs lib/prop_check/generator.rb in prop_check-0.10.2
- old
+ new
@@ -93,10 +93,10 @@
end
##
# Creates a new Generator that only produces a value when the block `condition` returns a truthy value.
def where(&condition)
- self.map do |result|
+ self.map do |*result|
if condition.call(*result)
result
else
:"_PropCheck.filter_me"
end