なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2017/05/10)

2017/05/10分のコミットです。

CHANGELOGへの追加はありませんでした。


Allow to receive arbitrary arguments in aggregated_results

railties/lib/rails/test_unit/minitest_plugin.rbの修正です。

Minitest::SuppressedSummaryReporter#aggregated_resultsメソッドに任意の引数を指定出来るよう修正しています。

-    def aggregated_results
+    def aggregated_results(*)
       super unless options[:output_inline]
     end

minitest側(SuppressedSummaryReporterの親クラスであるSummaryReporter)でaggregated_resultsに引数が追加されており、オーバーライドしているこちらのメソッドでも引数を受け取れるようにするために対応しています。

参考:- Write aggregated_results directly to the IO object to avoid mixed e…