diff options
author | Andrew White <andrew.white@unboxed.co> | 2016-11-13 23:08:13 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2016-11-13 23:09:03 +0000 |
commit | dadba9ae5711c36e0491dffbd8fd03b96db45c19 (patch) | |
tree | 824395311681c243fd48ecf9b5c93aa21fb7ddc3 /activesupport/test/core_ext | |
parent | 2ff2b98032409d162cd2a0ffc1b21c63057f628d (diff) | |
download | rails-dadba9ae5711c36e0491dffbd8fd03b96db45c19.tar.gz rails-dadba9ae5711c36e0491dffbd8fd03b96db45c19.tar.bz2 rails-dadba9ae5711c36e0491dffbd8fd03b96db45c19.zip |
Remove deprecated :prefix option
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/numeric_ext_test.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/activesupport/test/core_ext/numeric_ext_test.rb b/activesupport/test/core_ext/numeric_ext_test.rb index dfc9bc24c7..a6e5ea5ab7 100644 --- a/activesupport/test/core_ext/numeric_ext_test.rb +++ b/activesupport/test/core_ext/numeric_ext_test.rb @@ -287,21 +287,6 @@ class NumericExtFormattingTest < ActiveSupport::TestCase assert_equal "10 Bytes", 10.to_s(:human_size) end - def test_to_s__human_size_with_si_prefix - assert_deprecated do - assert_equal "3 Bytes", 3.14159265.to_s(:human_size, prefix: :si) - assert_equal "123 Bytes", 123.0.to_s(:human_size, prefix: :si) - assert_equal "123 Bytes", 123.to_s(:human_size, prefix: :si) - assert_equal "1.23 KB", 1234.to_s(:human_size, prefix: :si) - assert_equal "12.3 KB", 12345.to_s(:human_size, prefix: :si) - assert_equal "1.23 MB", 1234567.to_s(:human_size, prefix: :si) - assert_equal "1.23 GB", 1234567890.to_s(:human_size, prefix: :si) - assert_equal "1.23 TB", 1234567890123.to_s(:human_size, prefix: :si) - assert_equal "1.23 PB", 1234567890123456.to_s(:human_size, prefix: :si) - assert_equal "1.23 EB", 1234567890123456789.to_s(:human_size, prefix: :si) - end - end - def test_to_s__human_size_with_options_hash assert_equal "1.2 MB", 1234567.to_s(:human_size, precision: 2) assert_equal "3 Bytes", 3.14159265.to_s(:human_size, precision: 4) |