Sha256: 1d5edf9f23e34e66b7032c4ba0fc2abd939d1bb00573d6e4d78b6c0dabf7c4cf
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
require 'spec_helper' describe BigDecimal do it "should allow verifying if it's a positive value" do expect(BigDecimal.new('-1')).to_not be_positive expect(BigDecimal.new('0')).to_not be_positive expect(BigDecimal.new('1')).to be_positive end it "should allow verifying if it's a negative value" do expect(BigDecimal.new('-1')).to be_negative expect(BigDecimal.new('0')).to_not be_negative expect(BigDecimal.new('1')).to_not be_negative end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
money_extensions-0.1.0 | spec/big_decimal_spec.rb |
money_extensions-0.0.2 | spec/big_decimal_spec.rb |