Sha256: ffc361c9b96b0a7cbfd968e66f1039be78acd57455125d892863f8955fc688fd

Contents?: true

Size: 1.56 KB

Versions: 8

Compression:

Stored size: 1.56 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.eu/property_nameservers.expected
#
# and regenerate the tests with the following rake task
#
#   $ rake spec:generate
#

require 'spec_helper'
require 'whois/record/parser/whois.eu.rb'

describe Whois::Record::Parser::WhoisEu, "property_nameservers.expected" do

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

  describe "#nameservers" do
    it do
      @parser.nameservers.should be_a(Array)
      @parser.nameservers.should have(5).items
      @parser.nameservers[0].should be_a(Whois::Record::Nameserver)
      @parser.nameservers[0].name.should == "a.nic.eu"
      @parser.nameservers[1].should be_a(Whois::Record::Nameserver)
      @parser.nameservers[1].name.should == "l.nic.eu"
      @parser.nameservers[2].should be_a(Whois::Record::Nameserver)
      @parser.nameservers[2].name.should == "p.nic.eu"
      @parser.nameservers[3].should be_a(Whois::Record::Nameserver)
      @parser.nameservers[3].name.should == "ns1.eurid.eu"
      @parser.nameservers[3].ipv4.should == "91.220.191.220"
      @parser.nameservers[3].ipv6.should == nil
      @parser.nameservers[4].should be_a(Whois::Record::Nameserver)
      @parser.nameservers[4].name.should == "ns2.eurid.eu"
      @parser.nameservers[4].ipv4.should == "195.234.53.220"
      @parser.nameservers[4].ipv6.should == nil
    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.eu/property_nameservers_spec.rb
whois-2.6.2 spec/whois/record/parser/responses/whois.eu/property_nameservers_spec.rb
whois-2.6.1 spec/whois/record/parser/responses/whois.eu/property_nameservers_spec.rb
whois-2.6.0 spec/whois/record/parser/responses/whois.eu/property_nameservers_spec.rb
whois-2.5.1 spec/whois/record/parser/responses/whois.eu/property_nameservers_spec.rb
whois-2.5.0 spec/whois/record/parser/responses/whois.eu/property_nameservers_spec.rb
whois-2.4.0 spec/whois/record/parser/responses/whois.eu/property_nameservers_spec.rb
whois-2.3.0 spec/whois/record/parser/responses/whois.eu/property_nameservers_spec.rb