Sha256: a5ab39df6082d5c54a2af7fa67ad9800b5f618cba5cbafb62e9ac34da88ccaf3

Contents?: true

Size: 478 Bytes

Versions: 7

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

require '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

7 entries across 7 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_name_nl.rb
ffaker-2.17.0 test/test_name_nl.rb
ffaker-2.16.0 test/test_name_nl.rb
ffaker-2.15.0 test/test_name_nl.rb
ffaker-2.14.0 test/test_name_nl.rb
ffaker-2.13.0 test/test_name_nl.rb
ffaker-2.12.0 test/test_name_nl.rb