Browse files

Added `referral_url` as unsupported property to .ua parser

  • Loading branch information...
1 parent 562f035 commit 28eaa81a1ca6d679ec01af4a8d7c804092b78996 @Uko Uko committed May 29, 2012
View
2 lib/whois/record/parser/whois.ua.rb
@@ -54,6 +54,8 @@ class WhoisUa < Base
property_not_supported :referral_whois
+ property_not_supported :referral_url
+
property_not_supported :created_on
property_supported :updated_on do
View
4 spec/fixtures/responses/whois.ua/status_registered.expected
@@ -7,6 +7,9 @@
#referral_whois
should: %s raise_error(Whois::PropertyNotSupported)
+#referral_url
+ should: %s raise_error(Whois::PropertyNotSupported)
+
#status
should: %s == :registered
@@ -16,7 +19,6 @@
#registered?
should: %s == true
-
#created_on
should: %s raise_error(Whois::PropertyNotSupported)
View
5 spec/whois/record/parser/responses/whois.ua/status_registered_spec.rb
@@ -36,6 +36,11 @@
lambda { @parser.referral_whois }.should raise_error(Whois::PropertyNotSupported)
end
end
+ describe "#referral_url" do
+ it do
+ lambda { @parser.referral_url }.should raise_error(Whois::PropertyNotSupported)
+ end
+ end
describe "#status" do
it do
@parser.status.should == :registered

0 comments on commit 28eaa81

Please sign in to comment.