なるようになるブログ

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

rails commit log流し読み(2023/06/04)

2023/06/04分のコミットです。

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


Switch to i18n master branch temporary to fix actionview test

Gemfileの修正です。

i18n gemを使用するのにGitHubリポジトリの最新コードを指定するよう修正しています。 i18n v1.14.0にバグがあり、最新のコードでないとAction Viewのテストが通らない為。


Fix actionview test to work regardless of capitalization of missing translation message

actionview/test/template/translation_helper_test.rbの修正です。

translationが見つからない場合のエラーメッセージの先頭が大文字になっていてもテストが通るよう修正しています。i18n v1.14.0で行われた変更による影響。


Make sure the dependencies are installed for plugins generated during tests

railties/test/plugin_helpers.rbの修正です。

plugin generatorのテストでテスト実行時にbundle installを実行するよう修正しています。必要なdependencyがインストールされるようにする為。


Avoid duplication between PluginTestHelper and PluginHelpers, use only generate_plugin to generate plugins

railtiesのテストの修正です。

テスト用のpluginを生成する際に、全てのテストで同じヘルパーメソッドを使用するよう修正しています。