spec/valvat_spec.rb in valvat-0.2.1 vs spec/valvat_spec.rb in valvat-0.2.2
- old
+ new
@@ -37,28 +37,31 @@
it "returns false on invalid numbers" do
at_vat.should_not be_valid
end
end
- context "#exist?" do
+ context "#exist(s)?" do
context "on existing vat numbers" do
before do
Valvat::Lookup.stub(:validate => true)
end
it "returns true" do
- de_vat.should be_exist
- gr_vat.should be_exist
+ de_vat.exists?.should eql(true)
+ gr_vat.exists?.should eql(true)
+ de_vat.exist?.should eql(true)
+ gr_vat.exist?.should eql(true)
end
end
context "on not existing vat numbers" do
before do
Valvat::Lookup.stub(:validate => false)
end
it "returns false" do
- at_vat.should_not be_exist
+ at_vat.exists?.should eql(false)
+ at_vat.exist?.should eql(false)
end
end
end
context "#iso_country_code" do
\ No newline at end of file