1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/core_ext
Dominik Masur f76d1aa54d Removing :en in favor of I18n.default_locale in duration#inspect
Hi there,

i have an app without english as available locale. So i got an error when we try to inspect something like 1.day. This is done automatically when we use the dalli cache.

I would like to change the :en to ::I18n.default_locale to be sure that this is always constant and is an available locale.

Tests are all green with this change.

Calculating -------------------------------------
:locale => :en                              2.024k i/100ms
:locale => ::I18n.default_locale   2.236k i/100ms
-------------------------------------------------
:locale => :en                                  25.758k (±26.3%) i/s -    117.392k
:locale => ::I18n.default_locale       26.311k (±18.1%) i/s -    127.452k
2015-01-12 19:34:32 +01:00
..
array Raise a descriptive error if non-positive integer passed to in_groups_of. 2014-07-30 20:39:53 -07:00
class
digest Move uuid_v5 and uuid_v3 to Digest::UUID 2014-07-15 19:51:33 -03:00
hash Fix tests broken in https://github.com/rails/rails/pull/16149 2014-07-12 19:05:39 +02:00
kernel Move test teardown into ensure block. 2014-06-17 20:57:02 +08:00
module
object Remove hack to support BigDecimal in Ruby 1.9 2015-01-04 15:54:20 -03:00
bigdecimal_test.rb
class_test.rb
date_and_time_behavior.rb Add #prev_day and #next_day as counterparts to #yesterday and #tomorrow for Date, Time, and DateTime 2015-01-06 05:43:41 -05:00
date_ext_test.rb Extract out with_env_tz helper method. 2014-06-18 19:46:04 +08:00
date_time_ext_test.rb DateTime#to_f now preserves fractional seconds. 2014-07-02 15:01:35 -07:00
duration_test.rb Removing :en in favor of I18n.default_locale in duration#inspect 2015-01-12 19:34:32 +01:00
enumerable_test.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
file_test.rb
hash_ext_test.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
integer_ext_test.rb
kernel_test.rb Remove debugger support 2015-01-04 15:54:22 -03:00
load_error_test.rb Deprecate MissingSourceFile in favor of LoadError. 2015-01-02 19:44:39 -03:00
marshal_test.rb
module_test.rb Delegation works with reserved words passed to :to 2014-09-19 11:41:41 +03:00
name_error_test.rb
numeric_ext_test.rb Extract out with_env_tz helper method. 2014-06-18 19:46:04 +08:00
range_ext_test.rb Fix grouped expression warning - warning: (...) interpreted as grouped expression 2014-11-06 19:19:21 +05:30
regexp_ext_test.rb
securerandom.rb Add SecureRandom.base58 2015-01-09 17:51:46 -05:00
string_ext_test.rb Remove deprecated ActiveSupport::SafeBuffer#prepend 2015-01-04 11:58:40 -03:00
time_ext_test.rb Time#change can now change nanoseconds (:nsec) 2014-09-14 02:24:12 +03:00
time_with_zone_test.rb Merge pull request #16749 from robin850/rbx-name-error 2015-01-02 11:22:03 -03:00
uri_ext_test.rb missing activesupport test coverage 2014-07-19 17:15:40 -07:00