Sha256: a3629eb18c1d3a0297a910eb737bfca4baf780be9c7f03287bdf155650afacce

Contents?: true

Size: 579 Bytes

Versions: 14

Compression:

Stored size: 579 Bytes

Contents

# encoding: utf-8

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

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/test/test_education.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/test/test_education.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/test/test_education.rb
ffaker-1.32.1 test/test_education.rb
ffaker-1.32.0 test/test_education.rb
ffaker-1.31.0 test/test_education.rb
ffaker-1.30.0 test/test_education.rb
ffaker-1.25.0 test/test_education.rb
ffaker-1.24.0 test/test_education.rb
ffakerer-1.0.2 test/test_education.rb
ffaker-1.23.0 test/test_education.rb
ffakerer-1.0.1 test/test_education.rb
ffaker-1.22.1 test/test_education.rb
ffaker-1.22.0 test/test_education.rb