Sha256: 86b556475003aab2a566d999ecb6002a6f20ff64a17db6e155cfbdac98234411

Contents?: true

Size: 791 Bytes

Versions: 9

Compression:

Stored size: 791 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(
    FFakerTW::Education,
    :degree_short, :degree, :major,
    :school_name, :school_generic_name, :school
  )

  def setup
    @tester = FFakerTW::Education
  end

  def test_degree_short
    assert @tester.degree_short.match(/.+ in .+/)
  end

  def test_degree
    assert @tester.degree.match(/.+ in .+/)
  end

  def test_major
    assert @tester.major.match(/.+ .+/)
  end

  def test_school_name
    assert @tester.school_name.match(/.+/)
  end

  def test_school_generic_name
    assert @tester.school_generic_name.match(/.+/)
  end

  def test_school
    assert @tester.school.match(/.+ .+( .+)?/)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffakerTW-1.8.0 test/test_education.rb
ffakerTW-1.7.0 test/test_education.rb
ffakerTW-1.6.0 test/test_education.rb
ffakerTW-1.5.0 test/test_education.rb
ffakerTW-1.4.0 test/test_education.rb
ffakerTW-1.3.0 test/test_education.rb
ffakerTW-1.2.0 test/test_education.rb
ffakerTW-1.1.0 test/test_education.rb
ffakerTW-0.1.0 test/test_education.rb