Sha256: 6fbb819ab96773db73f676c1c685ce67f34181b93dc64dba1a5977f52596bad4

Contents?: true

Size: 242 Bytes

Versions: 11

Compression:

Stored size: 242 Bytes

Contents

require 'spec_helper'

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
br_danfe-0.15.1 spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb
br_danfe-0.15.0 spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb
br_danfe-0.14.5 spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb
br_danfe-0.14.4 spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb
br_danfe-0.14.3 spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb
br_danfe-0.14.2 spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb
br_danfe-0.14.0 spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb
br_danfe-0.13.3 spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb
br_danfe-0.13.2 spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb
br_danfe-0.13.1 spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb
br_danfe-0.13.0 spec/br_danfe/danfe_lib/nfe_lib/cep_spec.rb