Sha256: e42c2ea7168040fe55a9cd738a6c8aab0be4893adcf1668ec74faf2e3dfe0710
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 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 nil on invalid input" do Valvat::Lookup.validate("AE259597697").should eql(nil) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
valvat-0.0.1 | spec/valvat/lookup_spec.rb |