From c77fddadd42097228e16574db3ccb8bb0f79f678 Mon Sep 17 00:00:00 2001 From: Wasif Hossain Date: Tue, 23 Apr 2019 15:18:18 +0600 Subject: [PATCH] Mention current rails version for #2327 ruby2.6/rails4.2 monkeypatch --- test/support/ruby_2_6_rails_4_2_patch.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/support/ruby_2_6_rails_4_2_patch.rb b/test/support/ruby_2_6_rails_4_2_patch.rb index 9e250339..768e9430 100644 --- a/test/support/ruby_2_6_rails_4_2_patch.rb +++ b/test/support/ruby_2_6_rails_4_2_patch.rb @@ -13,6 +13,12 @@ if RUBY_VERSION >= '2.6.0' end end else - puts 'Monkeypatch for ActionController::TestResponse no longer needed' + msg = 'Monkeypatch for ActionController::TestResponse not needed for '\ + 'Rails 5+. We can drop this patch once we drop support for Rails < 5. '\ + "Current Rails version: #{ENV['RAILS_VERSION']}" + + puts + puts "\033[33m **** #{msg} **** \033[0m" + puts end end