Sha256: 2c55a9cb098122085dca6f7e9c382b684e8f3c53aa41377cfbe1786c4992daa3

Contents?: true

Size: 206 Bytes

Versions: 9

Compression:

Stored size: 206 Bytes

Contents

require "spec_helper"

describe BrDanfe::Cep do
  describe ".format" do
    it "returns a formated CEP" do
      cep = "12345678"
      expect(BrDanfe::Cep.format(cep)).to eq "12.345-678"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
br_danfe-0.0.9 spec/lib/cep_spec.rb
br_danfe-0.0.8 spec/lib/cep_spec.rb
br_danfe-0.0.7 spec/lib/cep_spec.rb
br_danfe-0.0.6 spec/lib/cep_spec.rb
br_danfe-0.0.5 spec/lib/cep_spec.rb
br_danfe-0.0.4 spec/lib/cep_spec.rb
br_danfe-0.0.3 spec/lib/cep_spec.rb
br_danfe-0.0.2 spec/lib/cep_spec.rb
br_danfe-0.0.1 spec/lib/cep_spec.rb