whois 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. data/.rspec +0 -1
  2. data/Rakefile +25 -1
  3. data/lib/whois/definitions/tlds.rb +1 -1
  4. data/lib/whois/record/parser/base.rb +1 -1
  5. data/lib/whois/record/parser/base_afilias.rb +2 -2
  6. data/lib/whois/record/parser/jobswhois.verisign-grs.com.rb +1 -1
  7. data/lib/whois/record/parser/whois.audns.net.au.rb +81 -16
  8. data/lib/whois/record/parser/whois.biz.rb +1 -1
  9. data/lib/whois/record/parser/whois.cctld.by.rb +107 -0
  10. data/lib/whois/record/parser/whois.centralnic.com.rb +1 -1
  11. data/lib/whois/record/parser/whois.cira.ca.rb +103 -51
  12. data/lib/whois/record/parser/whois.cnnic.cn.rb +1 -1
  13. data/lib/whois/record/parser/whois.crsnic.net.rb +1 -1
  14. data/lib/whois/record/parser/whois.denic.de.rb +1 -1
  15. data/lib/whois/record/parser/whois.dns.hr.rb +2 -2
  16. data/lib/whois/record/parser/whois.domainregistry.ie.rb +77 -21
  17. data/lib/whois/record/parser/whois.domainregistry.my.rb +5 -8
  18. data/lib/whois/record/parser/whois.dreamhost.com.rb +1 -1
  19. data/lib/whois/record/parser/whois.enom.com.rb +124 -0
  20. data/lib/whois/record/parser/whois.fi.rb +1 -1
  21. data/lib/whois/record/parser/whois.iana.org.rb +1 -1
  22. data/lib/whois/record/parser/whois.nc.rb +2 -2
  23. data/lib/whois/record/parser/whois.nic.cc.rb +1 -1
  24. data/lib/whois/record/parser/whois.nic.hu.rb +1 -1
  25. data/lib/whois/record/parser/whois.nic.it.rb +1 -1
  26. data/lib/whois/record/parser/whois.nic.lk.rb +1 -1
  27. data/lib/whois/record/parser/whois.nic.tv.rb +1 -1
  28. data/lib/whois/record/parser/whois.registry.qa.rb +1 -1
  29. data/lib/whois/record/parser/whois.rnids.rs.rb +4 -4
  30. data/lib/whois/record/parser/whois.smallregistry.net.rb +1 -1
  31. data/lib/whois/record/parser/whois.tld.ee.rb +1 -1
  32. data/lib/whois/record/parser/whois.ua.rb +1 -1
  33. data/lib/whois/record/scanners/afilias.rb +60 -0
  34. data/lib/whois/record/scanners/ast.rb +67 -0
  35. data/lib/whois/record/scanners/base.rb +102 -0
  36. data/lib/whois/record/scanners/iana.rb +101 -0
  37. data/lib/whois/record/scanners/verisign.rb +112 -0
  38. data/lib/whois/record/scanners/whois.audns.net.au.rb +39 -0
  39. data/lib/whois/record/scanners/whois.biz.rb +47 -0
  40. data/lib/whois/record/scanners/whois.cctld.by.rb +46 -0
  41. data/lib/whois/record/scanners/whois.centralnic.com.rb +46 -0
  42. data/lib/whois/record/scanners/whois.cira.ca.rb +87 -0
  43. data/lib/whois/record/scanners/whois.cnnic.cn.rb +44 -0
  44. data/lib/whois/record/scanners/whois.denic.de.rb +122 -0
  45. data/lib/whois/record/scanners/whois.dns.hr.rb +39 -0
  46. data/lib/whois/record/scanners/whois.domainregistry.ie.rb +50 -0
  47. data/lib/whois/record/scanners/whois.nc.rb +46 -0
  48. data/lib/whois/record/scanners/whois.nic.hu.rb +178 -0
  49. data/lib/whois/record/scanners/whois.nic.it.rb +104 -0
  50. data/lib/whois/record/scanners/whois.registry.qa.rb +39 -0
  51. data/lib/whois/record/scanners/whois.rnids.rs.rb +75 -0
  52. data/lib/whois/record/scanners/whois.smallregistry.net.rb +61 -0
  53. data/lib/whois/record/scanners/whois.tld.ee.rb +50 -0
  54. data/lib/whois/version.rb +1 -1
  55. data/spec/fixtures/responses/whois.audns.net.au/status_available.expected +33 -0
  56. data/spec/fixtures/responses/whois.audns.net.au/status_registered.expected +53 -0
  57. data/spec/fixtures/responses/whois.cctld.by/status_available.expected +54 -0
  58. data/spec/fixtures/responses/whois.cctld.by/status_available.txt +1 -0
  59. data/spec/fixtures/responses/whois.cctld.by/status_registered.expected +64 -0
  60. data/spec/fixtures/responses/whois.cctld.by/status_registered.txt +11 -0
  61. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_autorenew_grace.expected → property_status_autorenew_grace.expected} +0 -0
  62. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_autorenew_grace.txt → property_status_autorenew_grace.txt} +0 -0
  63. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_available.expected → property_status_available.expected} +0 -0
  64. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_available.txt → property_status_available.txt} +0 -0
  65. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_redemption.expected → property_status_redemption.expected} +0 -0
  66. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_redemption.txt → property_status_redemption.txt} +0 -0
  67. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_registered.expected → property_status_registered.expected} +0 -0
  68. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_registered.txt → property_status_registered.txt} +0 -0
  69. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_tobereleased.expected → property_status_tobereleased.expected} +0 -0
  70. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_tobereleased.txt → property_status_tobereleased.txt} +0 -0
  71. data/spec/fixtures/responses/whois.cira.ca/{schema-2/property_status_unavailable.txt → property_status_unavailable.txt} +0 -0
  72. data/spec/fixtures/responses/whois.cira.ca/status_available.expected +64 -0
  73. data/spec/fixtures/responses/whois.cira.ca/{schema-2/status_available.txt → status_available.txt} +0 -0
  74. data/spec/fixtures/responses/whois.cira.ca/{schema-2/status_invalid.expected → status_invalid.expected} +0 -0
  75. data/spec/fixtures/responses/whois.cira.ca/{schema-2/status_invalid.txt → status_invalid.txt} +0 -0
  76. data/spec/fixtures/responses/whois.cira.ca/status_registered.expected +118 -0
  77. data/spec/fixtures/responses/whois.cira.ca/{schema-2/status_registered.txt → status_registered.txt} +11 -10
  78. data/spec/fixtures/responses/whois.domainregistry.ie/status_available.expected +34 -0
  79. data/spec/fixtures/responses/whois.domainregistry.ie/status_available.txt +2 -4
  80. data/spec/fixtures/responses/whois.domainregistry.ie/status_registered.expected +47 -1
  81. data/spec/fixtures/responses/whois.domainregistry.ie/status_registered.txt +5 -6
  82. data/spec/fixtures/responses/whois.enom.com/property_contacts_almost_empty.expected +31 -0
  83. data/spec/fixtures/responses/whois.enom.com/property_contacts_almost_empty.txt +61 -0
  84. data/spec/fixtures/responses/whois.enom.com/property_contacts_long_address.expected +15 -0
  85. data/spec/fixtures/responses/whois.enom.com/property_contacts_long_address.txt +67 -0
  86. data/spec/fixtures/responses/whois.enom.com/status_registered.expected +97 -0
  87. data/spec/fixtures/responses/whois.enom.com/status_registered.txt +68 -0
  88. data/spec/fixtures/responses/whois.nic.it/status_registered.expected +25 -25
  89. data/spec/whois/record/parser/responses/whois.audns.net.au/status_available_spec.rb +47 -0
  90. data/spec/whois/record/parser/responses/whois.audns.net.au/status_registered_spec.rb +67 -0
  91. data/spec/whois/record/parser/responses/whois.cctld.by/status_available_spec.rb +105 -0
  92. data/spec/whois/record/parser/responses/whois.cctld.by/status_registered_spec.rb +115 -0
  93. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_autorenew_grace_spec.rb → property_status_autorenew_grace_spec.rb} +2 -2
  94. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_available_spec.rb → property_status_available_spec.rb} +2 -2
  95. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_redemption_spec.rb → property_status_redemption_spec.rb} +2 -2
  96. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_registered_spec.rb → property_status_registered_spec.rb} +2 -2
  97. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/property_status_tobereleased_spec.rb → property_status_tobereleased_spec.rb} +2 -2
  98. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/status_available_spec.rb → status_available_spec.rb} +45 -2
  99. data/spec/whois/record/parser/responses/whois.cira.ca/{schema-2/status_invalid_spec.rb → status_invalid_spec.rb} +2 -2
  100. data/spec/whois/record/parser/responses/whois.cira.ca/status_registered_spec.rb +172 -0
  101. data/spec/whois/record/parser/responses/whois.domainregistry.ie/status_available_spec.rb +48 -0
  102. data/spec/whois/record/parser/responses/whois.domainregistry.ie/status_registered_spec.rb +61 -1
  103. data/spec/whois/record/parser/responses/whois.enom.com/property_contacts_almost_empty_spec.rb +60 -0
  104. data/spec/whois/record/parser/responses/whois.enom.com/property_contacts_long_address_spec.rb +42 -0
  105. data/spec/whois/record/parser/responses/whois.enom.com/status_registered_spec.rb +140 -0
  106. data/spec/whois/record/parser/responses/whois.nic.it/status_registered_spec.rb +25 -25
  107. data/whois.gemspec +8 -7
  108. metadata +101 -61
  109. data/lib/whois/record/parser/scanners/afilias.rb +0 -66
  110. data/lib/whois/record/parser/scanners/ast.rb +0 -69
  111. data/lib/whois/record/parser/scanners/base.rb +0 -85
  112. data/lib/whois/record/parser/scanners/iana.rb +0 -108
  113. data/lib/whois/record/parser/scanners/verisign.rb +0 -122
  114. data/lib/whois/record/parser/scanners/whois.biz.rb +0 -49
  115. data/lib/whois/record/parser/scanners/whois.centralnic.com.rb +0 -52
  116. data/lib/whois/record/parser/scanners/whois.cnnic.cn.rb +0 -46
  117. data/lib/whois/record/parser/scanners/whois.denic.de.rb +0 -124
  118. data/lib/whois/record/parser/scanners/whois.dns.hr.rb +0 -41
  119. data/lib/whois/record/parser/scanners/whois.nc.rb +0 -48
  120. data/lib/whois/record/parser/scanners/whois.nic.hu.rb +0 -180
  121. data/lib/whois/record/parser/scanners/whois.nic.it.rb +0 -111
  122. data/lib/whois/record/parser/scanners/whois.registry.qa.rb +0 -41
  123. data/lib/whois/record/parser/scanners/whois.rnids.rs.rb +0 -78
  124. data/lib/whois/record/parser/scanners/whois.smallregistry.net.rb +0 -62
  125. data/lib/whois/record/parser/scanners/whois.tld.ee.rb +0 -52
  126. data/spec/fixtures/responses/whois.cira.ca/schema-1/status_available.expected +0 -27
  127. data/spec/fixtures/responses/whois.cira.ca/schema-1/status_available.txt +0 -9
  128. data/spec/fixtures/responses/whois.cira.ca/schema-1/status_registered.expected +0 -46
  129. data/spec/fixtures/responses/whois.cira.ca/schema-1/status_registered.txt +0 -47
  130. data/spec/fixtures/responses/whois.cira.ca/schema-2/status_available.expected +0 -34
  131. data/spec/fixtures/responses/whois.cira.ca/schema-2/status_registered.expected +0 -48
  132. data/spec/whois/record/parser/responses/whois.cira.ca/schema-1/status_available_spec.rb +0 -65
  133. data/spec/whois/record/parser/responses/whois.cira.ca/schema-1/status_registered_spec.rb +0 -84
  134. data/spec/whois/record/parser/responses/whois.cira.ca/schema-2/status_registered_spec.rb +0 -89
