Sha256: df09d860b594af2b76c021eac2049152fa6d8e6c35f01cde8725aad1a76ca894
Contents?: true
Size: 515 Bytes
Versions: 3
Compression:
Stored size: 515 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(FFaker::GenderIT, :random) def setup @tester = FFaker::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.21.0 | test/test_gender_it.rb |
ffaker-2.20.0 | test/test_gender_it.rb |
ffaker-2.19.0 | test/test_gender_it.rb |