Sha256: 78cea9b0015c7963ae44b9e8c254446d18347a02e41b6079ae5df139fcb44689

Contents?: true

Size: 336 Bytes

Versions: 8

Compression:

Stored size: 336 Bytes

Contents

# encoding: utf-8

require 'helper'

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

  assert_methods_are_deterministic(FFaker::Gender, :random)

  def setup
    @tester = FFaker::Gender
  end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ffaker-2.9.0 test/test_gender.rb
ffaker-2.8.1 test/test_gender.rb
ffaker-2.8.0 test/test_gender.rb
ffaker-2.7.0 test/test_gender.rb
ffaker-2.6.0 test/test_gender.rb
ffaker-2.5.0 test/test_gender.rb
ffaker-2.4.0 test/test_gender.rb
ffaker-2.3.0 test/test_gender.rb