Sha256: 750ecf3780e8f1bcb4b75efa7146ac9faaf9a6708e61eeecf523b850eaadeebc
Contents?: true
Size: 296 Bytes
Versions: 2
Compression:
Stored size: 296 Bytes
Contents
require 'minitest/autorun' require 'duck_puncher' class NumericTest < MiniTest::Unit::TestCase def test_to_currency assert_equal '0.00', 0.to_currency assert_equal '25.00', 25.to_currency assert_equal '25.20', 25.2.to_currency assert_equal '25.25', 25.245.to_currency end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
duck_puncher-0.0.2 | test/duck_puncher/numeric_test.rb |
duck_puncher-0.0.1 | test/duck_puncher/numeric_test.rb |