Sha256: af3c63d06c55721b838f457a7d8cb21cf0b6754939fb2fe70c61e0363f7a526a
Contents?: true
Size: 1.07 KB
Versions: 5
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true require_relative 'helper' class TestFFaker < Test::Unit::TestCase include DeterministicHelper def test_version assert FFaker::VERSION.is_a?(String) end def test_numerify assert FFaker.numerify('###').match(/\d{3}/) assert_deterministic { FFaker.numerify('###') } end def test_numerify_with_array assert FFaker.numerify(['###', '###']).match(/\d{3}/) assert_deterministic { FFaker.numerify(['###', '###']) } end def test_letterify assert FFaker.letterify('???').match(/[a-z]{3}/) assert_deterministic { FFaker.letterify('???') } end def test_letterify_with_array assert FFaker.letterify(['???', '???']).match(/[a-z]{3}/) assert_deterministic { FFaker.letterify(['???', '???']) } end def test_bothify assert FFaker.bothify('???###').match(/[a-z]{3}\d{3}/) assert_deterministic { FFaker.bothify('???###') } end def test_bothify_with_array assert FFaker.bothify(['???###', '???###']).match(/[a-z]{3}\d{3}/) assert_deterministic { FFaker.bothify(['???###', '???###']) } end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.23.0 | test/test_ffaker.rb |
ffaker-2.22.0 | test/test_ffaker.rb |
ffaker-2.21.0 | test/test_ffaker.rb |
ffaker-2.20.0 | test/test_ffaker.rb |
ffaker-2.19.0 | test/test_ffaker.rb |