Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
91 lines (85 sloc) 2.11 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.nic.pr/status_available.expected
#
# and regenerate the tests with the following rake task
#
# $ rake spec:generate
#
require 'spec_helper'
require 'whois/record/parser/whois.nic.pr.rb'
describe Whois::Record::Parser::WhoisNicPr, "status_available.expected" do
subject do
file = fixture("responses", "whois.nic.pr/status_available.txt")
part = Whois::Record::Part.new(:body => File.read(file))
described_class.new(part)
end
describe "#domain" do
it do
subject.domain.should == "u34jedzcq.pr"
end
end
describe "#domain_id" do
it do
lambda { subject.domain_id }.should raise_error(Whois::PropertyNotSupported)
end
end
describe "#status" do
it do
subject.status.should == :available
end
end
describe "#available?" do
it do
subject.available?.should == true
end
end
describe "#registered?" do
it do
subject.registered?.should == false
end
end
describe "#created_on" do
it do
subject.created_on.should == nil
end
end
describe "#updated_on" do
it do
lambda { subject.updated_on }.should raise_error(Whois::PropertyNotSupported)
end
end
describe "#expires_on" do
it do
subject.expires_on.should == nil
end
end
describe "#registrar" do
it do
lambda { subject.registrar }.should raise_error(Whois::PropertyNotSupported)
end
end
describe "#registrant_contacts" do
it do
lambda { subject.registrant_contacts }.should raise_error(Whois::PropertyNotSupported)
end
end
describe "#admin_contacts" do
it do
lambda { subject.admin_contacts }.should raise_error(Whois::PropertyNotSupported)
end
end
describe "#technical_contacts" do
it do
lambda { subject.technical_contacts }.should raise_error(Whois::PropertyNotSupported)
end
end
describe "#nameservers" do
it do
subject.nameservers.should be_a(Array)
subject.nameservers.should == []
end
end
end
Jump to Line
Something went wrong with that request. Please try again.