@@ -0,0 +1,42 @@
1
+ # encoding: utf-8
2
+
3
+ # This file is autogenerated. Do not edit it manually.
4
+ # If you want change the content of this file, edit
5
+ #
6
+ # /spec/fixtures/responses/whois.enom.com/property_contacts_long_address.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake spec:generate
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.enom.com.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisEnomCom, "property_contacts_long_address.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.enom.com/property_contacts_long_address.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ describe "#technical_contacts" do
25
+ it do
26
+ @parser.technical_contacts.should be_a(Array)
27
+ @parser.technical_contacts.should have(1).items
28
+ @parser.technical_contacts[0].should be_a(Whois::Record::Contact)
29
+ @parser.technical_contacts[0].type.should == Whois::Record::Contact::TYPE_TECHNICAL
30
+ @parser.technical_contacts[0].name.should == "Matt Barrie"
31
+ @parser.technical_contacts[0].organization.should == "Freelancer Technology Pty Limited"
32
+ @parser.technical_contacts[0].address.should == "Suite 501\n35 Lime Street"
33
+ @parser.technical_contacts[0].city.should == "Sydney"
34
+ @parser.technical_contacts[0].zip.should == "2000"
35
+ @parser.technical_contacts[0].state.should == "NSW"
36
+ @parser.technical_contacts[0].country_code.should == "AU"
37
+ @parser.technical_contacts[0].phone.should == "+61.292793305"
38
+ @parser.technical_contacts[0].fax.should == "+61.292793305"
39
+ @parser.technical_contacts[0].email.should == "noc@freelancer.com"
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,140 @@
1
+ # encoding: utf-8
2
+
3
+ # This file is autogenerated. Do not edit it manually.
4
+ # If you want change the content of this file, edit
5
+ #
6
+ # /spec/fixtures/responses/whois.enom.com/status_registered.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake spec:generate
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.enom.com.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisEnomCom, "status_registered.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.enom.com/status_registered.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ describe "#status" do
25
+ it do
26
+ lambda { @parser.status }.should raise_error(Whois::PropertyNotSupported)
27
+ end
28
+ end
29
+ describe "#available?" do
30
+ it do
31
+ @parser.available?.should == false
32
+ end
33
+ end
34
+ describe "#registered?" do
35
+ it do
36
+ @parser.registered?.should == true
37
+ end
38
+ end
39
+ describe "#created_on" do
40
+ it do
41
+ @parser.created_on.should be_a(Time)
42
+ @parser.created_on.should == Time.parse("2004-06-16 18:07:25")
43
+ end
44
+ end
45
+ describe "#updated_on" do
46
+ it do
47
+ lambda { @parser.updated_on }.should raise_error(Whois::PropertyNotSupported)
48
+ end
49
+ end
50
+ describe "#expires_on" do
51
+ it do
52
+ @parser.expires_on.should be_a(Time)
53
+ @parser.expires_on.should == Time.parse("2015-06-16 00:00:00")
54
+ end
55
+ end
56
+ describe "#registrar" do
57
+ it do
58
+ @parser.registrar.should be_a(Whois::Record::Registrar)
59
+ @parser.registrar.id.should == nil
60
+ @parser.registrar.name.should == "eNom Inc."
61
+ @parser.registrar.url.should == "http://www.enom.com/"
62
+ end
63
+ end
64
+ describe "#registrant_contacts" do
65
+ it do
66
+ @parser.registrant_contacts.should be_a(Array)
67
+ @parser.registrant_contacts.should have(1).items
68
+ @parser.registrant_contacts[0].should be_a(Whois::Record::Contact)
69
+ @parser.registrant_contacts[0].type.should == Whois::Record::Contact::TYPE_REGISTRANT
70
+ @parser.registrant_contacts[0].name.should == "Host Master"
71
+ @parser.registrant_contacts[0].organization.should == "AdBrite, Inc."
72
+ @parser.registrant_contacts[0].address.should == "731 Market Street, Suite 500"
73
+ @parser.registrant_contacts[0].city.should == "San Francisco"
74
+ @parser.registrant_contacts[0].zip.should == "94103"
75
+ @parser.registrant_contacts[0].state.should == "CA"
76
+ @parser.registrant_contacts[0].country_code.should == "US"
77
+ @parser.registrant_contacts[0].phone.should == ""
78
+ @parser.registrant_contacts[0].fax.should == ""
79
+ @parser.registrant_contacts[0].email.should == ""
80
+ end
81
+ end
82
+ describe "#admin_contacts" do
83
+ it do
84
+ @parser.admin_contacts.should be_a(Array)
85
+ @parser.admin_contacts.should have(1).items
86
+ @parser.admin_contacts[0].should be_a(Whois::Record::Contact)
87
+ @parser.admin_contacts[0].type.should == Whois::Record::Contact::TYPE_ADMIN
88
+ @parser.admin_contacts[0].name.should == "Host Master"
89
+ @parser.admin_contacts[0].organization.should == "AdBrite, Inc."
90
+ @parser.admin_contacts[0].address.should == "731 Market Street, Suite 500"
91
+ @parser.admin_contacts[0].city.should == "San Francisco"
92
+ @parser.admin_contacts[0].zip.should == "94103"
93
+ @parser.admin_contacts[0].state.should == "CA"
94
+ @parser.admin_contacts[0].country_code.should == "US"
95
+ @parser.admin_contacts[0].phone.should == "4159750916"
96
+ @parser.admin_contacts[0].fax.should == ""
97
+ @parser.admin_contacts[0].email.should == "hostmaster@adbrite.com"
98
+ end
99
+ end
100
+ describe "#technical_contacts" do
101
+ it do
102
+ @parser.technical_contacts.should be_a(Array)
103
+ @parser.technical_contacts.should have(1).items
104
+ @parser.technical_contacts[0].should be_a(Whois::Record::Contact)
105
+ @parser.technical_contacts[0].type.should == Whois::Record::Contact::TYPE_TECHNICAL
106
+ @parser.technical_contacts[0].name.should == "Host Master"
107
+ @parser.technical_contacts[0].organization.should == "AdBrite, Inc."
108
+ @parser.technical_contacts[0].address.should == "731 Market Street, Suite 500"
109
+ @parser.technical_contacts[0].city.should == "San Francisco"
110
+ @parser.technical_contacts[0].zip.should == "94103"
111
+ @parser.technical_contacts[0].state.should == "CA"
112
+ @parser.technical_contacts[0].country_code.should == "US"
113
+ @parser.technical_contacts[0].phone.should == "4159750916"
114
+ @parser.technical_contacts[0].fax.should == ""
115
+ @parser.technical_contacts[0].email.should == "hostmaster@adbrite.com"
116
+ end
117
+ end
118
+ describe "#nameservers" do
119
+ it do
120
+ @parser.nameservers.should be_a(Array)
121
+ @parser.nameservers.should have(8).items
122
+ @parser.nameservers[0].should be_a(Whois::Record::Nameserver)
123
+ @parser.nameservers[0].name.should == "asia3.akam.net"
124
+ @parser.nameservers[1].should be_a(Whois::Record::Nameserver)
125
+ @parser.nameservers[1].name.should == "aus1.akam.net"
126
+ @parser.nameservers[2].should be_a(Whois::Record::Nameserver)
127
+ @parser.nameservers[2].name.should == "eur1.akam.net"
128
+ @parser.nameservers[3].should be_a(Whois::Record::Nameserver)
129
+ @parser.nameservers[3].name.should == "eur2.akam.net"
130
+ @parser.nameservers[4].should be_a(Whois::Record::Nameserver)
131
+ @parser.nameservers[4].name.should == "ns1-105.akam.net"
132
+ @parser.nameservers[5].should be_a(Whois::Record::Nameserver)
133
+ @parser.nameservers[5].name.should == "ns1-232.akam.net"
134
+ @parser.nameservers[6].should be_a(Whois::Record::Nameserver)
135
+ @parser.nameservers[6].name.should == "usc2.akam.net"
136
+ @parser.nameservers[7].should be_a(Whois::Record::Nameserver)
137
+ @parser.nameservers[7].name.should == "usw6.akam.net"
138
+ end
139
+ end
140
+ end
@@ -92,17 +92,17 @@ describe Whois::Record::Parser::WhoisNicIt, "status_registered.expected" do
92
92
  @parser.registrant_contacts.should be_a(Array)
