Sha256: b2b811d92e05470e8364685df0ae374b7fb3dc74cfc5bae08a0a8d4c61421048

Contents?: true

Size: 457 Bytes

Versions: 6

Compression:

Stored size: 457 Bytes

Contents

require 'spec_helper'

describe BigDecimal do

  it "should allow verifying if it's a positive value" do
    expect(BigDecimal('-1')).to_not be_positive
    expect(BigDecimal('0')).to_not be_positive
    expect(BigDecimal('1')).to be_positive
  end

  it "should allow verifying if it's a negative value" do
    expect(BigDecimal('-1')).to be_negative
    expect(BigDecimal('0')).to_not be_negative
    expect(BigDecimal('1')).to_not be_negative
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
money_extensions-1.5.0 spec/big_decimal_spec.rb
money_extensions-1.4.0 spec/big_decimal_spec.rb
money_extensions-1.3.0 spec/big_decimal_spec.rb
money_extensions-1.2.0 spec/big_decimal_spec.rb
money_extensions-1.1.0 spec/big_decimal_spec.rb
money_extensions-1.0.0 spec/big_decimal_spec.rb