Sha256: 8bad7013467fee2287caae9257315ae4a1e3962cea20b2a9b1133942574e4505

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

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

  def setup
    @tester = FFakerTW::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

1 entries across 1 versions & 1 rubygems

Version Path
ffakerTW-0.1.0 test/test_gender_ru.rb