Sha256: da961fec8f06d9723b3a773fc12d6ec64e9162f133ad39079cf8dd31bdfaec8a

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

require "spec_helper"

describe CNPJ::Generator do
  it "generates valid numbers" do
    expect(CNPJ).to be_valid(CNPJ::Generator.generate)
    expect(CNPJ).to be_valid(CNPJ::Generator.generate)
    expect(CNPJ).to be_valid(CNPJ::Generator.generate)
    expect(CNPJ).to be_valid(CNPJ::Generator.generate)
    expect(CNPJ).to be_valid(CNPJ::Generator.generate)
  end

  it "generates random numbers" do
    expect(CNPJ::Generator.generate).not_to eql(CNPJ::Generator.generate)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cpf_cnpj-0.2.1 spec/cnpj/generator_spec.rb
cpf_cnpj-0.2.0 spec/cnpj/generator_spec.rb
cpf_cnpj-0.1.0 spec/cnpj/generator_spec.rb