Sha256: 68c9d7d2bbf8d9b7b7405ea86961b80bcfcf6d59f0c2cc72d3efc25ee87b3015
Contents?: true
Size: 496 Bytes
Versions: 22
Compression:
Stored size: 496 Bytes
Contents
describe "Numeric" do it "should have a #string_with_style method" do 1000.string_with_style.should == NSNumberFormatter.localizedStringFromNumber(1000, numberStyle:NSNumberFormatterDecimalStyle) 1000.string_with_style(:decimal).should == NSNumberFormatter.localizedStringFromNumber(1000, numberStyle:NSNumberFormatterDecimalStyle) 1000.string_with_style(:currency).should == NSNumberFormatter.localizedStringFromNumber(1000, numberStyle:NSNumberFormatterCurrencyStyle) end end
Version data entries
22 entries across 22 versions & 1 rubygems