Sha256: 2bdc061ebebd4f1288ddb12e8fca5cacbc87a78d8240600406c299f9a423369c

Contents?: true

Size: 1.71 KB

Versions: 8

Compression:

Stored size: 1.71 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_contact_province.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_contact_province.expected" do

  before(:each) do
    file = fixture("responses", "whois.nic.it/property_contact_province.txt")
    part = Whois::Record::Part.new(:body => File.read(file))
    @parser = klass.new(part)
  end

  describe "#registrant_contacts" do
    it do
      @parser.registrant_contacts.should be_a(Array)
      @parser.registrant_contacts.should have(1).items
      @parser.registrant_contacts[0].should be_a(Whois::Record::Contact)
      @parser.registrant_contacts[0].type.should         == Whois::Record::Contact::TYPE_REGISTRANT
      @parser.registrant_contacts[0].id.should           == "HTML1-ITNIC"
      @parser.registrant_contacts[0].name.should         == "HTML.it srl"
      @parser.registrant_contacts[0].organization.should == "HTML.it srl"
      @parser.registrant_contacts[0].address.should      == "Viale Alessandrino, 595"
      @parser.registrant_contacts[0].city.should         == "Roma"
      @parser.registrant_contacts[0].zip.should          == "00172"
      @parser.registrant_contacts[0].state.should        == "RM"
      @parser.registrant_contacts[0].country_code.should == "IT"
      @parser.registrant_contacts[0].created_on.should   == Time.parse("2007-03-01 10:28:08")
      @parser.registrant_contacts[0].updated_on.should   == Time.parse("2007-03-01 10:28:08")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
whois-2.6.3 spec/whois/record/parser/responses/whois.nic.it/property_contact_province_spec.rb
whois-2.6.2 spec/whois/record/parser/responses/whois.nic.it/property_contact_province_spec.rb
whois-2.6.1 spec/whois/record/parser/responses/whois.nic.it/property_contact_province_spec.rb
whois-2.6.0 spec/whois/record/parser/responses/whois.nic.it/property_contact_province_spec.rb
whois-2.5.1 spec/whois/record/parser/responses/whois.nic.it/property_contact_province_spec.rb
whois-2.5.0 spec/whois/record/parser/responses/whois.nic.it/property_contact_province_spec.rb
whois-2.4.0 spec/whois/record/parser/responses/whois.nic.it/property_contact_province_spec.rb
whois-2.3.0 spec/whois/record/parser/responses/whois.nic.it/property_contact_province_spec.rb