Sha256: 29cf219365c3c81160ae43d7f62eb1366ea4b253d339997d9c3a81f8fc3d2c64
Contents?: true
Size: 1.04 KB
Versions: 7
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true require 'helper' class TestNameVN < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFaker::NameVN, :last_name, :first_name, :middle_name, :name, :last_first ) def setup @tester = FFaker::NameVN end def test_last_name assert_include @tester::LAST_NAMES, @tester.last_name end def test_first_name assert_include @tester::FIRST_NAMES, @tester.first_name end def test_middle_name assert_include @tester::MIDDLE_NAMES, @tester.middle_name end def test_name (middle_name, first_name, last_name) = @tester.name.split(' ') assert_include @tester::FIRST_NAMES, first_name assert_include @tester::MIDDLE_NAMES, middle_name assert_include @tester::LAST_NAMES, last_name end def test_last_first (last_name, middle_name, first_name) = @tester.last_first.split(' ') assert_include @tester::FIRST_NAMES, first_name assert_include @tester::MIDDLE_NAMES, middle_name assert_include @tester::LAST_NAMES, last_name end end
Version data entries
7 entries across 7 versions & 1 rubygems