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.21.0 test/test_faker_name.rb
ffaker-1.20.0 test/test_faker_name.rb
ffaker-1.19.0 test/test_faker_name.rb
ffaker-1.18.0 test/test_faker_name.rb
ffaker-1.17.0 test/test_faker_name.rb
ffaker-1.16.2 test/test_faker_name.rb
ffaker-1.16.1 test/test_faker_name.rb
ffaker-1.16.0 test/test_faker_name.rb
ffaker-1.15.0 test/test_faker_name.rb
ffaker-1.14.0 test/test_faker_name.rb
ffaker-1.13.0 test/test_faker_name.rb
ffaker-1.12.1 test/test_faker_name.rb
ffaker-1.12.0 test/test_faker_name.rb
ffaker-1.11.0 test/test_faker_name.rb
ffaker-1.10.1 test/test_faker_name.rb
ffaker-1.9.1 test/test_faker_name.rb
ffaker-1.8.1 test/test_faker_name.rb
ffaker-1.8.0 test/test_faker_name.rb
ffaker-1.7.0 test/test_faker_name.rb
ffaker-1.6.0 test/test_faker_name.rb