Sha256: 97a519a1111c63e5b6e426a2d882223eef5b4b291505f0c4ccaa81d5a83a7431
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
describe BigDecimal do describe "#inspect" do context "with decimal points" do subject { BigDecimal.new("5000.1234").inspect } it { is_expected.to eq('#<BigDecimal:"5000.1234">') } end context "without decimal points" do subject { BigDecimal.new(5000).inspect } it { is_expected.to eq('#<BigDecimal:"5000">') } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
big_decimal_inspect-0.0.2 | spec/big_decimal_inspect_spec.rb |
big_decimal_inspect-0.0.1 | spec/big_decimal_inspect_spec.rb |