Sha256: 1c81e851efad680ed485a58d554d4ea23cda1150bf194aec976692c25567b38a

Contents?: true

Size: 243 Bytes

Versions: 1

Compression:

Stored size: 243 Bytes

Contents

require 'spec_helper'

describe BigDecimal do
  it "should render to a nice string" do
    BigDecimal.new('1.9').to_s.should == '1.90'
  end
  
  it "should maintain consistency" do
    BigDecimal.new('1.9').to_s('F').should == '1.9'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
big_decimal_price-0.1.0 spec/big_decimal_spec.rb