Sha256: dacb51a486309d4983153592f5ca8aeb301bc224a821559c7c8013bc0e950982

Contents?: true

Size: 243 Bytes

Versions: 3

Compression:

Stored size: 243 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestFakerGenderCN < Test::Unit::TestCase
  def setup
    @tester = FFaker::GenderCN
  end

  def test_random
    gender_regex = /\A[男女]\z/
    assert_match gender_regex, @tester.random
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ffaker-2.2.0 test/test_gender_cn.rb
ffaker-2.1.0 test/test_gender_cn.rb
ffaker-2.0.0 test/test_gender_cn.rb