Sha256: 7380c026eb83f3ffd71e2fb4aaf6437be8d0982a8d6e5865cba0ceba37edc443
Contents?: true
Size: 580 Bytes
Versions: 3
Compression:
Stored size: 580 Bytes
Contents
# encoding: utf-8 require 'helper' class TestFakerEducation < Test::Unit::TestCase 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_name.match(/.+/) end def test_school assert @tester.school.match(/.+ .+( .+)?/) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.2.0 | test/test_education.rb |
ffaker-2.1.0 | test/test_education.rb |
ffaker-2.0.0 | test/test_education.rb |