Sha256: 179858354045fe1a3bf3cc18934c82d879b5cf1db96de03714e73d9500e3301f

Contents?: true

Size: 1.64 KB

Versions: 5

Compression:

Stored size: 1.64 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.enom.com/property_contacts_empty_name.expected
#
# and regenerate the tests with the following rake task
#
#   $ rake spec:generate
#

require 'spec_helper'
require 'whois/record/parser/whois.enom.com.rb'

describe Whois::Record::Parser::WhoisEnomCom, "property_contacts_empty_name.expected" do

  before(:each) do
    file = fixture("responses", "whois.enom.com/property_contacts_empty_name.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].name.should         == ""
      @parser.registrant_contacts[0].organization.should == "Ben Cohen"
      @parser.registrant_contacts[0].address.should      == "9 Carolyn Ct."
      @parser.registrant_contacts[0].city.should         == "Owings Mills"
      @parser.registrant_contacts[0].zip.should          == "21117"
      @parser.registrant_contacts[0].state.should        == "MD"
      @parser.registrant_contacts[0].country_code.should == "US"
      @parser.registrant_contacts[0].phone.should        == ""
      @parser.registrant_contacts[0].fax.should          == ""
      @parser.registrant_contacts[0].email.should        == ""
    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.enom.com/property_contacts_empty_name_spec.rb
whois-2.6.2 spec/whois/record/parser/responses/whois.enom.com/property_contacts_empty_name_spec.rb
whois-2.6.1 spec/whois/record/parser/responses/whois.enom.com/property_contacts_empty_name_spec.rb
whois-2.6.0 spec/whois/record/parser/responses/whois.enom.com/property_contacts_empty_name_spec.rb
whois-2.5.1 spec/whois/record/parser/responses/whois.enom.com/property_contacts_empty_name_spec.rb