2016/03/07分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Silence deprecation message for dynamic controller and actions on action_view test cases
actionview/test/abstract_unit.rb
の修正です。
Deprecate :controller and :action path parametersで、routes.rbのpath parametersに:controller
、:action
を使用するのがdeprecateになたのですが、Action Viewのテストで使用している箇所があり、不要なwarningが出ないようActiveSupport::Deprecation.silence
で処理を囲むよう修正しています。
clarify that helper_method makes both methods available in the view
actionpack/lib/abstract_controller/helpers.rb
のdocの修正です。
helper_method
メソッドのdocに記載されているexampleコードが2つのメソッド(#current_user
と#logged_in?
)がviewで出来るようになるコードになっていたのですが、説明は#current_user
メソッドについてのみ記載していたので、#logged_in
メソッドについても記載するよう修正しています。
Prevent not-intended loading of ActionDispatch::IntegrationTest
actionpack/lib/action_dispatch/testing/integration.rb
、
actionmailer/lib/action_mailer/railtie.rb
の修正です。
ActionDispatch::IntegrationTest
load時に実行される処理を定義する為のaction_dispatch_integration_test
hookを追加しています。
reset ActionMailer::Base.deliveries
in `ActionDispatch::Integration… · rails/rails@9d37874の対応により、全てのenvironmentsで`ActionDispatch::IntegrationTest
classがloadされるようになってしまいました。
が、ActionDispatch::IntegrationTest
クラスは基本的にはtest envでだけloadされていれば良いclassなので、test envでだけ読み込まれるようにする為に、Action MailerのinitializerでActionDispatch::IntegrationTest
にActionMailer::TestCase::ClearTestDeliveries
をincludeしていたのを、ActionDispatch::IntegrationTest
load時にActionMailer::TestCase::ClearTestDeliveries
をincludeするよう修正しています。