Sha256: 8af1de1f472d3c0eeab993a0a9c9926e37f0b14afc39b7506d99cc72078fd833

Contents?: true

Size: 361 Bytes

Versions: 7

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

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