Sha256: 221c0b14edcba3f772588a4210032e573cc6cd231d125be47802eade13ade26d
Contents?: true
Size: 1.11 KB
Versions: 8
Compression:
Stored size: 1.11 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_technical_contact.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_technical_contact.expected" do before(:each) do file = fixture("responses", "whois.nic.it/property_technical_contact.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].id.should == "TS7016-ITNIC" @parser.technical_contacts[0].name.should == "Technical Services" end end end
Version data entries
8 entries across 8 versions & 1 rubygems