lib/autotest/cucumber_mixin.rb in cucumber-4.1.0 vs lib/autotest/cucumber_mixin.rb in cucumber-5.0.0
- old
+ new
@@ -22,26 +22,24 @@
reset
reset_features
add_sigint_handler
loop do # ^c handler
- begin
- get_to_green
- if tainted
- rerun_all_tests
- rerun_all_features if all_good
- else
- hook :all_good
- end
- wait_for_changes
- # Once tests and features are green, reset features every
- # time a file is changed to see if anything breaks.
- reset_features
- rescue Interrupt
- break if wants_to_quit
- reset
- reset_features
+ get_to_green
+ if tainted
+ rerun_all_tests
+ rerun_all_features if all_good
+ else
+ hook :all_good
end
+ wait_for_changes
+ # Once tests and features are green, reset features every
+ # time a file is changed to see if anything breaks.
+ reset_features
+ rescue Interrupt
+ break if wants_to_quit
+ reset
+ reset_features
end
hook :quit
end
def all_features_good