Sha256: 25403a1e2892bcc08016cfc60133e706acc09f20fe499b5f1d1670b42be83633

Contents?: true

Size: 354 Bytes

Versions: 14

Compression:

Stored size: 354 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestFakerNameDE < Test::Unit::TestCase
  def setup
    @tester = Faker::NameDE
  end

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

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

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

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/test/test_name_de.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/test/test_name_de.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/test/test_name_de.rb
ffaker-1.32.1 test/test_name_de.rb
ffaker-1.32.0 test/test_name_de.rb
ffaker-1.31.0 test/test_name_de.rb
ffaker-1.30.0 test/test_name_de.rb
ffaker-1.25.0 test/test_name_de.rb
ffaker-1.24.0 test/test_name_de.rb
ffakerer-1.0.2 test/test_faker_name_de.rb
ffaker-1.23.0 test/test_name_de.rb
ffakerer-1.0.1 test/test_faker_name_de.rb
ffaker-1.22.1 test/test_faker_name_de.rb
ffaker-1.22.0 test/test_faker_name_de.rb