Created
November 18, 2009 16:01
-
-
Save jstorimer/237991 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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