Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Test whois.markmonitor.com#registrar and fix it #85

Merged
1 commit merged into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 25, 2011
  1. @semaperepelitsa
This page is out of date. Refresh to see the latest.
View
4 lib/whois/answer/parser/whois.markmonitor.com.rb
@@ -68,8 +68,8 @@ class WhoisMarkmonitorCom < Base
property_supported :registrar do
Answer::Registrar.new(
- :name => content_for_scanner[/Registrar Name: (.+)\.\n/, 1],
- :url => content_for_scanner[/Registrar Homepage: (.+)\.\n/, 1]
+ :name => content_for_scanner[/Registrar Name: (.+)\n/, 1],
+ :url => content_for_scanner[/Registrar Homepage: (.+)\n/, 1]
)
end
View
9 test/whois/answer/parser/whois.markmonitor.com_test.rb
@@ -91,6 +91,15 @@ def test_contacts
end
+ def test_registrar
+ registrar = Whois::Answer::Registrar.new(
+ :name => 'Markmonitor.com',
+ :url => 'http://www.markmonitor.com'
+ )
+ assert_equal_and_cached registrar, @registered, :registrar
+ end
+
+
def test_nameservers
names = %w( ns2.google.com ns1.google.com ns4.google.com ns3.google.com )
expected = names.map { |name| nameserver(name) }
Something went wrong with that request. Please try again.