93
93
  @parser.registrant_contacts.should have(1).items
94
94
  @parser.registrant_contacts[0].should be_a(Whois::Record::Contact)
95
- @parser.registrant_contacts[0].type.should == Whois::Record::Contact::TYPE_REGISTRANT
96
- @parser.registrant_contacts[0].id.should == "GOOG175-ITNIC"
97
- @parser.registrant_contacts[0].name.should == "Google Ireland Holdings"
98
- @parser.registrant_contacts[0].organization.should == nil
99
- @parser.registrant_contacts[0].address.should == "30 Herbert Street"
100
- @parser.registrant_contacts[0].city.should == "Dublin"
101
- @parser.registrant_contacts[0].zip.should == "2"
102
- @parser.registrant_contacts[0].state.should == "IE"
103
- @parser.registrant_contacts[0].country_code.should == "IE"
104
- @parser.registrant_contacts[0].created_on.should == Time.parse("2008-11-27 16:47:22")
105
- @parser.registrant_contacts[0].updated_on.should == Time.parse("2008-11-27 16:47:22")
95
+ @parser.registrant_contacts[0].type.should == Whois::Record::Contact::TYPE_REGISTRANT
96
+ @parser.registrant_contacts[0].id.should == "GOOG175-ITNIC"
97
+ @parser.registrant_contacts[0].name.should == "Google Ireland Holdings"
98
+ @parser.registrant_contacts[0].organization.should == nil
99
+ @parser.registrant_contacts[0].address.should == "30 Herbert Street"
100
+ @parser.registrant_contacts[0].city.should == "Dublin"
101
+ @parser.registrant_contacts[0].zip.should == "2"
102
+ @parser.registrant_contacts[0].state.should == "IE"
103
+ @parser.registrant_contacts[0].country_code.should == "IE"
104
+ @parser.registrant_contacts[0].created_on.should == Time.parse("2008-11-27 16:47:22")
105
+ @parser.registrant_contacts[0].updated_on.should == Time.parse("2008-11-27 16:47:22")
106
106
  end
