Sha256: 9102dce30a7bf9173943ea2ca705af67356ef43e336b8de43cacc4591cd750bc
Contents?: true
Size: 497 Bytes
Versions: 7
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true require 'helper' class TestFakerGenderJP < Test::Unit::TestCase include DeterministicHelper GENDER_REGEX = /\A[女男]\z/.freeze assert_methods_are_deterministic(FFaker::GenderJP, :random) def setup @tester = FFaker::GenderJP end def test_random assert_match(GENDER_REGEX, @tester.random) end def test_sample assert_match(GENDER_REGEX, @tester.sample) end def test_maybe assert_match(GENDER_REGEX, @tester.maybe) end end
Version data entries
7 entries across 7 versions & 1 rubygems