Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove usage of _variables

  • Loading branch information...
commit 63588f28e292434d9ff3b33636ef19ac55089e72 1 parent 7a89ae5
@weppos authored
Showing with 118 additions and 98 deletions.
  1. +4 −4 spec/fixtures/responses/whois.afilias.info/status_registered.expected
  2. +4 −4 spec/fixtures/responses/whois.biz/status_registered.expected
  3. +6 −3 spec/fixtures/responses/whois.educause.edu/status_registered.expected
  4. +8 −4 spec/fixtures/responses/whois.nic-se.se/property_nameservers_with_ip.expected
  5. +4 −4 spec/fixtures/responses/whois.nic-se.se/status_registered.expected
  6. +6 −2 spec/fixtures/responses/whois.nic.ch/property_nameservers_with_ip.expected
  7. +4 −4 spec/fixtures/responses/whois.nic.ch/status_registered.expected
  8. +4 −2 spec/fixtures/responses/whois.nic.mx/property_nameservers_with_ip.expected
  9. +5 −4 spec/fixtures/responses/whois.nic.mx/status_registered.expected
  10. +5 −4 spec/fixtures/responses/whois.registry.in/status_registered.expected
  11. +6 −3 spec/fixtures/responses/whois.tcinet.ru/ru/property_nameservers_with_ip.expected
  12. +0 −16 spec/support/example/parser_example_group.rb
  13. +4 −4 spec/whois/record/parser/responses/whois.afilias.info/status_registered_spec.rb
  14. +4 −4 spec/whois/record/parser/responses/whois.biz/status_registered_spec.rb
  15. +6 −3 spec/whois/record/parser/responses/whois.educause.edu/status_registered_spec.rb
  16. +8 −4 spec/whois/record/parser/responses/whois.nic-se.se/property_nameservers_with_ip_spec.rb
  17. +4 −4 spec/whois/record/parser/responses/whois.nic-se.se/status_registered_spec.rb
  18. +12 −8 spec/whois/record/parser/responses/whois.nic.ch/property_nameservers_with_ip_spec.rb
  19. +4 −4 spec/whois/record/parser/responses/whois.nic.ch/status_registered_spec.rb
  20. +4 −2 spec/whois/record/parser/responses/whois.nic.mx/property_nameservers_with_ip_spec.rb
  21. +5 −4 spec/whois/record/parser/responses/whois.nic.mx/status_registered_spec.rb
  22. +5 −4 spec/whois/record/parser/responses/whois.registry.in/status_registered_spec.rb
  23. +6 −3 spec/whois/record/parser/responses/whois.tcinet.ru/ru/property_nameservers_with_ip_spec.rb
