Sha256: 427dc62ae062a108041630dc0a21cf92f51bec9006aeebdf2041db88ee439694
Contents?: true
Size: 531 Bytes
Versions: 5
Compression:
Stored size: 531 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestFakerGender < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic(FFaker::Gender, :binary, :random) def setup @tester = FFaker::Gender end def test_random gender_regex = /\A(?:male|female|non-binary|agender|androgyne|bi-gender|pan-gender)\z/ assert_match(gender_regex, @tester.random) end def test_binary gender_regex = /\A(?:male|female)\z/ assert_match(gender_regex, @tester.binary) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.23.0 | test/test_gender.rb |
ffaker-2.22.0 | test/test_gender.rb |
ffaker-2.21.0 | test/test_gender.rb |
ffaker-2.20.0 | test/test_gender.rb |
ffaker-2.19.0 | test/test_gender.rb |