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
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
..
autoloading_fixtures fixes circularity check in dependencies 2014-10-25 14:06:33 +02:00
core_ext Removing :en in favor of I18n.default_locale in duration#inspect 2015-01-12 19:34:32 +01:00
dependencies
deprecation
fixtures
json Remove deprecated ActiveSupport::JSON::Encoding::CircularReferenceError. 2015-01-04 11:58:41 -03:00
notifications
testing Use safe_constantize. 2014-09-02 00:41:00 +08:00
xml_mini Do not include Active Support on tests 2015-01-04 18:59:42 -03:00
abstract_unit.rb Default to sorting user's test cases for now 2014-09-08 05:32:16 -07:00
autoload_test.rb fix autoload tests 2014-10-05 20:28:36 +03:00
benchmarkable_test.rb
broadcast_logger_test.rb
caching_test.rb Remove conversion code for old Rails cache entry 2015-01-01 22:31:27 -03:00
callback_inheritance_test.rb
callbacks_test.rb Add config to halt callback chain on return false 2015-01-02 15:31:56 -08:00
class_cache_test.rb
clean_backtrace_test.rb
clean_logger_test.rb
concern_test.rb
configurable_test.rb
constantize_test_cases.rb Use safe_constantize. 2014-09-02 00:41:00 +08:00
dependencies_test.rb Remove LoadError#path hack for Ruby 1.9 2015-01-04 15:54:21 -03:00
dependencies_test_helpers.rb fixes circularity check in dependencies 2014-10-25 14:06:33 +02:00
deprecation_test.rb
descendants_tracker_test_cases.rb
descendants_tracker_with_autoloading_test.rb
descendants_tracker_without_autoloading_test.rb
file_update_checker_test.rb
gzip_test.rb
hash_with_indifferent_access_test.rb Add necessary 'require reverse_merge' to HAWI.rb 2014-10-17 09:11:04 -07:00
i18n_test.rb
inflector_test.rb Replace Enumerable#reverse.each with Enumerable#reverse_each 2014-10-13 11:47:16 +01:00
inflector_test_cases.rb Fix for inflector's incorrect camelCase replacement for acronyms 2014-09-06 04:56:25 +09:30
key_generator_test.rb
lazy_load_hooks_test.rb
load_paths_test.rb
log_subscriber_test.rb
logger_test.rb
message_encryptor_test.rb Remove "rescue" clause around "require 'openssl'" 2014-12-03 21:58:02 -08:00
message_verifier_test.rb Remove "rescue" clause around "require 'openssl'" 2014-12-03 21:58:02 -08:00
multibyte_chars_test.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
multibyte_conformance_test.rb Pass symbol as an argument instead of a block 2014-11-29 11:53:24 +01:00
multibyte_proxy_test.rb
multibyte_test_helpers.rb Avoid mutating the constants in a test case 2014-08-16 10:23:50 +09:00
multibyte_unicode_database_test.rb
notifications_test.rb
number_helper_i18n_test.rb
number_helper_test.rb Fixes the digits counter of AS's NumberToRoundedConverter 2014-08-20 16:25:35 +02:00
option_merger_test.rb
ordered_hash_test.rb
ordered_options_test.rb
rescuable_test.rb Add class level case operator support for error dispatching in Rescuable 2014-12-10 02:34:59 +02:00
safe_buffer_test.rb Just check if the buffer exists before changing it 2014-12-29 12:56:01 -03:00
security_utils_test.rb Add AS::SecurityUtils.secure_compare for constant time string comparison 2014-10-23 14:54:06 -03:00
string_inquirer_test.rb
subscriber_test.rb Fix assertion arguments order 2014-07-31 08:56:22 -03:00
tagged_logging_test.rb
test_case_test.rb Change the default test order from :sorted to :random 2015-01-04 11:58:41 -03:00
time_travel_test.rb Move date and time requires to time_travel_test, also include 2014-08-19 13:17:23 -07:00
time_zone_test.rb Use directly TZInfo::Timezone without proxy 2015-01-04 20:08:18 +03:00
time_zone_test_helpers.rb
transliterate_test.rb [ci skip] use proper apostrophe 2014-08-25 22:03:31 +05:30
xml_mini_test.rb