# 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.enom.com/property_contacts_long_address.expected # # and regenerate the tests with the following rake task # # $ rake spec:generate # require 'spec_helper' require 'whois/record/parser/whois.enom.com.rb' describe Whois::Record::Parser::WhoisEnomCom, "property_contacts_long_address.expected" do before(:each) do file = fixture("responses", "whois.enom.com/property_contacts_long_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(Whois::Record::Contact) @parser.technical_contacts[0].type.should == Whois::Record::Contact::TYPE_TECHNICAL @parser.technical_contacts[0].name.should == "Matt Barrie" @parser.technical_contacts[0].organization.should == "Freelancer Technology Pty Limited" @parser.technical_contacts[0].address.should == "Suite 501\n35 Lime Street" @parser.technical_contacts[0].city.should == "Sydney" @parser.technical_contacts[0].zip.should == "2000" @parser.technical_contacts[0].state.should == "NSW" @parser.technical_contacts[0].country_code.should == "AU" @parser.technical_contacts[0].phone.should == "+61.292793305" @parser.technical_contacts[0].fax.should == "+61.292793305" @parser.technical_contacts[0].email.should == "noc@freelancer.com" end end end