Sha256: 0a48c5171c9398d7d0fc6d6883133e0ee4d6c6ce531f552c414a6ef513bb8bdf

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

require "spec_helper"

module ShipCompliant
  describe SalesTaxRate do

    context "sales_tax_due" do
      it "returns sales_tax_due" do
        tax_rate = SalesTaxRate.new(sales_tax_due: '34.43')
        tax_rate.sales_tax_due.should == 34.43
      end
    end

    context "sales_tax_rate" do
      it "return sales_tax_rate" do
        tax_rate = SalesTaxRate.new(sales_tax_rate: '2.34')
        tax_rate.sales_tax_rate.should == 2.34
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ship_compliant-0.2.0 spec/lib/ship_compliant/sales_tax_rate_spec.rb
ship_compliant-0.1.2 spec/lib/ship_compliant/sales_tax_rate_spec.rb
ship_compliant-0.1.1 spec/lib/ship_compliant/sales_tax_rate_spec.rb
ship_compliant-0.1.0 spec/lib/ship_compliant/sales_tax_rate_spec.rb