lib/rantly/property.rb in rantly-1.0.0 vs lib/rantly/property.rb in rantly-1.1.0
- old
+ new
@@ -49,10 +49,10 @@
if @failed_data.respond_to?(:shrink)
@shrunk_failed_data, @depth = shrinkify(assertion, @failed_data)
io.puts "minimal failed data (depth #{@depth}) is:"
pretty_print @shrunk_failed_data
end
- raise boom
+ raise $!, "failure: #{i} tests, on:\n#{test_data}\n\n#{boom}\n", $@
end
end
# Explore the failures tree
def shrinkify(assertion, data, depth=0, iteration=0)