Sha256: 20d8338213cb84e30ca735d3dae6847c7d7ba000730f3a7733246fa5ce70dd91

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

require_relative "spec_helper"

describe AmountFormatter do
  it "formats numbers" do
    AmountFormatter.format(12345.12, :precision => 2, :separator => ",", :delimiter => ".").should eq "12.345,12"
    AmountFormatter.format(12345.12).should eq "12,345.12"
    AmountFormatter.format(0.1).should eq "0.10"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
amount_formatter-0.0.3 spec/amount_formatter_spec.rb
amount_formatter-0.0.2 spec/amount_formatter_spec.rb