Sha256: 72e03a590a2ca78dc77cc2e96de0bb3471631876a445ec42ef0f94f2afbebff8
Contents?: true
Size: 358 Bytes
Versions: 5
Compression:
Stored size: 358 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestFakerGenderCN < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic(FFaker::GenderCN, :random) def setup @tester = FFaker::GenderCN end def test_random gender_regex = /\A[男女]\z/ assert_match(gender_regex, @tester.random) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.23.0 | test/test_gender_cn.rb |
ffaker-2.22.0 | test/test_gender_cn.rb |
ffaker-2.21.0 | test/test_gender_cn.rb |
ffaker-2.20.0 | test/test_gender_cn.rb |
ffaker-2.19.0 | test/test_gender_cn.rb |