Sha256: 32f908ecc989d136a9389059029c32463706f7715071b07ce5574f199455ff99
Contents?: true
Size: 331 Bytes
Versions: 33
Compression:
Stored size: 331 Bytes
Contents
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
33 entries across 33 versions & 1 rubygems