Sha256: 0f0a2c43856023e48f87a72449c66ccfadaf0bfb7248582f6a824d11116cd40d

Contents?: true

Size: 1.54 KB

Versions: 3

Compression:

Stored size: 1.54 KB

Contents

#status
  should: %s == :registered

#available?
  should: %s == false

#registered?
  should: %s == true


#created_on
  should: %s CLASS(time)
  should: %s == Time.parse("1999-02-14")

#updated_on
  should: %s CLASS(time)
  should: %s == Time.parse("2009-08-13")

#expires_on
  should: %s CLASS(time)
  should: %s == Time.parse("2011-02-14")


#registrar
  should: %s CLASS(registrar)
  should: %s.id           == "MARKMONITOR"
  should: %s.name         == "Markmonitor"
  should: %s.organization == "Markmonitor Inc."
  should: %s.url          == "http://www.markmonitor.com"


#registrant_contacts
  should: %s CLASS(array)
  should: %s SIZE(1)
  should: %s[0] CLASS(contact)
  should: %s[0].type         == Whois::Record::Contact::TYPE_REGISTRANT
  should: %s[0].id           == nil
  should: %s[0].name         == "Google Inc."
  should: %s[0].organization == nil
  should: %s[0].address      == "1600 Amphitheatre Parkway"
  should: %s[0].city         == "Mountain View"
  should: %s[0].zip          == "94043"
  should: %s[0].state        == "CA"
  should: %s[0].country      == "United States"


#nameservers
  should: %s CLASS(array)
  should: %s SIZE(4)
  should: %s[0] CLASS(nameserver)
  should: %s[0].name == "ns1.google.com"
  should: %s[1] CLASS(nameserver)
  should: %s[1].name == "ns2.google.com"
  should: %s[2] CLASS(nameserver)
  should: %s[2].name == "ns3.google.com"
  should: %s[3] CLASS(nameserver)
  should: %s[3].name == "ns4.google.com"


#response_throttled?
  should: %s == false


#valid?
  should: %s == true

#invalid?
  should: %s == false

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
whois-2.5.1 spec/fixtures/responses/whois.nic.uk/status_registered.expected
whois-2.5.0 spec/fixtures/responses/whois.nic.uk/status_registered.expected
whois-2.4.0 spec/fixtures/responses/whois.nic.uk/status_registered.expected