Sha256: ea00ca6f910cfb02e529a86f91bd3de030fde9bf192bfd19eaa72058d14e7048

Contents?: true

Size: 487 Bytes

Versions: 5

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

class TestFakerNameNL < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(FFaker::NameNL, :name, :prefix, :suffix)

  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

5 entries across 5 versions & 1 rubygems

Version Path
ffaker-2.23.0 test/test_name_nl.rb
ffaker-2.22.0 test/test_name_nl.rb
ffaker-2.21.0 test/test_name_nl.rb
ffaker-2.20.0 test/test_name_nl.rb
ffaker-2.19.0 test/test_name_nl.rb