なるようになるブログ

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

rails commit log流し読み(2022/02/06)

2022/02/06分のコミットです。

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


Enable Lint/EnsureReturn cop

.rubocop.ymlの修正です。

Lint/EnsureReturn copを追加しています。


Fix RenameTableTest#test_rename_table_should_work_with_reserved_words

activerecord/test/cases/migration/rename_table_test.rbの修正です。

test_rename_table_should_work_with_reserved_wordsが正しく値のチェックが出来てなかった(ensureでexceptionを握りつぶしてしまっていた)のを修正しています。


Delete concerns_executes_block_in_context_of_current_mapper test

actionpack/test/dispatch/routing/concerns_test.rbの修正です。

test_concerns_executes_block_in_context_of_current_mapperを削除しています。正しく値のチェックが出来てなかった、かつ、他のテストでカバー出来ている内容の筈で不要だと思わる為。