Sha256: aa7cb64c203018e299ef2f4eff772f0bd5f6fef0187457285afe326742619d40
Contents?: true
Size: 592 Bytes
Versions: 6
Compression:
Stored size: 592 Bytes
Contents
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 assert Faker.bothify(['???###', '???###']).match(/[a-z]{3}\d{3}/) end end
Version data entries
6 entries across 6 versions & 1 rubygems