Sha256: 8bbc67052e4d4c493a3e677db212e756f3d1b600155174d332e32f1bf526d5ee
Contents?: true
Size: 522 Bytes
Versions: 4
Compression:
Stored size: 522 Bytes
Contents
# frozen_string_literal: true require 'helper' class TestCompanyJA < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFaker::CompanyJA, :name, :position ) def setup @tester = FFaker::CompanyJA end def test_name assert_match(japanese_regex(''), @tester.name) end def test_position assert_match(japanese_regex(''), @tester.position) end def japanese_regex(word) /\A(?:\p{Hiragana}|\p{Katakana}|[ー-]|[一-龠々])+#{word}\z/ end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.18.0 | test/test_company_ja.rb |
ffaker-2.17.0 | test/test_company_ja.rb |
ffaker-2.16.0 | test/test_company_ja.rb |
ffaker-2.15.0 | test/test_company_ja.rb |