aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/bigdecimal_test.rb
diff options
context:
space:
mode:
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