Sha256: 261ba85c724e0518aae809c0e46f5fceafb9a8924fe3a2812731f4c91df0ff36

Contents?: true

Size: 370 Bytes

Versions: 5

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(FFaker::GenderBR, :random)

  def setup
    @tester = FFaker::GenderBR
  end

  def test_random
    gender_regex = /\A(feminino|masculino)\z/
    assert_match(gender_regex, @tester.random)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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