Sha256: c60cc8c2101593af6ef94314b9cb0609a1ecf50094cd818d0bd17844052bec84
Contents?: true
Size: 1.73 KB
Versions: 4
Compression:
Stored size: 1.73 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.educause.edu/property_contacts_case4.expected # # and regenerate the tests with the following rake task # # $ rake spec:generate # require 'spec_helper' require 'whois/record/parser/whois.educause.edu.rb' describe Whois::Record::Parser::WhoisEducauseEdu, "property_contacts_case4.expected" do before(:each) do file = fixture("responses", "whois.educause.edu/property_contacts_case4.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].id.should == nil @parser.admin_contacts[0].name.should == "ITS Business Office\nSyracuse University\nInformation Technology and Services\nCenter for Science and Technology" @parser.admin_contacts[0].organization.should == nil @parser.admin_contacts[0].address.should == nil @parser.admin_contacts[0].city.should == "Syracuse" @parser.admin_contacts[0].zip.should == "13244" @parser.admin_contacts[0].state.should == "NY" @parser.admin_contacts[0].country.should == "UNITED STATES" @parser.admin_contacts[0].country_code.should == nil @parser.admin_contacts[0].phone.should == "(315) 443-6189" @parser.admin_contacts[0].fax.should == nil @parser.admin_contacts[0].email.should == "itsoffice@syr.edu" end end end
Version data entries
4 entries across 4 versions & 1 rubygems