Sha256: ebc1ce2ff226bda4c73543cc168495d61b40334c3279ed5592190902bbad2998
Contents?: true
Size: 440 Bytes
Versions: 10
Compression:
Stored size: 440 Bytes
Contents
require 'spec_helper' describe Valvat::Checksum::EE do %w(EE101234568 EE100207415).each do |valid_vat| it "returns true on valid vat #{valid_vat}" do expect(Valvat::Checksum.validate(valid_vat)).to be true end invalid_vat = "#{valid_vat[0..-3]}#{valid_vat[-1]}#{valid_vat[-2]}" it "returns false on invalid vat #{invalid_vat}" do expect(Valvat::Checksum.validate(invalid_vat)).to be false end end end
Version data entries
10 entries across 10 versions & 1 rubygems