Sha256: b243d5f7cbcf483f41ab5dedeade0ae41525beecb1d4a590896353246cccf80b
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
require 'spec_helper' describe Valvat::Lookup do context "#validate" do it "returns true on existing vat number" do Valvat::Lookup.validate("BE0817331995").should eql(true) end it "returns false on not existing vat number" do Valvat::Lookup.validate("BE0817331994").should eql(false) end it "returns false on invalid country code / input" do Valvat::Lookup.validate("AE259597697").should eql(false) Valvat::Lookup.validate("").should eql(false) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
valvat-0.1.0 | spec/valvat/lookup_spec.rb |
valvat-0.0.3 | spec/valvat/lookup_spec.rb |
valvat-0.0.2 | spec/valvat/lookup_spec.rb |