Sha256: 6198686a1b43bf0be99199992774e0f745c1fbe145fef3f0b012188ec20aea25

Contents?: true

Size: 492 Bytes

Versions: 7

Compression:

Stored size: 492 Bytes

Contents

# frozen_string_literal: true

require 'helper'

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

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

  def setup
    @tester = FFaker::NameDE
  end

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

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

  def test_suffix
    assert_include(@tester::SUFFIXES, @tester.suffix)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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