Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (30 sloc) 1.267 kB
# 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.ati.tn/property_contact_updated_none.expected
#
# and regenerate the tests with the following rake task
#
# $ rake spec:generate
#
require 'spec_helper'
require 'whois/record/parser/whois.ati.tn.rb'
describe Whois::Record::Parser::WhoisAtiTn, "property_contact_updated_none.expected" do
subject do
file = fixture("responses", "whois.ati.tn/property_contact_updated_none.txt")
part = Whois::Record::Part.new(body: File.read(file))
described_class.new(part)
end
describe "#registrant_contacts" do
it do
expect(subject.registrant_contacts).to be_a(Array)
expect(subject.registrant_contacts).to have(1).items
expect(subject.registrant_contacts[0]).to be_a(Whois::Record::Contact)
expect(subject.registrant_contacts[0].type).to eq(Whois::Record::Contact::TYPE_REGISTRANT)
expect(subject.registrant_contacts[0].name).to eq("MAISON DE BIEN HOTELIERS ET EQ Farhat Riadh")
expect(subject.registrant_contacts[0].created_on).to eq(Time.parse("2013-12-13 20:00:57"))
expect(subject.registrant_contacts[0].updated_on).to eq(nil)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.