Sha256: 944a14c6484957c59f479391f9bd084c1fd7bd6fcac733b860d6e1b680dae95b
Contents?: true
Size: 621 Bytes
Versions: 14
Compression:
Stored size: 621 Bytes
Contents
# encoding: utf-8 require 'helper' class TestFaker < Test::Unit::TestCase def test_numerify assert Faker.numerify('###').match(/\d{3}/) end def test_numerify_with_array assert Faker.numerify(['###', '###']).match(/\d{3}/) end def test_letterify assert Faker.letterify('???').match(/[a-z]{3}/) end def test_letterify_with_array assert Faker.letterify(['???', '???']).match(/[a-z]{3}/) end def test_bothify assert Faker.bothify('???###').match(/[a-z]{3}\d{3}/) end def test_bothify_with_array assert Faker.bothify(['???###', '???###']).match(/[a-z]{3}\d{3}/) end end
Version data entries
14 entries across 14 versions & 3 rubygems