From eb3d409d6d8d1d8f9b9a5f2d8f856afe3dbfe068 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Thu, 28 Apr 2016 07:59:32 +0100 Subject: Run Active Support tests when preserving timezones Add to the matrix of Travis tests an entry that runs the Active Support tests when `ActiveSupport.to_time_preserves_timezone = true`. --- activesupport/test/abstract_unit.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activesupport/test/abstract_unit.rb') diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb index 7f0fcd6996..bab7440397 100644 --- a/activesupport/test/abstract_unit.rb +++ b/activesupport/test/abstract_unit.rb @@ -18,6 +18,9 @@ Thread.abort_on_exception = true # Show backtraces for deprecated behavior for quicker cleanup. ActiveSupport::Deprecation.debug = true +# Default to old to_time behavior but allow running tests with new behavior +ActiveSupport.to_time_preserves_timezone = ENV['PRESERVE_TIMEZONES'] == '1' + # Disable available locale checks to avoid warnings running the test suite. I18n.enforce_available_locales = false -- cgit v1.2.3