Sha256: 81c1bf813c29e06d79305d363a2df1316ba988d55f2c408d0180f025ddd44bd3
Contents?: true
Size: 1.1 KB
Versions: 5
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 genspec:parsers # 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 context "#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
5 entries across 5 versions & 1 rubygems