Sha256: 3342f30f075e7ec41fcff1c1ba54c0ded83a24068d5f7440642ce1034366abd5
Contents?: true
Size: 535 Bytes
Versions: 9
Compression:
Stored size: 535 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestFakerGender < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic(FFakerTW::Gender, :binary, :random) def setup @tester = FFakerTW::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
9 entries across 9 versions & 1 rubygems