Sha256: b705f8976db0dfa90a999cc0c6b2b9ff02db5f48689a104ab2a1ba33cd339641
Contents?: true
Size: 1.74 KB
Versions: 5
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 genspec:parsers # 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 context "#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
5 entries across 5 versions & 1 rubygems