Latest version - more stuff

This commit is contained in:
2023-05-10 14:40:56 +01:00
parent 843b510395
commit 793e944b5f
2 changed files with 21 additions and 4 deletions

View File

@@ -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