なるようになるブログ

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

rails commit log流し読み(2018/11/26)

2018/11/26分のコミットです。

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


Updating the Testing Guide to Reflect Emails Enqueued With ActiveJob [ci skip]

rails guideのTesting Rails Applicationsの修正です。

Functional and System Testingの項にあるIntegration Testのexampleでメールのチェックにassert_emailsメソッドを使用するよう修正、及び、System Testでmailのテストを行う場合のexampleを追加しています


SQLite 3.7.16+ returns the order of the primary key columns

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

primary key columnのorderに関するテストがSQLite3でスキップされていたのを、実行するよう修正しています。

SQLite 3.7.16からprimary key columnの順序が一意になるようになった、かつ、Rails 6ではSQLite 3.8以上をサポートする為。


Fix random CI failure due to non-deterministic sorting order

activerecord/test/cases/associations/has_many_associations_test.rbの修正です。

test_has_many_through_respects_hash_conditionsで、assertionで値を比較する際に、値をidでsortするよう修正しています。 sortを指定していと結果が不定になる為。


Use cache_key_with_version instead of cache_key for the example in Low-Level Caching [ci skip]

rails guideのCaching with Rails: An Overviewの修正です。

cache keyの生成にcache_keyを使っていた箇所をcache_key_with_versionを使用するよう修正しています。

Replace cache_key with cache_key_with_version on caching_with_rails guides [ci skip]の修正漏れ対応。