Sha256: a1fa5f8d5ee062059eadc05723cd820d043bf0e2b1e9e5a370a602d09621fd9b

Contents?: true

Size: 559 Bytes

Versions: 5

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(FFaker::GenderRU, :binary, :random)

  def setup
    @tester = FFaker::GenderRU
  end

  def test_random
    gender_regex = /\A(?:мужчина|женщина|нонбайнари|агендер)\z/
    assert_match(gender_regex, @tester.random)
  end

  def test_binary
    gender_regex = /\A(?:мужчина|женщина)\z/
    assert_match(gender_regex, @tester.binary)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ffaker-2.23.0 test/test_gender_ru.rb
ffaker-2.22.0 test/test_gender_ru.rb
ffaker-2.21.0 test/test_gender_ru.rb
ffaker-2.20.0 test/test_gender_ru.rb
ffaker-2.19.0 test/test_gender_ru.rb