Sha256: 30de0ee986e026c317adbf181804b436bea57c8dcd4f239004696897f9662ff8

Contents?: true

Size: 242 Bytes

Versions: 6

Compression:

Stored size: 242 Bytes

Contents

# encoding: utf-8

require 'helper'

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

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

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/test/test_gender_cn.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/test/test_gender_cn.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/test/test_gender_cn.rb
ffaker-1.32.1 test/test_gender_cn.rb
ffaker-1.32.0 test/test_gender_cn.rb
ffaker-1.31.0 test/test_gender_cn.rb