Sha256: b68bfd5d31872b7446d08490ef569aca6f15125a0604e1d05a528f2ed8996162
Contents?: true
Size: 506 Bytes
Versions: 3
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true require_relative '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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.21.0 | test/test_gender_jp.rb |
ffaker-2.20.0 | test/test_gender_jp.rb |
ffaker-2.19.0 | test/test_gender_jp.rb |