Sha256: 75a402efd245978cdaef0bd7e6d00657543c7700dd6dc0b0761e74c94c76d890
Contents?: true
Size: 497 Bytes
Versions: 7
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true require 'helper' class TestFakerNameCN < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFaker::NameCN, :name, :first_name, :last_name ) def setup @tester = FFaker::NameCN end def test_name assert_match(/\A.{2,}\z/, @tester.name) end def test_first_name assert_match(/\A.{1,2}\z/, @tester.first_name) end def test_last_name assert_match(/\A.{1,5}\z/, @tester.last_name) end end
Version data entries
7 entries across 7 versions & 1 rubygems