Sha256: 78da894788734dc7869a3c834750436bc9e6839f7b5b9d7eb32c824823088c80

Contents?: true

Size: 1.54 KB

Versions: 4

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("2011-02-10")

#expires_on
  should: %s CLASS(time)
  should: %s == Time.parse("2013-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

4 entries across 4 versions & 1 rubygems

Version Path
whois-2.6.3 spec/fixtures/responses/whois.nic.uk/status_registered.expected
whois-2.6.2 spec/fixtures/responses/whois.nic.uk/status_registered.expected
whois-2.6.1 spec/fixtures/responses/whois.nic.uk/status_registered.expected
whois-2.6.0 spec/fixtures/responses/whois.nic.uk/status_registered.expected