Sha256: 413e0c80319834de36f65d6b423a91f1365ddb36067db2e1f70d5701ddcd31b3
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestFakerGenderIT < Test::Unit::TestCase include DeterministicHelper GENDER_REGEX = /\A(maschio|femmina)\z/.freeze assert_methods_are_deterministic(FFakerTW::GenderIT, :random) def setup @tester = FFakerTW::GenderIT 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_gender_it.rb |