Skip to content

Instantly share code, notes, and snippets.

@jstorimer
Created November 18, 2009 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jstorimer/237991 to your computer and use it in GitHub Desktop.
Save jstorimer/237991 to your computer and use it in GitHub Desktop.
require 'test/unit'
class RemoteTest < Test::Unit::TestCase
def setup
@@domain ||= registered_domain
end
def test_domain_expiry_date
assert @@domain.expiry_date
end
def test_domain_locked
assert @@domain.locked?
end
private
def registered_domain
domain = Domain.new
domain.register
puts 'registered domain!'
domain
end
end
####
# Results
####
# Loaded suite untitled
# Started
# registered domain!
# ..
# Finished in 0.000885 seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment