test/cli/test_error_handler.rb in nanoc-4.2.4 vs test/cli/test_error_handler.rb in nanoc-4.3.0
- old
+ new
@@ -46,10 +46,10 @@
refute_match(/See full crash log for details./, stream.string)
end
def new_error(amount_factor)
backtrace_generator = lambda do |af|
- if af == 0
+ if af.zero?
raise 'finally!'
else
backtrace_generator.call(af - 1)
end
end