Sha256: 8a5becd3deb56de53e0bb171fe829a233d5722e6bbf1aecd8743505b0027a29d
Contents?: true
Size: 350 Bytes
Versions: 14
Compression:
Stored size: 350 Bytes
Contents
# encoding: UTF-8 require 'helper' class TestFakerName < Test::Unit::TestCase def setup @tester = Faker::Name end def test_name assert @tester.name.match(/(\w+\.? ?){2,3}/) end def test_prefix assert @tester.prefix.match(/[A-Z][a-z]+\.?/) end def test_suffix assert @tester.suffix.match(/[A-Z][a-z]*\.?/) end end
Version data entries
14 entries across 14 versions & 3 rubygems