Sha256: 727c6a1903505f49e9c6086242966187ba70e55457a13ed15bc5032cf9af6995

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestFakerNameNL < Test::Unit::TestCase
  def setup
    @tester = FFaker::NameNL
  end

  def test_name
    assert_match(/(\w+\.? ?){2,3}/, @tester.name)
  end

  def test_prefix
    assert_match(/[A-Z][a-z]+\.?/, @tester.prefix)
  end

  def test_suffix
    assert_match(/[A-Z][a-z]*\.?/, @tester.suffix)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffaker-2.2.0 test/test_name_nl.rb
ffaker-2.1.0 test/test_name_nl.rb