aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/bigdecimal_test.rb
diff options
context:
space:
mode:
authorAndrew Mutz <andrew.mutz@gmail.com>2012-05-14 17:47:55 -0700
committerAndrew Mutz <andrew.mutz@gmail.com>2012-05-27 18:14:21 -0700
commit155cd5e6b5f4c787ce01369d0187431c71a0d909 (patch)
tree2caad9e93af633431cca8415d2360e461316a567 /activesupport/test/core_ext/bigdecimal_test.rb
parent523d0f09e4cc3ba46d851e2144587df26fdc7603 (diff)
downloadrails-155cd5e6b5f4c787ce01369d0187431c71a0d909.tar.gz
rails-155cd5e6b5f4c787ce01369d0187431c71a0d909.tar.bz2
rails-155cd5e6b5f4c787ce01369d0187431c71a0d909.zip
Moving NumberHelpers from ActionView to ActiveSupport
Diffstat (limited to 'activesupport/test/core_ext/bigdecimal_test.rb')
-rw-r--r--activesupport/test/core_ext/bigdecimal_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/bigdecimal_test.rb b/activesupport/test/core_ext/bigdecimal_test.rb
index e24a089650..a5987044b9 100644
--- a/activesupport/test/core_ext/bigdecimal_test.rb
+++ b/activesupport/test/core_ext/bigdecimal_test.rb
@@ -14,4 +14,9 @@ class BigDecimalTest < ActiveSupport::TestCase
bd = BigDecimal.new '10'
assert_equal bd, bd.to_d
end
+
+ def test_to_s
+ bd = BigDecimal.new '0.01'
+ assert_equal '0.01', bd.to_s
+ end
end