Latest version - more stuff
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
require "test_helper"
|
||||
|
||||
class DomainTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
test "domain can not be blank" do
|
||||
@d = Domain.new
|
||||
assert !@d.save
|
||||
end
|
||||
|
||||
test "domain can no tbe duplicated" do
|
||||
@d1 = Domain.new
|
||||
@d1.name = "example.com"
|
||||
assert @d1.save
|
||||
|
||||
@d2 = Domain.new
|
||||
@d2.name = "example.com"
|
||||
assert !@d2.save
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user