Sha256: b5d58c965cf3e4abffca953594d31e849b4fe81dce9c95fb83a5ba7d27d06574
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
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(false, '???').match(/[a-z]{3}/) end def test_capital_letterify assert Faker.letterify(true, '???').match(/[A-Z]{3}/) end def test_letterify_with_array assert Faker.letterify(false, ['???', '???']).match(/[a-z]{3}/) end def test_capital_letterify_with_array assert Faker.letterify(true, ['???', '???']).match(/[A-Z]{3}/) end def test_bothify assert Faker.bothify('???###').match(/[a-z]{3}\d{3}/) end def test_capital_bothify assert Faker.bothify(true, '???###').match(/[A-Z]{3}\d{3}/) end def test_bothify_with_array assert Faker.bothify(false, ['???###', '???###']).match(/[a-z]{3}\d{3}/) end def test_capital_bothify_with_array assert Faker.bothify(true, ['???###', '???###']).match(/[A-Z]{3}\d{3}/) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffaker-1.16.0 | test/test_faker.rb |