mirror of
https://github.com/internetee/registry.git
synced 2025-06-04 19:57:29 +02:00
20 lines
393 B
Ruby
20 lines
393 B
Ruby
require 'test_helper'
|
|
|
|
class DomainTest < ActiveSupport::TestCase
|
|
setup do
|
|
@domain = domains(:shop)
|
|
end
|
|
|
|
def test_valid_fixture_is_valid
|
|
assert @domain.valid?
|
|
end
|
|
|
|
def test_invalid_fixture_is_invalid
|
|
assert domains(:invalid).invalid?
|
|
end
|
|
|
|
def test_domain_name
|
|
domain = Domain.new(name: 'shop.test')
|
|
assert_equal 'shop.test', domain.domain_name.to_s
|
|
end
|
|
end
|