Sha256: bad3550cbbc433a7fb4ac88c9469583470d14d4f637bc9b97e531b08e35d5385

Contents?: true

Size: 730 Bytes

Versions: 2

Compression:

Stored size: 730 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestFakerNameSE < Test::Unit::TestCase
  def setup
    @tester = FFaker::NameSE
  end

  def test_last_name
    assert_include @tester::LAST_NAMES, (@tester.last_name)
  end

  def test_first_name_male
    assert_include @tester::FIRST_NAMES_MALE, (@tester.first_name_male)
  end

  def test_first_name_female
    assert_include @tester::FIRST_NAMES_FEMALE, (@tester.first_name_female)
  end

  def test_prefix
    assert_include @tester::PREFIXES, (@tester.prefix)
  end

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

  def test_name
    parts = @tester.name.split(' ')
    assert_include [2, 3, 4], parts.count
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffaker-2.2.0 test/test_name_se.rb
ffaker-2.1.0 test/test_name_se.rb