Sha256: 840db7926b779e519407e7d00334e4e40104266611c9d3e2fde2e9467d05a560
Contents?: true
Size: 1.76 KB
Versions: 8
Compression:
Stored size: 1.76 KB
Contents
# encoding: utf-8 # This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # /spec/fixtures/responses/whois.nic.hu/schema-1.99/property_contact_company.expected # # and regenerate the tests with the following rake task # # $ rake spec:generate # require 'spec_helper' require 'whois/record/parser/whois.nic.hu.rb' describe Whois::Record::Parser::WhoisNicHu, "property_contact_company.expected" do before(:each) do file = fixture("responses", "whois.nic.hu/schema-1.99/property_contact_company.txt") part = Whois::Record::Part.new(:body => File.read(file)) @parser = klass.new(part) end describe "#registrant_contacts" do it do @parser.registrant_contacts.should be_a(Array) @parser.registrant_contacts.should have(1).items @parser.registrant_contacts[0].should be_a(Whois::Record::Contact) @parser.registrant_contacts[0].type.should == Whois::Record::Contact::TYPE_REGISTRANT @parser.registrant_contacts[0].id.should == nil @parser.registrant_contacts[0].name.should == "Google, Inc." @parser.registrant_contacts[0].organization.should == "Google, Inc." @parser.registrant_contacts[0].address.should == "Amphitheatre Pkwy 1600." @parser.registrant_contacts[0].city.should == "Mountain View" @parser.registrant_contacts[0].zip.should == "CA-94043" @parser.registrant_contacts[0].state.should == nil @parser.registrant_contacts[0].country_code.should == "US" @parser.registrant_contacts[0].phone.should == "+1 650 253 0000" @parser.registrant_contacts[0].fax.should == "+1 650 253 0001" @parser.registrant_contacts[0].email.should == nil end end end
Version data entries
8 entries across 8 versions & 1 rubygems