107
107
  end
108
108
  describe "#admin_contacts" do
@@ -110,17 +110,17 @@ describe Whois::Record::Parser::WhoisNicIt, "status_registered.expected" do
110
110
  @parser.admin_contacts.should be_a(Array)
111
111
  @parser.admin_contacts.should have(1).items
112
112
  @parser.admin_contacts[0].should be_a(Whois::Record::Contact)
113
- @parser.admin_contacts[0].type.should == Whois::Record::Contact::TYPE_ADMIN
114
- @parser.admin_contacts[0].id.should == "TT4277-ITNIC"
115
- @parser.admin_contacts[0].name.should == "Tsao Tu"
116
- @parser.admin_contacts[0].organization.should == "Tu Tsao"
117
- @parser.admin_contacts[0].address.should == "30 Herbert Street"
118
- @parser.admin_contacts[0].city.should == "Dublin"
119
- @parser.admin_contacts[0].zip.should == "2"
120
- @parser.admin_contacts[0].state.should == "IE"
121
- @parser.admin_contacts[0].country_code.should == "IE"
122
- @parser.admin_contacts[0].created_on.should == Time.parse("2008-11-27 16:47:22")
123
- @parser.admin_contacts[0].updated_on.should == Time.parse("2008-11-27 16:47:22")
113
+ @parser.admin_contacts[0].type.should == Whois::Record::Contact::TYPE_ADMIN
114
+ @parser.admin_contacts[0].id.should == "TT4277-ITNIC"
115
+ @parser.admin_contacts[0].name.should == "Tsao Tu"
116
+ @parser.admin_contacts[0].organization.should == "Tu Tsao"
117
+ @parser.admin_contacts[0].address.should == "30 Herbert Street"
118
+ @parser.admin_contacts[0].city.should == "Dublin"
119
+ @parser.admin_contacts[0].zip.should == "2"
120
+ @parser.admin_contacts[0].state.should == "IE"
121
+ @parser.admin_contacts[0].country_code.should == "IE"
122
+ @parser.admin_contacts[0].created_on.should == Time.parse("2008-11-27 16:47:22")
123
+ @parser.admin_contacts[0].updated_on.should == Time.parse("2008-11-27 16:47:22")
124
124
  end
125
125
  end
126
126
  describe "#technical_contacts" do
@@ -128,9 +128,9 @@ describe Whois::Record::Parser::WhoisNicIt, "status_registered.expected" do
128
128
  @parser.technical_contacts.should be_a(Array)
129
129
  @parser.technical_contacts.should have(1).items
130
130
  @parser.technical_contacts[0].should be_a(Whois::Record::Contact)
131
- @parser.technical_contacts[0].type.should == Whois::Record::Contact::TYPE_TECHNICAL
132
- @parser.technical_contacts[0].id.should == "TS7016-ITNIC"
133
- @parser.technical_contacts[0].name.should == "Technical Services"
131
+ @parser.technical_contacts[0].type.should == Whois::Record::Contact::TYPE_TECHNICAL
132
+ @parser.technical_contacts[0].id.should == "TS7016-ITNIC"
133
+ @parser.technical_contacts[0].name.should == "Technical Services"
134
134
  end
135
135
  end
136
136
  describe "#nameservers" do