Sha256: d4673f0e61d0351ab5c5f6cd0d8b6a39a69f265e2aceffbe1614b49ef43af02d
Contents?: true
Size: 512 Bytes
Versions: 2
Compression:
Stored size: 512 Bytes
Contents
require 'spec_helper' describe Valvat::Lookup::Request do it "returns Response on success" do response = Valvat::Lookup::Request.new("IE6388047V", {}).perform expect(response).to be_a(Valvat::Lookup::Response) expect(response.to_hash[:name]).to eql("GOOGLE IRELAND LIMITED") end it "returns Fault on failure" do response = Valvat::Lookup::Request.new("XC123123", {}).perform expect(response).to be_a(Valvat::Lookup::Fault) expect(response.to_hash).to eql({valid: false}) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
valvat-1.0.1 | spec/valvat/lockup/request_spec.rb |
valvat-1.0.0 | spec/valvat/lockup/request_spec.rb |