diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-01-29 08:40:34 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-01-29 08:41:06 +0900 |
commit | 17848036ad1c4960924055030f0b70c5ca45ac6c (patch) | |
tree | 6e229b013b98d2bd943da4837ea128490f5e81d1 | |
parent | 786710b0610b31234f4c44695a7689de0fb50301 (diff) | |
download | rails-17848036ad1c4960924055030f0b70c5ca45ac6c.tar.gz rails-17848036ad1c4960924055030f0b70c5ca45ac6c.tar.bz2 rails-17848036ad1c4960924055030f0b70c5ca45ac6c.zip |
Missing require 'active_support/core_ext/hash/keys'
Without this, the test causes a "method redefined" warning because
* first it loads I18n and defines Hash#deep_symbolize_keys inside I18n's lib/i18n/core_ext/hash.rb
* then it loads AS/core_ext/hash/keys.rb afterwards
-rw-r--r-- | activesupport/test/number_helper_i18n_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/number_helper_i18n_test.rb b/activesupport/test/number_helper_i18n_test.rb index 4f58e6607a..a1d1c41dc2 100644 --- a/activesupport/test/number_helper_i18n_test.rb +++ b/activesupport/test/number_helper_i18n_test.rb @@ -1,5 +1,6 @@ require "abstract_unit" require "active_support/number_helper" +require "active_support/core_ext/hash/keys" module ActiveSupport class NumberHelperI18nTest < ActiveSupport::TestCase |