spec/valvat/lookup_spec.rb in valvat-0.0.1 vs spec/valvat/lookup_spec.rb in valvat-0.0.2
- old
+ new
@@ -8,10 +8,11 @@
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)
+ 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
\ No newline at end of file