Sha256: adf2b84e02d01edb71931464484ad83c0d3c0b1872d601cf1a49be51b779456f
Contents?: true
Size: 568 Bytes
Versions: 5
Compression:
Stored size: 568 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestFakerGenderKR < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic(FFaker::GenderKR, :random) def setup @tester = FFaker::GenderKR end def test_random gender_regex = /\A[남녀]\z/ assert_match(gender_regex, @tester.random) end def test_sample gender_regex = /\A[남녀]\z/ assert_match(gender_regex, @tester.sample) end def test_maybe gender_regex = /\A[남녀]\z/ assert_match(gender_regex, @tester.maybe) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.23.0 | test/test_gender_kr.rb |
ffaker-2.22.0 | test/test_gender_kr.rb |
ffaker-2.21.0 | test/test_gender_kr.rb |
ffaker-2.20.0 | test/test_gender_kr.rb |
ffaker-2.19.0 | test/test_gender_kr.rb |