Sha256: a5ab39df6082d5c54a2af7fa67ad9800b5f618cba5cbafb62e9ac34da88ccaf3
Contents?: true
Size: 478 Bytes
Versions: 7
Compression:
Stored size: 478 Bytes
Contents
# frozen_string_literal: true require 'helper' class TestFakerNameNL < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic(FFaker::NameNL, :name, :prefix, :suffix) def setup @tester = FFaker::NameNL end def test_name assert_match(/(\w+\.? ?){2,3}/, @tester.name) end def test_prefix assert_match(/[A-Z][a-z]+\.?/, @tester.prefix) end def test_suffix assert_match(/[A-Z][a-z]*\.?/, @tester.suffix) end end
Version data entries
7 entries across 7 versions & 1 rubygems