提交 eb3d409d 编写于 作者: A Andrew White 提交者: Andrew White

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`.
上级 b782665c
......@@ -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"
......
......@@ -18,6 +18,9 @@
# 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册