Sha256: 7f329788a5c5d85c97af716625d4f26fbf2a09c06a5247d69932f9014faf9a5a

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 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.uk/property_registrar_without_trading_name.expected
#
# and regenerate the tests with the following rake task
#
#   $ rake genspec:parsers
#

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

describe Whois::Record::Parser::WhoisNicUk, "property_registrar_without_trading_name.expected" do

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

  context "#registrar" do
    it do
      @parser.registrar.should be_a(_registrar)
      @parser.registrar.id.should           == "NETNAMES"
      @parser.registrar.name.should         == "NetNames Limited"
      @parser.registrar.name.should         == "NetNames Limited"
      @parser.registrar.url.should          == "http://www.netnames.co.uk"
    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.uk/property_registrar_without_trading_name_spec.rb
whois-2.0.3 spec/whois/record/parser/responses/whois.nic.uk/property_registrar_without_trading_name_spec.rb
whois-2.0.2 spec/whois/record/parser/responses/whois.nic.uk/property_registrar_without_trading_name_spec.rb
whois-2.0.1 spec/whois/record/parser/responses/whois.nic.uk/property_registrar_without_trading_name_spec.rb
whois-2.0.0 spec/whois/record/parser/responses/whois.nic.uk/property_registrar_without_trading_name_spec.rb