Sha256: f76101fbb318b33e02d8f47a22efdd73ef826ee967332329b0bffdb0aeb6d2be
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 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(_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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-2.2.0 | spec/whois/record/parser/responses/whois.nic.it/property_technical_contact_spec.rb |