Sha256: ab524410951d8ebd1f14139c5b896d857c434f2b95cb1e5242f4043d951cbd0c

Contents?: true

Size: 407 Bytes

Versions: 3

Compression:

Stored size: 407 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestFakerNameKR < Test::Unit::TestCase
  def setup
    @tester = FFaker::NameKR
  end

  def test_name
    assert_match(/\A[가-힣]{2,}\z/, @tester.name)
  end

  def test_last_first
    assert_match(/\A[가-힣]{2,}\z/, @tester.last_first)
  end

  def test_name_with_space
    assert_match(/\A[가-힣]{1,2} [가-힣]{2,}\z/, @tester.name_with_space)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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