Sha256: 8a5becd3deb56de53e0bb171fe829a233d5722e6bbf1aecd8743505b0027a29d

Contents?: true

Size: 350 Bytes

Versions: 14

Compression:

Stored size: 350 Bytes

Contents

# encoding: UTF-8

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

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.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/test/test_name.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/test/test_name.rb
ffaker-1.32.1 test/test_name.rb
ffaker-1.32.0 test/test_name.rb
ffaker-1.31.0 test/test_name.rb
ffaker-1.30.0 test/test_name.rb
ffaker-1.25.0 test/test_name.rb
ffaker-1.24.0 test/test_name.rb
ffakerer-1.0.2 test/test_faker_name.rb
ffaker-1.23.0 test/test_name.rb
ffakerer-1.0.1 test/test_faker_name.rb
ffaker-1.22.1 test/test_faker_name.rb
ffaker-1.22.0 test/test_faker_name.rb