Sha256: ddf60b9bd27e2ae9bdea1d40486a52a18f1322ce93f7c0a3352a3d5b5999627f

Contents?: true

Size: 380 Bytes

Versions: 9

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

require 'helper'

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

  assert_methods_are_deterministic(FFaker::GenderID, :random)

  def setup
    @tester = FFaker::GenderID
  end

  def test_random
    gender_regex = /\A(laki-laki|perempuan)\z/
    assert_match(gender_regex, @tester.random)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffaker-2.11.0 test/test_gender_id.rb
ffaker-2.10.0 test/test_gender_id.rb
ffaker-2.9.0 test/test_gender_id.rb
ffaker-2.8.1 test/test_gender_id.rb
ffaker-2.8.0 test/test_gender_id.rb
ffaker-2.7.0 test/test_gender_id.rb
ffaker-2.6.0 test/test_gender_id.rb
ffaker-2.5.0 test/test_gender_id.rb
ffaker-2.4.0 test/test_gender_id.rb