Skip to content

Commit

Permalink
Add some assertions for BigDecimal#to_s
Browse files Browse the repository at this point in the history
  • Loading branch information
ysksn committed May 15, 2016
1 parent 0827f99 commit 330e011
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions activesupport/test/core_ext/bigdecimal_test.rb
Expand Up @@ -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

0 comments on commit 330e011

Please sign in to comment.