Permalink
Browse files

Remove spec used for scaffolding

  • Loading branch information...
1 parent f9cbefd commit 5d7f9e98d2571cb05aabeab6f507b0804fdcaef4 @rorymckinley committed Oct 27, 2012
Showing with 0 additions and 89 deletions.
  1. +0 −89 spec/whois/record/scanners/whois.registry.net.za.rb
@@ -1,89 +0,0 @@
-# encoding: utf-8
-
-require "spec_helper"
-require File.join(SPEC_ROOT, "..", "lib", "whois", "record", "scanners", "whois.registry.net.za")
-# require 'whois/record/scanners/whois.registry.net.za.rb'
-
-describe Whois::Record::Scanners::WhoisRegistryNetZa do
- describe "registered domain" do
- subject do
- file = fixture("responses", "whois.registry.net.za/status_registered.txt")
- Whois::Record::Scanners::WhoisRegistryNetZa.new(IO.read(file))
- end
-
- it "exists!" do
- described_class.should < Whois::Record::Scanners::Base
- end
-
- it "parses the availability" do
- subject.parse[:available].should be_nil
- end
-
- it "parses the domain name" do
- subject.parse[:domain_name].should eq "broccoliwafflesareawesome.co.za"
- end
-
- it "parses out the registrant's name" do
- subject.parse[:registrant_name].should eq "Fred Flintstone"
- end
-
- it "parses out the registrant's email" do
- subject.parse[:registrant_email].should eq "someguy@somedomain.co.za"
- end
-
- it "parses out the registrant's telephone number" do
- subject.parse[:registrant_telephone].should eq "+27.219000000"
- end
-
- it "parses out the registrant's fax number" do
- subject.parse[:registrant_fax].should eq "+27.219001000"
- end
-
- it "parses out the registrant's address" do
- subject.parse[:registrant_address].should eq "30 Frazzita Business Park Durbanville Cape Town ZA 7550"
- end
-
- it "parses out the registrar's name" do
- subject.parse[:registrar_name].should eq "EPAG Domainservices"
- end
-
- it "parses out the registrar's id" do
- subject.parse[:registrar_id].should eq "epag"
- end
-
- it "parses out the registration date" do
- subject.parse[:registration_date].should eq "2012-03-27"
- end
-
- it "parses out the renewal date" do
- subject.parse[:renewal_date].should eq "2013-03-27"
- end
-
- it "parses out any status values" do
- subject.parse[:status].should eq ["ok", "autorenew"]
- end
-
- it "parses out pending timer events" do
- subject.parse[:pending_timer_events].should eq "None"
- end
-
- it "parses out the nameservers" do
- subject.parse[:nameservers].should eq ["ns2.host-h.net","ns1.dns-h.com","ns1.host-h.net"]
- end
-
- it "parses out the disclaimer" do
- subject.parse[:disclaimer].should include "https://registry.net.za/whois_terms"
- end
- end
-
- describe "available domain" do
- subject do
- file = fixture("responses", "whois.registry.net.za/status_available.txt")
- Whois::Record::Scanners::WhoisRegistryNetZa.new(IO.read(file))
- end
-
- it "parses the availability" do
- subject.parse[:available].should be_true
- end
- end
-end

0 comments on commit 5d7f9e9

Please sign in to comment.