Sha256: 938ba89b8a5f80178c52e764591c0079e1319b54a945a765b3ff28c8766b072c

Contents?: true

Size: 723 Bytes

Versions: 1

Compression:

Stored size: 723 Bytes

Contents

#status
  should: %s == :registered

#available?
  should: %s == false

#registered?
  should: %s == true


#created_on
  should: %s be_a(Time)
  should: %s == Time.parse("2003-01-09 00:00:00 UTC")

#updated_on
  should: %s raise_error(Whois::PropertyNotSupported)

#expires_on
  should: %s be_a(Time)
  should: %s == Time.parse("2012-02-29 00:00:00 UTC")


#nameservers
  should: %s be_a(Array)
  should: %s have(4).items
  should: %s[0] be_a(_nameserver)
  should: %s[0].name == "ns4.google.com"
  should: %s[1] be_a(_nameserver)
  should: %s[1].name == "ns2.google.com"
  should: %s[2] be_a(_nameserver)
  should: %s[2].name == "ns1.google.com"
  should: %s[3] be_a(_nameserver)
  should: %s[3].name == "ns3.google.com"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whois-2.2.0 spec/fixtures/responses/whois.dns.pt/status_registered.expected