View
8 spec/fixtures/responses/whois.afilias.info/status_registered.expected
@@ -101,10 +101,10 @@
should: %s CLASS(array)
should: %s SIZE(4)
should: %s[0] CLASS(nameserver)
- should: %s[0] == _nameserver.new(:name => "ns1.google.com")
+ should: %s[0].name == "ns1.google.com"
should: %s[1] CLASS(nameserver)
- should: %s[1] == _nameserver.new(:name => "ns2.google.com")
+ should: %s[1].name == "ns2.google.com"
should: %s[2] CLASS(nameserver)
- should: %s[2] == _nameserver.new(:name => "ns3.google.com")
+ should: %s[2].name == "ns3.google.com"
should: %s[3] CLASS(nameserver)
- should: %s[3] == _nameserver.new(:name => "ns4.google.com")
+ should: %s[3].name == "ns4.google.com"
View
8 spec/fixtures/responses/whois.biz/status_registered.expected
@@ -60,10 +60,10 @@
should: %s CLASS(array)
should: %s SIZE(4)
should: %s[0] CLASS(nameserver)
- should: %s[0] == _nameserver.new(:name => "ns1.google.com")
+ should: %s[0].name == "ns1.google.com"
should: %s[1] CLASS(nameserver)
- should: %s[1] == _nameserver.new(:name => "ns2.google.com")
+ should: %s[1].name == "ns2.google.com"
should: %s[2] CLASS(nameserver)
- should: %s[2] == _nameserver.new(:name => "ns3.google.com")
+ should: %s[2].name == "ns3.google.com"
should: %s[3] CLASS(nameserver)
- should: %s[3] == _nameserver.new(:name => "ns4.google.com")
+ should: %s[3].name == "ns4.google.com"
View
9 spec/fixtures/responses/whois.educause.edu/status_registered.expected
@@ -101,8 +101,11 @@
should: %s CLASS(array)
should: %s SIZE(3)
should: %s[0] CLASS(nameserver)
- should: %s[0] == _nameserver.new(:name => "ns3.educause.edu", :ipv4 => "198.59.61.50")
+ should: %s[0].name == "ns3.educause.edu"
+ should: %s[0].ipv4 == "198.59.61.50"
should: %s[1] CLASS(nameserver)
- should: %s[1] == _nameserver.new(:name => "ns4.educause.edu", :ipv4 => "192.52.179.69")
+ should: %s[1].name == "ns4.educause.edu"
+ should: %s[1].ipv4 == "192.52.179.69"
should: %s[2] CLASS(nameserver)
- should: %s[2] == _nameserver.new(:name => "ns5.educause.edu", :ipv4 => "198.59.61.50")
+ should: %s[2].name == "ns5.educause.edu"
+ should: %s[2].ipv4 == "198.59.61.50"
View
12 spec/fixtures/responses/whois.nic-se.se/property_nameservers_with_ip.expected
@@ -2,10 +2,14 @@
should: %s CLASS(array)
should: %s SIZE(4)
should: %s[0] CLASS(nameserver)
- should: %s[0] == _nameserver.new(:name => "ns2.loopia.se", :ipv4 => "93.188.0.21")
+ should: %s[0].name == "ns2.loopia.se"
+ should: %s[0].ipv4 == "93.188.0.21"
should: %s[1] CLASS(nameserver)
- should: %s[1] == _nameserver.new(:name => "ns4.loopia.se", :ipv4 => "93.188.0.20")
+ should: %s[1].name == "ns4.loopia.se"
+ should: %s[1].ipv4 == "93.188.0.20"
should: %s[2] CLASS(nameserver)
- should: %s[2] == _nameserver.new(:name => "ns3.loopia.se", :ipv4 => "93.188.0.21")
+ should: %s[2].name == "ns3.loopia.se"
+ should: %s[2].ipv4 == "93.188.0.21"
should: %s[3] CLASS(nameserver)
- should: %s[3] == _nameserver.new(:name => "ns1.loopia.se", :ipv4 => "93.188.0.20")
+ should: %s[3].name == "ns1.loopia.se"
+ should: %s[3].ipv4 == "93.188.0.20"
View
8 spec/fixtures/responses/whois.nic-se.se/status_registered.expected
@@ -25,10 +25,10 @@
should: %s CLASS(array)
should: %s SIZE(4)
should: %s[0] CLASS(nameserver)
- should: %s[0] == _nameserver.new(:name => "ns1.google.com")
+ should: %s[0].name == "ns1.google.com"
should: %s[1] CLASS(nameserver)
- should: %s[1] == _nameserver.new(:name => "ns2.google.com")
+ should: %s[1].name == "ns2.google.com"
should: %s[2] CLASS(nameserver)
- should: %s[2] == _nameserver.new(:name => "ns3.google.com")
+ should: %s[2].name == "ns3.google.com"
should: %s[3] CLASS(nameserver)
- should: %s[3] == _nameserver.new(:name => "ns4.google.com")
+ should: %s[3].name == "ns4.google.com"
View
8 spec/fixtures/responses/whois.nic.ch/property_nameservers_with_ip.expected
@@ -2,6 +2,10 @@
should: %s CLASS(array)
should: %s SIZE(2)
should: %s[0] CLASS(nameserver)
- should: %s[0] == _nameserver.new(:name => "ns1.citrin.ch", :ipv4 => "193.247.72.8", :ipv6 => "2001:8a8:21:5::11")
+ should: %s[0].name == "ns1.citrin.ch"
+ should: %s[0].ipv4 == "193.247.72.8"
+ should: %s[0].ipv6 == "2001:8a8:21:5::11"
should: %s[1] CLASS(nameserver)
- should: %s[1] == _nameserver.new(:name => "ns2.citrin.ch", :ipv4 => "62.12.149.3", :ipv6 => "2001:8a8:21:5::12")
+ should: %s[1].name == "ns2.citrin.ch"
+ should: %s[1].ipv4 == "62.12.149.3"
+ should: %s[1].ipv6 == "2001:8a8:21:5::12"
View
8 spec/fixtures/responses/whois.nic.ch/status_registered.expected
@@ -22,10 +22,10 @@
should: %s CLASS(array)
should: %s SIZE(4)
should: %s[0] CLASS(nameserver)
- should: %s[0] == _nameserver.new(:name => "ns1.google.com")
+ should: %s[0].name == "ns1.google.com"
should: %s[1] CLASS(nameserver)
- should: %s[1] == _nameserver.new(:name => "ns2.google.com")
+ should: %s[1].name == "ns2.google.com"
should: %s[2] CLASS(nameserver)
- should: %s[2] == _nameserver.new(:name => "ns3.google.com")
+ should: %s[2].name == "ns3.google.com"
should: %s[3] CLASS(nameserver)
- should: %s[3] == _nameserver.new(:name => "ns4.google.com")
+ should: %s[3].name == "ns4.google.com"
View
6 spec/fixtures/responses/whois.nic.mx/property_nameservers_with_ip.expected
@@ -2,6 +2,8 @@
should: %s CLASS(array)
should: %s SIZE(2)
should: %s[0] CLASS(nameserver)
- should: %s[0] == _nameserver.new(:name => "dns1.mpsnet.net.mx", :ipv4 => "200.4.48.15")
+ should: %s[0].name == "dns1.mpsnet.net.mx"
+ should: %s[0].ipv4 == "200.4.48.15"
should: %s[1] CLASS(nameserver)
- should: %s[1] == _nameserver.new(:name => "dns2.mpsnet.net.mx", :ipv4 => "200.4.48.16")
+ should: %s[1].name == "dns2.mpsnet.net.mx"
+ should: %s[1].ipv4 == "200.4.48.16"
View
9 spec/fixtures/responses/whois.nic.mx/status_registered.expected
@@ -21,10 +21,11 @@
should: %s CLASS(array)
should: %s SIZE(4)
should: %s[0] CLASS(nameserver)
- should: %s[0] == _nameserver.new(:name => "ns1.google.com")
+ should: %s[0] CLASS(nameserver)
+ should: %s[0].name == "ns1.google.com"
should: %s[1] CLASS(nameserver)
- should: %s[1] == _nameserver.new(:name => "ns2.google.com")
+ should: %s[1].name == "ns2.google.com"
should: %s[2] CLASS(nameserver)
- should: %s[2] == _nameserver.new(:name => "ns3.google.com")
+ should: %s[2].name == "ns3.google.com"
should: %s[3] CLASS(nameserver)
- should: %s[3] == _nameserver.new(:name => "ns4.google.com")
+ should: %s[3].name == "ns4.google.com"
View
9 spec/fixtures/responses/whois.registry.in/status_registered.expected
@@ -97,10 +97,11 @@
should: %s CLASS(array)
should: %s SIZE(4)
should: %s[0] CLASS(nameserver)
- should: %s[0] == _nameserver.new(:name => "ns1.google.com")
+ should: %s[0] CLASS(nameserver)
+ should: %s[0].name == "ns1.google.com"
should: %s[1] CLASS(nameserver)
- should: %s[1] == _nameserver.new(:name => "ns2.google.com")
+ should: %s[1].name == "ns2.google.com"
should: %s[2] CLASS(nameserver)
- should: %s[2] == _nameserver.new(:name => "ns3.google.com")
+ should: %s[2].name == "ns3.google.com"
should: %s[3] CLASS(nameserver)
- should: %s[3] == _nameserver.new(:name => "ns4.google.com")
+ should: %s[3].name == "ns4.google.com"
View
9 spec/fixtures/responses/whois.tcinet.ru/ru/property_nameservers_with_ip.expected
@@ -2,8 +2,11 @@
should: %s CLASS(array)
should: %s SIZE(3)
should: %s[0] CLASS(nameserver)
- should: %s[0] == _nameserver.new(:name => "ns.masterhost.ru", :ipv4 => "217.16.20.30")
+ should: %s[0].name == "ns.masterhost.ru"
+ should: %s[0].ipv4 == "217.16.20.30"
should: %s[1] CLASS(nameserver)
- should: %s[1] == _nameserver.new(:name => "ns1.masterhost.ru", :ipv4 => "217.16.16.30")
+ should: %s[1].name == "ns1.masterhost.ru"
+ should: %s[1].ipv4 == "217.16.16.30"
should: %s[2] CLASS(nameserver)
- should: %s[2] == _nameserver.new(:name => "ns2.masterhost.ru", :ipv4 => "217.16.22.30")
+ should: %s[2].name == "ns2.masterhost.ru"
+ should: %s[2].ipv4 == "217.16.22.30"
View
16 spec/support/example/parser_example_group.rb
@@ -4,22 +4,6 @@ def load_part(path)
Whois::Record::Part.new(File.read(fixture("responses", @host.to_s, @suffix.to_s, @schema.to_s, path)), @host)
end
- def _part
- Whois::Record::Part
- end
-
- def _registrar
- Whois::Record::Registrar
- end
-
- def _contact
- Whois::Record::Contact
- end
-
- def _nameserver
- Whois::Record::Nameserver
- end
-
end
RSpec::Matchers.define :cache_property do |property|
View
8 spec/whois/record/parser/responses/whois.afilias.info/status_registered_spec.rb
@@ -149,13 +149,13 @@
@parser.nameservers.should be_a(Array)
@parser.nameservers.should have(4).items
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].should == _nameserver.new(:name => "ns1.google.com")
+ @parser.nameservers[0].name.should == "ns1.google.com"
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].should == _nameserver.new(:name => "ns2.google.com")
+ @parser.nameservers[1].name.should == "ns2.google.com"
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[2].should == _nameserver.new(:name => "ns3.google.com")
+ @parser.nameservers[2].name.should == "ns3.google.com"
@parser.nameservers[3].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[3].should == _nameserver.new(:name => "ns4.google.com")
+ @parser.nameservers[3].name.should == "ns4.google.com"
end
end
end
View
8 spec/whois/record/parser/responses/whois.biz/status_registered_spec.rb
@@ -107,13 +107,13 @@
@parser.nameservers.should be_a(Array)
@parser.nameservers.should have(4).items
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].should == _nameserver.new(:name => "ns1.google.com")
+ @parser.nameservers[0].name.should == "ns1.google.com"
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].should == _nameserver.new(:name => "ns2.google.com")
+ @parser.nameservers[1].name.should == "ns2.google.com"
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[2].should == _nameserver.new(:name => "ns3.google.com")
+ @parser.nameservers[2].name.should == "ns3.google.com"
@parser.nameservers[3].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[3].should == _nameserver.new(:name => "ns4.google.com")
+ @parser.nameservers[3].name.should == "ns4.google.com"
end
end
end
View
9 spec/whois/record/parser/responses/whois.educause.edu/status_registered_spec.rb
@@ -149,11 +149,14 @@
@parser.nameservers.should be_a(Array)
@parser.nameservers.should have(3).items
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].should == _nameserver.new(:name => "ns3.educause.edu", :ipv4 => "198.59.61.50")
+ @parser.nameservers[0].name.should == "ns3.educause.edu"
+ @parser.nameservers[0].ipv4.should == "198.59.61.50"
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].should == _nameserver.new(:name => "ns4.educause.edu", :ipv4 => "192.52.179.69")
+ @parser.nameservers[1].name.should == "ns4.educause.edu"
+ @parser.nameservers[1].ipv4.should == "192.52.179.69"
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[2].should == _nameserver.new(:name => "ns5.educause.edu", :ipv4 => "198.59.61.50")
+ @parser.nameservers[2].name.should == "ns5.educause.edu"
+ @parser.nameservers[2].ipv4.should == "198.59.61.50"
end
end
end
View
12 spec/whois/record/parser/responses/whois.nic-se.se/property_nameservers_with_ip_spec.rb
@@ -26,13 +26,17 @@
@parser.nameservers.should be_a(Array)
@parser.nameservers.should have(4).items
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].should == _nameserver.new(:name => "ns2.loopia.se", :ipv4 => "93.188.0.21")
+ @parser.nameservers[0].name.should == "ns2.loopia.se"
+ @parser.nameservers[0].ipv4.should == "93.188.0.21"
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].should == _nameserver.new(:name => "ns4.loopia.se", :ipv4 => "93.188.0.20")
+ @parser.nameservers[1].name.should == "ns4.loopia.se"
+ @parser.nameservers[1].ipv4.should == "93.188.0.20"
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[2].should == _nameserver.new(:name => "ns3.loopia.se", :ipv4 => "93.188.0.21")
+ @parser.nameservers[2].name.should == "ns3.loopia.se"
+ @parser.nameservers[2].ipv4.should == "93.188.0.21"
@parser.nameservers[3].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[3].should == _nameserver.new(:name => "ns1.loopia.se", :ipv4 => "93.188.0.20")
+ @parser.nameservers[3].name.should == "ns1.loopia.se"
+ @parser.nameservers[3].ipv4.should == "93.188.0.20"
end
end
end
View
8 spec/whois/record/parser/responses/whois.nic-se.se/status_registered_spec.rb
@@ -53,13 +53,13 @@
@parser.nameservers.should be_a(Array)
@parser.nameservers.should have(4).items
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].should == _nameserver.new(:name => "ns1.google.com")
+ @parser.nameservers[0].name.should == "ns1.google.com"
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].should == _nameserver.new(:name => "ns2.google.com")
+ @parser.nameservers[1].name.should == "ns2.google.com"
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[2].should == _nameserver.new(:name => "ns3.google.com")
+ @parser.nameservers[2].name.should == "ns3.google.com"
@parser.nameservers[3].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[3].should == _nameserver.new(:name => "ns4.google.com")
+ @parser.nameservers[3].name.should == "ns4.google.com"
end
end
end
View
20 spec/whois/record/parser/responses/whois.nic.ch/property_nameservers_with_ip_spec.rb
@@ -15,20 +15,24 @@
describe Whois::Record::Parser::WhoisNicCh, "property_nameservers_with_ip.expected" do
- before(:each) do
+ subject do
file = fixture("responses", "whois.nic.ch/property_nameservers_with_ip.txt")
part = Whois::Record::Part.new(:body => File.read(file))
- @parser = klass.new(part)
+ described_class.new(part)
end
describe "#nameservers" do
it do
- @parser.nameservers.should be_a(Array)
- @parser.nameservers.should have(2).items
- @parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].should == _nameserver.new(:name => "ns1.citrin.ch", :ipv4 => "193.247.72.8", :ipv6 => "2001:8a8:21:5::11")
- @parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].should == _nameserver.new(:name => "ns2.citrin.ch", :ipv4 => "62.12.149.3", :ipv6 => "2001:8a8:21:5::12")
+ subject.nameservers.should be_a(Array)
+ subject.nameservers.should have(2).items
+ subject.nameservers[0].should be_a(Whois::Record::Nameserver)
+ subject.nameservers[0].name.should == "ns1.citrin.ch"
+ subject.nameservers[0].ipv4.should == "193.247.72.8"
+ subject.nameservers[0].ipv6.should == "2001:8a8:21:5::11"
+ subject.nameservers[1].should be_a(Whois::Record::Nameserver)
+ subject.nameservers[1].name.should == "ns2.citrin.ch"
+ subject.nameservers[1].ipv4.should == "62.12.149.3"
+ subject.nameservers[1].ipv6.should == "2001:8a8:21:5::12"
end
end
end
View
8 spec/whois/record/parser/responses/whois.nic.ch/status_registered_spec.rb
@@ -56,13 +56,13 @@
@parser.nameservers.should be_a(Array)
@parser.nameservers.should have(4).items
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].should == _nameserver.new(:name => "ns1.google.com")
+ @parser.nameservers[0].name.should == "ns1.google.com"
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].should == _nameserver.new(:name => "ns2.google.com")
+ @parser.nameservers[1].name.should == "ns2.google.com"
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[2].should == _nameserver.new(:name => "ns3.google.com")
+ @parser.nameservers[2].name.should == "ns3.google.com"
@parser.nameservers[3].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[3].should == _nameserver.new(:name => "ns4.google.com")
+ @parser.nameservers[3].name.should == "ns4.google.com"
end
end
end
View
6 spec/whois/record/parser/responses/whois.nic.mx/property_nameservers_with_ip_spec.rb
@@ -26,9 +26,11 @@
@parser.nameservers.should be_a(Array)
@parser.nameservers.should have(2).items
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].should == _nameserver.new(:name => "dns1.mpsnet.net.mx", :ipv4 => "200.4.48.15")
+ @parser.nameservers[0].name.should == "dns1.mpsnet.net.mx"
+ @parser.nameservers[0].ipv4.should == "200.4.48.15"
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].should == _nameserver.new(:name => "dns2.mpsnet.net.mx", :ipv4 => "200.4.48.16")
+ @parser.nameservers[1].name.should == "dns2.mpsnet.net.mx"
+ @parser.nameservers[1].ipv4.should == "200.4.48.16"
end
end
end
View
9 spec/whois/record/parser/responses/whois.nic.mx/status_registered_spec.rb
@@ -53,13 +53,14 @@
@parser.nameservers.should be_a(Array)
@parser.nameservers.should have(4).items
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].should == _nameserver.new(:name => "ns1.google.com")
+ @parser.nameservers[0].should be_a(Whois::Record::Nameserver)
+ @parser.nameservers[0].name.should == "ns1.google.com"
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].should == _nameserver.new(:name => "ns2.google.com")
+ @parser.nameservers[1].name.should == "ns2.google.com"
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[2].should == _nameserver.new(:name => "ns3.google.com")
+ @parser.nameservers[2].name.should == "ns3.google.com"
@parser.nameservers[3].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[3].should == _nameserver.new(:name => "ns4.google.com")
+ @parser.nameservers[3].name.should == "ns4.google.com"
end
end
end
View
9 spec/whois/record/parser/responses/whois.registry.in/status_registered_spec.rb
@@ -145,13 +145,14 @@
@parser.nameservers.should be_a(Array)
@parser.nameservers.should have(4).items
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].should == _nameserver.new(:name => "ns1.google.com")
+ @parser.nameservers[0].should be_a(Whois::Record::Nameserver)
+ @parser.nameservers[0].name.should == "ns1.google.com"
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].should == _nameserver.new(:name => "ns2.google.com")
+ @parser.nameservers[1].name.should == "ns2.google.com"
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[2].should == _nameserver.new(:name => "ns3.google.com")
+ @parser.nameservers[2].name.should == "ns3.google.com"
@parser.nameservers[3].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[3].should == _nameserver.new(:name => "ns4.google.com")
+ @parser.nameservers[3].name.should == "ns4.google.com"
end
end
end
View
9 spec/whois/record/parser/responses/whois.tcinet.ru/ru/property_nameservers_with_ip_spec.rb
@@ -26,11 +26,14 @@
@parser.nameservers.should be_a(Array)
@parser.nameservers.should have(3).items
@parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].should == _nameserver.new(:name => "ns.masterhost.ru", :ipv4 => "217.16.20.30")
+ @parser.nameservers[0].name.should == "ns.masterhost.ru"
+ @parser.nameservers[0].ipv4.should == "217.16.20.30"
@parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].should == _nameserver.new(:name => "ns1.masterhost.ru", :ipv4 => "217.16.16.30")
+ @parser.nameservers[1].name.should == "ns1.masterhost.ru"
+ @parser.nameservers[1].ipv4.should == "217.16.16.30"
@parser.nameservers[2].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[2].should == _nameserver.new(:name => "ns2.masterhost.ru", :ipv4 => "217.16.22.30")
+ @parser.nameservers[2].name.should == "ns2.masterhost.ru"
+ @parser.nameservers[2].ipv4.should == "217.16.22.30"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.