Sha256: 6517db97abc1460e042d84f4a3933fbb1105a00226577f56681b215e384c6832

Contents?: true

Size: 225 Bytes

Versions: 2

Compression:

Stored size: 225 Bytes

Contents

require "spec_helper"

describe BrDanfe::Cnpj do
  describe ".format" do
    it "returns a formated CNPJ" do
      cnpj = "32624223000116"
      expect(BrDanfe::Cnpj.format(cnpj)).to eq "32.624.223/0001-16"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
br_danfe-0.0.2 spec/lib/cnpj_spec.rb
br_danfe-0.0.1 spec/lib/cnpj_spec.rb