Sha256: 0879fff7a4d01bd94aa2ceee0a0f6780703769a4d4057205b679669cb09ebbad

Contents?: true

Size: 519 Bytes

Versions: 3

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

class TestFakerGenderPL < Test::Unit::TestCase
  include DeterministicHelper

  GENDER_REGEX = /\A(kobieta|mężczyzna)\z/.freeze

  assert_methods_are_deterministic(FFaker::GenderPL, :random)

  def setup
    @tester = FFaker::GenderPL
  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_pl.rb
ffaker-2.20.0 test/test_gender_pl.rb
ffaker-2.19.0 test/test_gender_pl.rb