Sha256: 80401e82afb4b2a3d014d8080e8443f892375e4684fdff7562d857b9c1a99089
Contents?: true
Size: 1.64 KB
Versions: 8
Compression:
Stored size: 1.64 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_organization.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_organization.expected" do before(:each) do file = fixture("responses", "whois.nic.it/property_contact_with_organization.txt") part = Whois::Record::Part.new(:body => File.read(file)) @parser = klass.new(part) end describe "#admin_contacts" do it do @parser.admin_contacts.should be_a(Array) @parser.admin_contacts.should have(1).items @parser.admin_contacts[0].should be_a(Whois::Record::Contact) @parser.admin_contacts[0].type.should == Whois::Record::Contact::TYPE_ADMIN @parser.admin_contacts[0].id.should == "TT4277-ITNIC" @parser.admin_contacts[0].name.should == "Tsao Tu" @parser.admin_contacts[0].organization.should == "Tu Tsao" @parser.admin_contacts[0].address.should == "30 Herbert Street" @parser.admin_contacts[0].city.should == "Dublin" @parser.admin_contacts[0].zip.should == "2" @parser.admin_contacts[0].state.should == "IE" @parser.admin_contacts[0].country_code.should == "IE" @parser.admin_contacts[0].created_on.should == Time.parse("2008-11-27 16:47:22") @parser.admin_contacts[0].updated_on.should == Time.parse("2008-11-27 16:47:22") end end end
Version data entries
8 entries across 8 versions & 1 rubygems