Sha256: 32f908ecc989d136a9389059029c32463706f7715071b07ce5574f199455ff99

Contents?: true

Size: 331 Bytes

Versions: 33

Compression:

Stored size: 331 Bytes

Contents

require 'helper'

class TestFakerName < Test::Unit::TestCase
  def setup
    @tester = Faker::Name
  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

33 entries across 33 versions & 1 rubygems

Version Path
ffaker-1.5.0 test/test_faker_name.rb
ffaker-1.4.0 test/test_faker_name.rb
ffaker-1.3.0 test/test_faker_name.rb
ffaker-1.2.0 test/test_faker_name.rb
ffaker-1.1.0 test/test_faker_name.rb
ffaker-1.0.0 test/test_faker_name.rb
ffaker-0.4.0 test/test_faker_name.rb
ffaker-0.3.7 test/test_faker_name.rb
ffaker-0.3.6 test/test_faker_name.rb
ffaker-0.3.5 test/test_faker_name.rb
ffaker-0.3.4 test/test_faker_name.rb
ffaker-0.3.3 test/test_faker_name.rb
ffaker-0.3.2 test/test_faker_name.rb