aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorYosuke Kabuto <bluewhale1982@gmail.com>2016-05-15 14:49:53 +0900
committerYosuke Kabuto <bluewhale1982@gmail.com>2016-05-15 14:49:53 +0900
commit330e011c6c7a56a09e7f26db8750a19ca7865261 (patch)
tree7581056ca844e739ae4ab61ef5abc850d0b8d561 /activesupport
parent0827f9932f75360dc4a7db8046d08d55055e8526 (diff)
downloadrails-330e011c6c7a56a09e7f26db8750a19ca7865261.tar.gz
rails-330e011c6c7a56a09e7f26db8750a19ca7865261.tar.bz2
rails-330e011c6c7a56a09e7f26db8750a19ca7865261.zip
Add some assertions for BigDecimal#to_s
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/bigdecimal_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/bigdecimal_test.rb b/activesupport/test/core_ext/bigdecimal_test.rb
index 423a3f2e9d..6e82e3892b 100644
--- a/activesupport/test/core_ext/bigdecimal_test.rb
+++ b/activesupport/test/core_ext/bigdecimal_test.rb
@@ -5,5 +5,7 @@ class BigDecimalTest < ActiveSupport::TestCase
def test_to_s
bd = BigDecimal.new '0.01'
assert_equal '0.01', bd.to_s
+ assert_equal '+0.01', bd.to_s('+F')
+ assert_equal '+0.0 1', bd.to_s('+1F')
end
end