spec/valvat/lookup_spec.rb in valvat-0.6.10 vs spec/valvat/lookup_spec.rb in valvat-0.6.11

- old
+ new

@@ -36,12 +36,10 @@ end end end context "invalid country code / input" do - without_any_web_requests! - it "returns false" do expect(Valvat::Lookup.validate("AE259597697")).to eql(false) expect(Valvat::Lookup.validate("")).to eql(false) end end @@ -129,10 +127,10 @@ # TODO : Reactivate with coorect "down" response # context "country web service down" do # before do # json = "{\"error_message\": \"Member State service unavailable.\", \"error_code\": 1, \"error\": true}" # FakeWeb.register_uri(:get, "http://isvat.appspot.com/DE/259597697/", :body => json) - # end if $fakeweb + # end # it "returns nil" do # Valvat::Lookup.validate("DE259597697").should eql(nil) # end # end