Sha256: 534f82128ee7b71be69eb17485ab0e75c2880c29accdedf23f4a8b171994f4ba

Contents?: true

Size: 602 Bytes

Versions: 7

Compression:

Stored size: 602 Bytes

Contents

# frozen_string_literal: true

require 'helper'

class TestFakerEducationCN < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(FFaker::EducationCN, :degree, :major, :location, :school)

  def setup
    @tester = FFaker::EducationCN
  end

  def test_degree
    assert @tester.degree.match(/[\u4e00-\u9fa5]{4,}/)
  end

  def test_major
    assert @tester.major.match(/[\u4e00-\u9fa5]{2,}/)
  end

  def test_location
    assert @tester.location.match(/[\u4e00-\u9fa5]{2,}/)
  end

  def test_school
    assert @tester.school.match(/[\u4e00-\u9fa5]{4,}/)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_education_cn.rb
ffaker-2.17.0 test/test_education_cn.rb
ffaker-2.16.0 test/test_education_cn.rb
ffaker-2.15.0 test/test_education_cn.rb
ffaker-2.14.0 test/test_education_cn.rb
ffaker-2.13.0 test/test_education_cn.rb
ffaker-2.12.0 test/test_education_cn.rb