Sha256: 7032255090ce67471c6181ddcccc19f3b760505e77395e11a8807efa540ff7b7
Contents?: true
Size: 766 Bytes
Versions: 10
Compression:
Stored size: 766 Bytes
Contents
# encoding: utf-8 require 'helper' class TestFakerEducation < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFaker::Education, :degree_short, :degree, :major, :school_name, :school_generic_name, :school ) def setup @tester = FFaker::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
10 entries across 10 versions & 1 rubygems