Sha256: 244a666e5f1ce155c0b257d0711dd75a9510fa7a4398272f7fc1aa46cd9b0355

Contents?: true

Size: 1.89 KB

Versions: 5

Compression:

Stored size: 1.89 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.domainregistry.ie/property_contacts_multiple.expected
#
# and regenerate the tests with the following rake task
#
#   $ rake spec:generate
#

require 'spec_helper'
require 'whois/record/parser/whois.domainregistry.ie.rb'

describe Whois::Record::Parser::WhoisDomainregistryIe, "property_contacts_multiple.expected" do

  before(:each) do
    file = fixture("responses", "whois.domainregistry.ie/property_contacts_multiple.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(2).items
      @parser.admin_contacts[0].should be_a(Whois::Record::Contact)
      @parser.admin_contacts[0].type.should          == Whois::Record::Contact::TYPE_ADMIN
      @parser.admin_contacts[0].id.should            == "JL241-IEDR"
      @parser.admin_contacts[0].name.should          == "Jonathan Lundberg"
      @parser.admin_contacts[1].should be_a(Whois::Record::Contact)
      @parser.admin_contacts[1].type.should          == Whois::Record::Contact::TYPE_ADMIN
      @parser.admin_contacts[1].id.should            == "JM474-IEDR"
      @parser.admin_contacts[1].name.should          == "John Moylan"
    end
  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            == "JM474-IEDR"
      @parser.technical_contacts[0].name.should          == "John Moylan"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whois-2.6.3 spec/whois/record/parser/responses/whois.domainregistry.ie/property_contacts_multiple_spec.rb
whois-2.6.2 spec/whois/record/parser/responses/whois.domainregistry.ie/property_contacts_multiple_spec.rb
whois-2.6.1 spec/whois/record/parser/responses/whois.domainregistry.ie/property_contacts_multiple_spec.rb
whois-2.6.0 spec/whois/record/parser/responses/whois.domainregistry.ie/property_contacts_multiple_spec.rb
whois-2.5.1 spec/whois/record/parser/responses/whois.domainregistry.ie/property_contacts_multiple_spec.rb