Sha256: 9d707ed8524e32d7257ec7b0a47f64dc0abb652c129eb4a3459783950eedc8a3

Contents?: true

Size: 449 Bytes

Versions: 6

Compression:

Stored size: 449 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestFakerGenderKR < Test::Unit::TestCase
  def setup
    @tester = Faker::GenderKR
  end

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

  def test_sample
    gender_regex = /\A[남녀]\z/
    assert_match gender_regex, @tester.sample
  end

  def test_maybe
    gender_regex = /\A[남녀]\z/
    assert_match gender_regex, @tester.maybe
  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_kr.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/test/test_gender_kr.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/test/test_gender_kr.rb
ffaker-1.32.1 test/test_gender_kr.rb
ffaker-1.32.0 test/test_gender_kr.rb
ffaker-1.31.0 test/test_gender_kr.rb