Sha256: 25d17cfe2de009ad0c3c0d528c84d019239a3ba9d9f07a84e4f1920fd8120b0f

Contents?: true

Size: 751 Bytes

Versions: 14

Compression:

Stored size: 751 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestFakerNameSE < Test::Unit::TestCase

  def setup
    @tester = Faker::NameSE
  end

  def test_last_name
    assert Faker::NameSE::LAST_NAMES.include?(@tester.last_name)
  end

  def test_first_name_male
    assert Faker::NameSE::FIRST_NAMES_MALE.include?(@tester.first_name_male)
  end

  def test_first_name_female
    assert Faker::NameSE::FIRST_NAMES_FEMALE.include?(@tester.first_name_female)
  end

  def test_prefix
    assert Faker::NameSE::PREFIXES.include?(@tester.prefix)
  end

  def test_first_name
    parts = @tester.first_name.split(' ')
    assert [1,2].include? parts.count
  end

  def test_name
    parts = @tester.name.split(' ')
    assert [2, 3, 4].include? parts.count
  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_se.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/test/test_name_se.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/test/test_name_se.rb
ffaker-1.32.1 test/test_name_se.rb
ffaker-1.32.0 test/test_name_se.rb
ffaker-1.31.0 test/test_name_se.rb
ffaker-1.30.0 test/test_name_se.rb
ffaker-1.25.0 test/test_name_se.rb
ffaker-1.24.0 test/test_name_se.rb
ffakerer-1.0.2 test/test_faker_name_se.rb
ffaker-1.23.0 test/test_name_se.rb
ffakerer-1.0.1 test/test_faker_name_se.rb
ffaker-1.22.1 test/test_faker_name_se.rb
ffaker-1.22.0 test/test_faker_name_se.rb