Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test unsupported methods on all specs

  • Loading branch information...
commit 6f3c6a8e3eefa9293fef1811346c390dbd971fde 1 parent d7744b5
@rorymckinley authored
View
18 spec/fixtures/responses/whois.registry.net.za/status_available.expected
@@ -27,3 +27,21 @@
#disclaimer
should: %s == nil
+
+#domain_id
+ should: %s raise_error Whois::PropertyNotSupported
+
+#referral_whois
+ should: %s raise_error Whois::PropertyNotSupported
+
+#referral_url
+ should: %s raise_error Whois::PropertyNotSupported
+
+#updated_on
+ should: %s raise_error Whois::PropertyNotSupported
+
+#admin_contacts
+ should: %s raise_error Whois::PropertyNotSupported
+
+#technical_contacts
+ should: %s raise_error Whois::PropertyNotSupported
View
30 spec/whois/record/parser/responses/whois.registry.net.za/status_available_spec.rb
@@ -71,4 +71,34 @@
subject.disclaimer.should == nil
end
end
+ describe "#domain_id" do
+ it do
+ lambda { subject.domain_id }.should raise_error Whois::PropertyNotSupported
+ end
+ end
+ describe "#referral_whois" do
+ it do
+ lambda { subject.referral_whois }.should raise_error Whois::PropertyNotSupported
+ end
+ end
+ describe "#referral_url" do
+ it do
+ lambda { subject.referral_url }.should raise_error Whois::PropertyNotSupported
+ end
+ end
+ describe "#updated_on" do
+ it do
+ lambda { subject.updated_on }.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
end
Please sign in to comment.
Something went wrong with that request. Please try again.