Sha256: b6ab09b5ab36608ec6f5ca431f00fc21cb8fd6396cd335e03f7e17e9cbaecf8b

Contents?: true

Size: 510 Bytes

Versions: 7

Compression:

Stored size: 510 Bytes

Contents

# frozen_string_literal: true

require '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

7 entries across 7 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_gender_pl.rb
ffaker-2.17.0 test/test_gender_pl.rb
ffaker-2.16.0 test/test_gender_pl.rb
ffaker-2.15.0 test/test_gender_pl.rb
ffaker-2.14.0 test/test_gender_pl.rb
ffaker-2.13.0 test/test_gender_pl.rb
ffaker-2.12.0 test/test_gender_pl.rb