Sha256: 74f65169859c9cba3afbb620a7293cc9a61d2d92a75ab7c1e4c467b4251fac83

Contents?: true

Size: 480 Bytes

Versions: 10

Compression:

Stored size: 480 Bytes

Contents

# encoding: utf-8

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

10 entries across 10 versions & 1 rubygems

Version Path
ffaker-2.11.0 test/test_name_de.rb
ffaker-2.10.0 test/test_name_de.rb
ffaker-2.9.0 test/test_name_de.rb
ffaker-2.8.1 test/test_name_de.rb
ffaker-2.8.0 test/test_name_de.rb
ffaker-2.7.0 test/test_name_de.rb
ffaker-2.6.0 test/test_name_de.rb
ffaker-2.5.0 test/test_name_de.rb
ffaker-2.4.0 test/test_name_de.rb
ffaker-2.3.0 test/test_name_de.rb