diff --git a/data/tld.json b/data/tld.json index 15f0d905a..8b8053222 100644 --- a/data/tld.json +++ b/data/tld.json @@ -1160,7 +1160,7 @@ "host": "whois.gov.za" }, ".org.za": { - "host": "whois.org.za" + "host": "org-whois.registry.net.za" }, ".za": { "host": null, diff --git a/lib/whois/record/parser/org-whois.registry.net.za.rb b/lib/whois/record/parser/org-whois.registry.net.za.rb new file mode 100644 index 000000000..30b239192 --- /dev/null +++ b/lib/whois/record/parser/org-whois.registry.net.za.rb @@ -0,0 +1,28 @@ +#-- +# Ruby Whois +# +# An intelligent pure Ruby WHOIS client and parser. +# +# Copyright (c) 2009-2014 Simone Carletti +#++ + + +require 'whois/record/parser/za_central_egistry' + + +module Whois + class Record + class Parser + + # + # = whois.org.za parser + # + # Parser for the whois.org.za server. + # + class OrgWhoisRegistryNetZa < ZaCentralRegistry + + end + + end + end +end diff --git a/lib/whois/record/parser/whois.org.za.rb b/lib/whois/record/parser/whois.org.za.rb deleted file mode 100644 index 7390b0cab..000000000 --- a/lib/whois/record/parser/whois.org.za.rb +++ /dev/null @@ -1,71 +0,0 @@ -#-- -# Ruby Whois -# -# An intelligent pure Ruby WHOIS client and parser. -# -# Copyright (c) 2009-2014 Simone Carletti -#++ - - -require 'whois/record/parser/base' - - -module Whois - class Record - class Parser - - # - # = whois.org.za parser - # - # Parser for the whois.org.za server. - # - class WhoisOrgZa < Base - - property_not_supported :disclaimer - - - property_not_supported :domain - - property_not_supported :domain_id - - - property_supported :status do - if available? - :available - else - :registered - end - end - - property_supported :available? do - !!(content_for_scanner =~ /^(.+): Available/) - end - - property_supported :registered? do - !available? - end - - - property_not_supported :created_on - - property_not_supported :updated_on - - property_not_supported :expires_on - - - property_not_supported :registrar - - property_not_supported :registrant_contacts - - property_not_supported :admin_contacts - - property_not_supported :technical_contacts - - - property_not_supported :nameservers - - end - - end - end -end diff --git a/spec/fixtures/responses/org-whois.registry.net.za/status_available.expected b/spec/fixtures/responses/org-whois.registry.net.za/status_available.expected new file mode 100644 index 000000000..6bbcc28c5 --- /dev/null +++ b/spec/fixtures/responses/org-whois.registry.net.za/status_available.expected @@ -0,0 +1,47 @@ +#domain + %s == nil + +#domain_id + %s == nil + + +#status + %s == :available + +#available? + %s == true + +#registered? + %s == false + + +#created_on + %s == nil + +#updated_on + %s == nil + +#expires_on + %s == nil + + +#registrar + %s == nil + + +#registrant_contacts + %s %CLASS{array} + %s == [] + +#admin_contacts + %s %CLASS{array} + %s == [] + +#technical_contacts + %s %CLASS{array} + %s == [] + + +#nameservers + %s %CLASS{array} + %s == [] diff --git a/spec/fixtures/responses/org-whois.registry.net.za/status_available.txt b/spec/fixtures/responses/org-whois.registry.net.za/status_available.txt new file mode 100644 index 000000000..96a342c3b --- /dev/null +++ b/spec/fixtures/responses/org-whois.registry.net.za/status_available.txt @@ -0,0 +1,10 @@ +Available +Domain: nosuchdomain.org.za + +>>> Last update of WHOIS database: 2015-06-03T12:13:12Z <<< + +# WHOIS lookup made at 2015-06-03T12:13:12Z +# -- +# The use of this Whois facility is subject to the following terms and +# conditions. https://registry.net.za/whois_terms +# Copyright (c) ZACR 1995-2015 diff --git a/spec/fixtures/responses/org-whois.registry.net.za/status_registered.expected b/spec/fixtures/responses/org-whois.registry.net.za/status_registered.expected new file mode 100644 index 000000000..eb46eefce --- /dev/null +++ b/spec/fixtures/responses/org-whois.registry.net.za/status_registered.expected @@ -0,0 +1,111 @@ +#domain + %s == "joburg.org.za" + +#domain_id + %s == "dom_8VP-9999" + + +#status + %s == :registered + +#available? + %s == false + +#registered? + %s == true + + +#created_on + %s %CLASS{time} + %s %TIME{1997-10-03 09:46:34 UTC} + +#updated_on + %s %CLASS{time} + %s %TIME{2015-02-05 08:45:51 UTC} + +#expires_on + %s %CLASS{time} + %s %TIME{2999-12-31 21:59:59 UTC} + + +#registrar + %s %CLASS{registrar} + %s.id == "9999" + %s.name == "ZA Central Registry" + %s.organization == "ZA Central Registry" + %s.url == nil + +#registrant_contacts + %s %CLASS{array} + %s %SIZE{1} + %s[0] %CLASS{contact} + %s[0].type == Whois::Record::Contact::TYPE_REGISTRANT + %s[0].id == "jobuRant" + %s[0].name == "City of Johannesburg Metropolitan Municipality" + %s[0].organization == "" + %s[0].address == "P.O. Box 30757" + %s[0].city == "Braamfontein" + %s[0].state == "Gauteng" + %s[0].zip == "2017" + %s[0].country == nil + %s[0].country_code == "ZA" + %s[0].phone == "+27.110186314" + %s[0].fax == "+27.113819583" + %s[0].email == "joelsonp@joburg.org.za" + %s[0].created_on == nil + %s[0].updated_on == nil + +#admin_contacts + %s %CLASS{array} + %s %SIZE{1} + %s[0] %CLASS{contact} + %s[0].type == Whois::Record::Contact::TYPE_ADMINISTRATIVE + %s[0].id == "zacr-a0c0379446" + %s[0].name == "Joelson Pholoha" + %s[0].organization == "" + %s[0].address == "Private Bag X10013, Sandton, 2146" + %s[0].city == "-" + %s[0].zip == "" + %s[0].country == nil + %s[0].country_code == "--" + %s[0].phone == "+27.110186314" + %s[0].fax == "+27.113819583" + %s[0].email == "Joelsonp@Joburg.org.za" + %s[0].created_on == nil + %s[0].updated_on == nil + +#technical_contacts + %s %CLASS{array} + %s %SIZE{1} + %s[0] %CLASS{contact} + %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL + %s[0].id == "zacr-71fff5bce2" + %s[0].name == "Eben Jacobs" + %s[0].organization == "" + %s[0].address == "Accounts Payable, Vida Building, Kabelweg 57, 1014 BA Amsterdam" + %s[0].city == "-" + %s[0].zip == "" + %s[0].country == nil + %s[0].country_code == "--" + %s[0].phone == "+27.110186314" + %s[0].fax == "+27.113819583" + %s[0].email == "ebenj@joburg.org.za" + %s[0].created_on == nil + %s[0].updated_on == nil + + +#nameservers + %s %CLASS{array} + %s %SIZE{3} + %s[0] %CLASS{nameserver} + %s[0].name == "demeter.is.co.za" + %s[0].ipv4 == nil + %s[0].ipv6 == nil + %s[1] %CLASS{nameserver} + %s[1].name == "jupiter.is.co.za" + %s[1].ipv4 == nil + %s[1].ipv6 == nil + %s[2] %CLASS{nameserver} + %s[2].name == "titan.is.co.za" + %s[2].ipv4 == nil + %s[2].ipv6 == nil diff --git a/spec/fixtures/responses/org-whois.registry.net.za/status_registered.txt b/spec/fixtures/responses/org-whois.registry.net.za/status_registered.txt new file mode 100644 index 000000000..208372939 --- /dev/null +++ b/spec/fixtures/responses/org-whois.registry.net.za/status_registered.txt @@ -0,0 +1,79 @@ +Domain Name: joburg.org.za +Domain ID: dom_8VP-9999 +WHOIS Server: org-whois2.registry.net.za + +Updated Date: 2015-02-05T08:45:51Z +Creation Date: 1997-10-03T09:46:34Z +Registry Expiry Date: 2999-12-31T21:59:59Z +Sponsoring Registrar: ZA Central Registry +Sponsoring Registrar IANA ID: 9999 +Domain Status: ok + +Registrant ID: jobuRant +Registrant Name: City of Johannesburg Metropolitan Municipality +Registrant Organization: +Registrant Street: P.O. Box 30757 +Registrant City: Braamfontein +Registrant State/Province: Gauteng +Registrant Postal Code: 2017 +Registrant Country: ZA +Registrant Phone: +27.110186314 +Registrant Phone Ext: +Registrant Fax: +27.113819583 +Registrant Fax Ext: +Registrant Email: joelsonp@joburg.org.za + +Admin ID: zacr-a0c0379446 +Admin Name: Joelson Pholoha +Admin Organization: +Admin Street: Private Bag X10013, Sandton, 2146 +Admin City: - +Admin State/Province: +Admin Postal Code: +Admin Country: -- +Admin Phone: +27.110186314 +Admin Phone Ext: +Admin Fax: +27.113819583 +Admin Fax Ext: +Admin Email: Joelsonp@Joburg.org.za + +Billing ID: zacr-07de5cca59 +Billing Name: +Billing Organization: +Billing Street: +Billing City: - +Billing State/Province: +Billing Postal Code: +Billing Country: -- +Billing Phone: +Billing Phone Ext: +Billing Fax: +Billing Fax Ext: +Billing Email: + +Tech ID: zacr-71fff5bce2 +Tech Name: Eben Jacobs +Tech Organization: +Tech Street: Accounts Payable, Vida Building, Kabelweg 57, 1014 BA Amsterdam +Tech City: - +Tech State/Province: +Tech Postal Code: +Tech Country: -- +Tech Phone: +27.110186314 +Tech Phone Ext: +Tech Fax: +27.113819583 +Tech Fax Ext: +Tech Email: ebenj@joburg.org.za + + +Name Server: demeter.is.co.za +Name Server: jupiter.is.co.za +Name Server: titan.is.co.za +DNSSEC: unsigned +>>> Last update of WHOIS database: 2015-06-03T12:14:13Z <<< + +# WHOIS lookup made at 2015-06-03T12:14:13Z +# -- +# The use of this Whois facility is subject to the following terms and +# conditions. https://registry.net.za/whois_terms +# Copyright (c) ZACR 1995-2015 diff --git a/spec/fixtures/responses/whois.org.za/status_available.expected b/spec/fixtures/responses/whois.org.za/status_available.expected deleted file mode 100644 index 68305cb86..000000000 --- a/spec/fixtures/responses/whois.org.za/status_available.expected +++ /dev/null @@ -1,46 +0,0 @@ -#disclaimer - %s %ERROR{AttributeNotSupported} - - -#domain - %s %ERROR{AttributeNotSupported} - -#domain_id - %s %ERROR{AttributeNotSupported} - - -#status - %s == :available - -#available? - %s == true - -#registered? - %s == false - - -#created_on - %s %ERROR{AttributeNotSupported} - -#updated_on - %s %ERROR{AttributeNotSupported} - -#expires_on - %s %ERROR{AttributeNotSupported} - - -#registrar - %s %ERROR{AttributeNotSupported} - -#registrant_contacts - %s %ERROR{AttributeNotSupported} - -#admin_contacts - %s %ERROR{AttributeNotSupported} - -#technical_contacts - %s %ERROR{AttributeNotSupported} - - -#nameservers - %s %ERROR{AttributeNotSupported} diff --git a/spec/fixtures/responses/whois.org.za/status_available.txt b/spec/fixtures/responses/whois.org.za/status_available.txt deleted file mode 100644 index e1b256f27..000000000 --- a/spec/fixtures/responses/whois.org.za/status_available.txt +++ /dev/null @@ -1 +0,0 @@ -u34jedzcq.org.za: Available diff --git a/spec/fixtures/responses/whois.org.za/status_registered.expected b/spec/fixtures/responses/whois.org.za/status_registered.expected deleted file mode 100644 index d7667d97b..000000000 --- a/spec/fixtures/responses/whois.org.za/status_registered.expected +++ /dev/null @@ -1,46 +0,0 @@ -#disclaimer - %s %ERROR{AttributeNotSupported} - - -#domain - %s %ERROR{AttributeNotSupported} - -#domain_id - %s %ERROR{AttributeNotSupported} - - -#status - %s == :registered - -#available? - %s == false - -#registered? - %s == true - - -#created_on - %s %ERROR{AttributeNotSupported} - -#updated_on - %s %ERROR{AttributeNotSupported} - -#expires_on - %s %ERROR{AttributeNotSupported} - - -#registrar - %s %ERROR{AttributeNotSupported} - -#registrant_contacts - %s %ERROR{AttributeNotSupported} - -#admin_contacts - %s %ERROR{AttributeNotSupported} - -#technical_contacts - %s %ERROR{AttributeNotSupported} - - -#nameservers - %s %ERROR{AttributeNotSupported} diff --git a/spec/fixtures/responses/whois.org.za/status_registered.txt b/spec/fixtures/responses/whois.org.za/status_registered.txt deleted file mode 100644 index d5994bffb..000000000 --- a/spec/fixtures/responses/whois.org.za/status_registered.txt +++ /dev/null @@ -1,3 +0,0 @@ -joburg.org.za: Registered - Please see the following for details: - http://www.org.za/cgi-bin/rwhois?domain=joburg.org.za&format=full diff --git a/spec/whois/record/parser/responses/org-whois.registry.net.za/status_available_spec.rb b/spec/whois/record/parser/responses/org-whois.registry.net.za/status_available_spec.rb new file mode 100644 index 000000000..84857f960 --- /dev/null +++ b/spec/whois/record/parser/responses/org-whois.registry.net.za/status_available_spec.rb @@ -0,0 +1,93 @@ +# 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/org-whois.registry.net.za/status_available.expected +# +# and regenerate the tests with the following rake task +# +# $ rake spec:generate +# + +require 'spec_helper' +require 'whois/record/parser/org-whois.registry.net.za.rb' + +describe Whois::Record::Parser::OrgWhoisRegistryNetZa, "status_available.expected" do + + subject do + file = fixture("responses", "org-whois.registry.net.za/status_available.txt") + part = Whois::Record::Part.new(body: File.read(file)) + described_class.new(part) + end + + describe "#domain" do + it do + expect(subject.domain).to eq(nil) + end + end + describe "#domain_id" do + it do + expect(subject.domain_id).to eq(nil) + end + end + describe "#status" do + it do + expect(subject.status).to eq(:available) + end + end + describe "#available?" do + it do + expect(subject.available?).to eq(true) + end + end + describe "#registered?" do + it do + expect(subject.registered?).to eq(false) + end + end + describe "#created_on" do + it do + expect(subject.created_on).to eq(nil) + end + end + describe "#updated_on" do + it do + expect(subject.updated_on).to eq(nil) + end + end + describe "#expires_on" do + it do + expect(subject.expires_on).to eq(nil) + end + end + describe "#registrar" do + it do + expect(subject.registrar).to eq(nil) + end + end + describe "#registrant_contacts" do + it do + expect(subject.registrant_contacts).to be_a(Array) + expect(subject.registrant_contacts).to eq([]) + end + end + describe "#admin_contacts" do + it do + expect(subject.admin_contacts).to be_a(Array) + expect(subject.admin_contacts).to eq([]) + end + end + describe "#technical_contacts" do + it do + expect(subject.technical_contacts).to be_a(Array) + expect(subject.technical_contacts).to eq([]) + end + end + describe "#nameservers" do + it do + expect(subject.nameservers).to be_a(Array) + expect(subject.nameservers).to eq([]) + end + end +end diff --git a/spec/whois/record/parser/responses/org-whois.registry.net.za/status_registered_spec.rb b/spec/whois/record/parser/responses/org-whois.registry.net.za/status_registered_spec.rb new file mode 100644 index 000000000..beec646c6 --- /dev/null +++ b/spec/whois/record/parser/responses/org-whois.registry.net.za/status_registered_spec.rb @@ -0,0 +1,158 @@ +# 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/org-whois.registry.net.za/status_registered.expected +# +# and regenerate the tests with the following rake task +# +# $ rake spec:generate +# + +require 'spec_helper' +require 'whois/record/parser/org-whois.registry.net.za.rb' + +describe Whois::Record::Parser::OrgWhoisRegistryNetZa, "status_registered.expected" do + + subject do + file = fixture("responses", "org-whois.registry.net.za/status_registered.txt") + part = Whois::Record::Part.new(body: File.read(file)) + described_class.new(part) + end + + describe "#domain" do + it do + expect(subject.domain).to eq("joburg.org.za") + end + end + describe "#domain_id" do + it do + expect(subject.domain_id).to eq("dom_8VP-9999") + end + end + describe "#status" do + it do + expect(subject.status).to eq(:registered) + end + end + describe "#available?" do + it do + expect(subject.available?).to eq(false) + end + end + describe "#registered?" do + it do + expect(subject.registered?).to eq(true) + end + end + describe "#created_on" do + it do + expect(subject.created_on).to be_a(Time) + expect(subject.created_on).to eq(Time.parse("1997-10-03 09:46:34 UTC")) + end + end + describe "#updated_on" do + it do + expect(subject.updated_on).to be_a(Time) + expect(subject.updated_on).to eq(Time.parse("2015-02-05 08:45:51 UTC")) + end + end + describe "#expires_on" do + it do + expect(subject.expires_on).to be_a(Time) + expect(subject.expires_on).to eq(Time.parse("2999-12-31 21:59:59 UTC")) + end + end + describe "#registrar" do + it do + expect(subject.registrar).to be_a(Whois::Record::Registrar) + expect(subject.registrar.id).to eq("9999") + expect(subject.registrar.name).to eq("ZA Central Registry") + expect(subject.registrar.organization).to eq("ZA Central Registry") + expect(subject.registrar.url).to eq(nil) + end + 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].id).to eq("jobuRant") + expect(subject.registrant_contacts[0].name).to eq("City of Johannesburg Metropolitan Municipality") + expect(subject.registrant_contacts[0].organization).to eq("") + expect(subject.registrant_contacts[0].address).to eq("P.O. Box 30757") + expect(subject.registrant_contacts[0].city).to eq("Braamfontein") + expect(subject.registrant_contacts[0].state).to eq("Gauteng") + expect(subject.registrant_contacts[0].zip).to eq("2017") + expect(subject.registrant_contacts[0].country).to eq(nil) + expect(subject.registrant_contacts[0].country_code).to eq("ZA") + expect(subject.registrant_contacts[0].phone).to eq("+27.110186314") + expect(subject.registrant_contacts[0].fax).to eq("+27.113819583") + expect(subject.registrant_contacts[0].email).to eq("joelsonp@joburg.org.za") + expect(subject.registrant_contacts[0].created_on).to eq(nil) + expect(subject.registrant_contacts[0].updated_on).to eq(nil) + end + end + describe "#admin_contacts" do + it do + expect(subject.admin_contacts).to be_a(Array) + expect(subject.admin_contacts).to have(1).items + expect(subject.admin_contacts[0]).to be_a(Whois::Record::Contact) + expect(subject.admin_contacts[0].type).to eq(Whois::Record::Contact::TYPE_ADMINISTRATIVE) + expect(subject.admin_contacts[0].id).to eq("zacr-a0c0379446") + expect(subject.admin_contacts[0].name).to eq("Joelson Pholoha") + expect(subject.admin_contacts[0].organization).to eq("") + expect(subject.admin_contacts[0].address).to eq("Private Bag X10013, Sandton, 2146") + expect(subject.admin_contacts[0].city).to eq("-") + expect(subject.admin_contacts[0].zip).to eq("") + expect(subject.admin_contacts[0].country).to eq(nil) + expect(subject.admin_contacts[0].country_code).to eq("--") + expect(subject.admin_contacts[0].phone).to eq("+27.110186314") + expect(subject.admin_contacts[0].fax).to eq("+27.113819583") + expect(subject.admin_contacts[0].email).to eq("Joelsonp@Joburg.org.za") + expect(subject.admin_contacts[0].created_on).to eq(nil) + expect(subject.admin_contacts[0].updated_on).to eq(nil) + end + end + describe "#technical_contacts" do + it do + expect(subject.technical_contacts).to be_a(Array) + expect(subject.technical_contacts).to have(1).items + expect(subject.technical_contacts[0]).to be_a(Whois::Record::Contact) + expect(subject.technical_contacts[0].type).to eq(Whois::Record::Contact::TYPE_TECHNICAL) + expect(subject.technical_contacts[0].id).to eq("zacr-71fff5bce2") + expect(subject.technical_contacts[0].name).to eq("Eben Jacobs") + expect(subject.technical_contacts[0].organization).to eq("") + expect(subject.technical_contacts[0].address).to eq("Accounts Payable, Vida Building, Kabelweg 57, 1014 BA Amsterdam") + expect(subject.technical_contacts[0].city).to eq("-") + expect(subject.technical_contacts[0].zip).to eq("") + expect(subject.technical_contacts[0].country).to eq(nil) + expect(subject.technical_contacts[0].country_code).to eq("--") + expect(subject.technical_contacts[0].phone).to eq("+27.110186314") + expect(subject.technical_contacts[0].fax).to eq("+27.113819583") + expect(subject.technical_contacts[0].email).to eq("ebenj@joburg.org.za") + expect(subject.technical_contacts[0].created_on).to eq(nil) + expect(subject.technical_contacts[0].updated_on).to eq(nil) + end + end + describe "#nameservers" do + it do + expect(subject.nameservers).to be_a(Array) + expect(subject.nameservers).to have(3).items + expect(subject.nameservers[0]).to be_a(Whois::Record::Nameserver) + expect(subject.nameservers[0].name).to eq("demeter.is.co.za") + expect(subject.nameservers[0].ipv4).to eq(nil) + expect(subject.nameservers[0].ipv6).to eq(nil) + expect(subject.nameservers[1]).to be_a(Whois::Record::Nameserver) + expect(subject.nameservers[1].name).to eq("jupiter.is.co.za") + expect(subject.nameservers[1].ipv4).to eq(nil) + expect(subject.nameservers[1].ipv6).to eq(nil) + expect(subject.nameservers[2]).to be_a(Whois::Record::Nameserver) + expect(subject.nameservers[2].name).to eq("titan.is.co.za") + expect(subject.nameservers[2].ipv4).to eq(nil) + expect(subject.nameservers[2].ipv6).to eq(nil) + end + end +end diff --git a/spec/whois/record/parser/responses/whois.org.za/status_available_spec.rb b/spec/whois/record/parser/responses/whois.org.za/status_available_spec.rb deleted file mode 100644 index e786df6af..000000000 --- a/spec/whois/record/parser/responses/whois.org.za/status_available_spec.rb +++ /dev/null @@ -1,94 +0,0 @@ -# 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.org.za/status_available.expected -# -# and regenerate the tests with the following rake task -# -# $ rake spec:generate -# - -require 'spec_helper' -require 'whois/record/parser/whois.org.za.rb' - -describe Whois::Record::Parser::WhoisOrgZa, "status_available.expected" do - - subject do - file = fixture("responses", "whois.org.za/status_available.txt") - part = Whois::Record::Part.new(body: File.read(file)) - described_class.new(part) - end - - describe "#disclaimer" do - it do - expect { subject.disclaimer }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#domain" do - it do - expect { subject.domain }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#domain_id" do - it do - expect { subject.domain_id }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#status" do - it do - expect(subject.status).to eq(:available) - end - end - describe "#available?" do - it do - expect(subject.available?).to eq(true) - end - end - describe "#registered?" do - it do - expect(subject.registered?).to eq(false) - end - end - describe "#created_on" do - it do - expect { subject.created_on }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#updated_on" do - it do - expect { subject.updated_on }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#expires_on" do - it do - expect { subject.expires_on }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#registrar" do - it do - expect { subject.registrar }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#registrant_contacts" do - it do - expect { subject.registrant_contacts }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#admin_contacts" do - it do - expect { subject.admin_contacts }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#technical_contacts" do - it do - expect { subject.technical_contacts }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#nameservers" do - it do - expect { subject.nameservers }.to raise_error(Whois::AttributeNotSupported) - end - end -end diff --git a/spec/whois/record/parser/responses/whois.org.za/status_registered_spec.rb b/spec/whois/record/parser/responses/whois.org.za/status_registered_spec.rb deleted file mode 100644 index 344ac48be..000000000 --- a/spec/whois/record/parser/responses/whois.org.za/status_registered_spec.rb +++ /dev/null @@ -1,94 +0,0 @@ -# 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.org.za/status_registered.expected -# -# and regenerate the tests with the following rake task -# -# $ rake spec:generate -# - -require 'spec_helper' -require 'whois/record/parser/whois.org.za.rb' - -describe Whois::Record::Parser::WhoisOrgZa, "status_registered.expected" do - - subject do - file = fixture("responses", "whois.org.za/status_registered.txt") - part = Whois::Record::Part.new(body: File.read(file)) - described_class.new(part) - end - - describe "#disclaimer" do - it do - expect { subject.disclaimer }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#domain" do - it do - expect { subject.domain }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#domain_id" do - it do - expect { subject.domain_id }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#status" do - it do - expect(subject.status).to eq(:registered) - end - end - describe "#available?" do - it do - expect(subject.available?).to eq(false) - end - end - describe "#registered?" do - it do - expect(subject.registered?).to eq(true) - end - end - describe "#created_on" do - it do - expect { subject.created_on }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#updated_on" do - it do - expect { subject.updated_on }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#expires_on" do - it do - expect { subject.expires_on }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#registrar" do - it do - expect { subject.registrar }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#registrant_contacts" do - it do - expect { subject.registrant_contacts }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#admin_contacts" do - it do - expect { subject.admin_contacts }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#technical_contacts" do - it do - expect { subject.technical_contacts }.to raise_error(Whois::AttributeNotSupported) - end - end - describe "#nameservers" do - it do - expect { subject.nameservers }.to raise_error(Whois::AttributeNotSupported) - end - end -end