Skip to content

Commit

Permalink
add missing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ngouy committed Dec 5, 2019
1 parent de7f1d7 commit d8502c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/faker/default/test_faker_internet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,15 @@ def test_domain_name_with_domain_suffix
assert @tester.domain_name(domain_suffix: 'domain_suffix').match(/\w+\.domain_suffix/)
end

def test_domain_name_with_subdomain_with_domain_suffix
def test_domain_name_with_subdomain_and_domain_suffix
assert @tester.domain_name(subdomain: true, domain_suffix: 'domain_suffix').match(/\w+\.\w+\.domain_suffix/)
end

def test_domain_name_with_subdomain_with_complex_domain_suffix
def test_domain_name_with_subdomain_and_domain_and_domain_suffix
assert @tester.domain_name(subdomain: true, domain: 'my.domain', domain_suffix: 'my.domain_suffix').match(/\w+\.my.domain.my.domain_suffix/)
end

def test_domain_name_with_subdomain_and_complex_domain_suffix
assert @tester.domain_name(subdomain: true, domain_suffix: 'my.domain.suffix').match(/\w+\.\w+\.my.domain.suffix/)
end

Expand Down

0 comments on commit d8502c4

Please sign in to comment.