Sha256: d57f1b9b8046d16bc582a9a46d99e056eae85e22e60b542621043921e83ba2a1
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
describe String do describe '#as_cpf' do it 'formats string as CPF' do '12345678909'.as_cpf.should eq '123.456.789-09' end end describe '#as_cnpj' do it 'formats string as CNPJ' do '99999999999999'.as_cnpj.should eq '99.999.999/9999-99' end end describe '#as_cep' do it 'formats string as CEP' do '12345678'.as_cep.should eq '12345-678' end end describe '#as_phone_number' do it 'formats string as phone number' do '1122223333'.as_phone_number.should eq '(11) 2222-3333' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
burocracias-0.0.4 | spec/string_spec.rb |