Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (24 sloc) 0.56 kb
require 'helper'
class TestFakerEducation < Test::Unit::TestCase
def setup
@tester = Faker::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
Jump to Line
Something went wrong with that request. Please try again.