1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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`.
This commit is contained in:
Andrew White 2016-04-28 07:59:32 +01:00 committed by Andrew White
parent b782665cbb
commit eb3d409d6d
2 changed files with 4 additions and 0 deletions

View file

@ -37,6 +37,7 @@ env:
- "GEM=ac"
- "GEM=ac FAYE=1"
- "GEM=am,amo,as,av,aj"
- "GEM=as PRESERVE_TIMEZONES=1"
- "GEM=ar:mysql2"
- "GEM=ar:sqlite3"
- "GEM=ar:postgresql"

View file

@ -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