Sha256: bfb6618b3985c899d357181c2332881a3ff447b85b27145531756cdca02c94f5

Contents?: true

Size: 1.21 KB

Versions: 5

Compression:

Stored size: 1.21 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.hu/schema-1.99/property_contact_without_address.expected
#
# and regenerate the tests with the following rake task
#
#   $ rake genspec:parsers
#

require 'spec_helper'
require 'whois/record/parser/whois.nic.hu.rb'

describe Whois::Record::Parser::WhoisNicHu, "property_contact_without_address.expected" do

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

  context "#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(_contact)
      @parser.registrant_contacts[0].address.should      == nil
      @parser.registrant_contacts[0].city.should         == nil
      @parser.registrant_contacts[0].zip.should          == nil
      @parser.registrant_contacts[0].state.should        == nil
      @parser.registrant_contacts[0].country_code.should == nil
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whois-2.0.4 spec/whois/record/parser/responses/whois.nic.hu/schema-1.99/property_contact_without_address_spec.rb
whois-2.0.3 spec/whois/record/parser/responses/whois.nic.hu/schema-1.99/property_contact_without_address_spec.rb
whois-2.0.2 spec/whois/record/parser/responses/whois.nic.hu/schema-1.99/property_contact_without_address_spec.rb
whois-2.0.1 spec/whois/record/parser/responses/whois.nic.hu/schema-1.99/property_contact_without_address_spec.rb
whois-2.0.0 spec/whois/record/parser/responses/whois.nic.hu/schema-1.99/property_contact_without_address_spec.rb