Permalink
Browse files

whois.domainregistry.ie should support status `Active - LOCKED`

  • Loading branch information...
1 parent 7311d44 commit 2d020acd534a323026c9b2c11c15b2f5fce31548 @weppos committed Sep 25, 2012
View
@@ -3,7 +3,9 @@
## master
-* Dropped support for Ruby 1.8
+* CHANGED: Dropped support for Ruby 1.8
+
+* FIXED: whois.domainregistry.ie should support status `Active - LOCKED`.
## Release 2.7.0
@@ -42,7 +42,7 @@ class WhoisDomainregistryIe < Base
property_supported :status do
case node("status", &:downcase)
- when "active"
+ when /^active/
:registered
when nil
if node("status:pending")
@@ -0,0 +1,8 @@
+#status
+ should: %s == :registered
+
+#available?
+ should: %s == false
+
+#registered?
+ should: %s == true
@@ -0,0 +1,25 @@
+
+% Rights restricted by copyright; http://iedr.ie/index.php/mnudomregs/mnudnssearch/96
+% Do not remove this notice
+
+domain: radical.ie
+descr: RADICAL MEDIA LIMITED
+descr: Body Corporate (Ltd,PLC,Company)
+descr: Discretionary Name
+admin-c: APK491-IEDR
+tech-c: WWA1-IEDR
+registration: 21-April-2009
+renewal: 21-April-2013
+status: Active - LOCKED
+nserver: ns.blacknightsolutions.com
+nserver: ns2.blacknightsolutions.com
+source: IEDR
+
+person: Chris Hussey
+nic-hdl: APK491-IEDR
+source: IEDR
+
+person: Webworld.ie Hostmaster
+nic-hdl: WWA1-IEDR
+source: IEDR
+
@@ -0,0 +1,39 @@
+# 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.domainregistry.ie/property_status_active_locked.expected
+#
+# and regenerate the tests with the following rake task
+#
+# $ rake spec:generate
+#
+
+require 'spec_helper'
+require 'whois/record/parser/whois.domainregistry.ie.rb'
+
+describe Whois::Record::Parser::WhoisDomainregistryIe, "property_status_active_locked.expected" do
+
+ subject do
+ file = fixture("responses", "whois.domainregistry.ie/property_status_active_locked.txt")
+ part = Whois::Record::Part.new(:body => File.read(file))
+ described_class.new(part)
+ end
+
+ describe "#status" do
+ it do
+ subject.status.should == :registered
+ end
+ end
+ describe "#available?" do
+ it do
+ subject.available?.should == false
+ end
+ end
+ describe "#registered?" do
+ it do
+ subject.registered?.should == true
+ end
+ end
+end

0 comments on commit 2d020ac

Please sign in to comment.