support/doctest_helper.rb in watir-6.5.0 vs support/doctest_helper.rb in watir-6.6.0
- old
+ new
@@ -71,9 +71,13 @@
browser.goto WatirSpec.url_for('window_switching.html')
browser.a(id: 'open').click
end
end
+ doctest.after('Watir::Logger') do
+ Watir.logger.level = :warn
+ end
+
doctest.after('Watir::AfterHooks') do
browser.after_hooks.each do |hook|
browser.after_hooks.delete(hook)
end
end