Sha256: 8de202087060e3903b80b583ecde8d717ab832fc0fc2851fe9031afefe2ee9b5
Contents?: true
Size: 1.74 KB
Versions: 1
Compression:
Stored size: 1.74 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.it/property_contact_with_company_in_address.expected # # and regenerate the tests with the following rake task # # $ rake spec:generate # require 'spec_helper' require 'whois/record/parser/whois.nic.it.rb' describe Whois::Record::Parser::WhoisNicIt, "property_contact_with_company_in_address.expected" do before(:each) do file = fixture("responses", "whois.nic.it/property_contact_with_company_in_address.txt") part = Whois::Record::Part.new(:body => File.read(file)) @parser = klass.new(part) end describe "#technical_contacts" do it do @parser.technical_contacts.should be_a(Array) @parser.technical_contacts.should have(1).items @parser.technical_contacts[0].should be_a(_contact) @parser.technical_contacts[0].type.should == Whois::Record::Contact::TYPE_TECHNICAL @parser.technical_contacts[0].id.should == "AARS1-ITNIC" @parser.technical_contacts[0].name.should == "Andrea Antonio Renato Stratta" @parser.technical_contacts[0].organization.should == "UCI Italia Srl" @parser.technical_contacts[0].address.should == "Via E. Fermi, 161" @parser.technical_contacts[0].city.should == "Roma" @parser.technical_contacts[0].zip.should == "00146" @parser.technical_contacts[0].state.should == "RM" @parser.technical_contacts[0].country_code.should == "IT" @parser.technical_contacts[0].created_on.should == Time.parse("2006-08-16 00:00:00") @parser.technical_contacts[0].updated_on.should == Time.parse("2007-03-01 07:48:42") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-2.2.0 | spec/whois/record/parser/responses/whois.nic.it/property_contact_with_company_in_address_spec.rb |