Sha256: efe760446217ff2710706669bce6485c5d765d179378a42b4632bc2f74e10fcc
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestFakerNameDE < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic(FFakerTW::NameDE, :name, :prefix, :suffix) def setup @tester = FFakerTW::NameDE end def test_name assert_match(/\A([\w']+\.? ?){2,3}\z/, @tester.name) end def test_prefix assert_match(/\A[A-Z][a-z]+\.?\z/, @tester.prefix) end def test_suffix assert_include(@tester::SUFFIXES, @tester.suffix) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_name_de.rb |