Sha256: fb2c1ee0a1381928d4f60eb99ac6c63cc00e8ea21f678abd350a44c1bfb1337f

Contents?: true

Size: 525 Bytes

Versions: 5

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(FFaker::JobFR, :title)

  def setup
    @tester = FFaker::JobFR
  end

  def test_title
    assert_match(/\A([a-zàâçéèêëîïôûùüÿñæœ]+\.? ?){2,}\z/, @tester.title)
  end

  def test_prefix
    assert_kind_of Array, @tester::JOB_PREFIXES
    assert_kind_of Array, @tester::JOB_ADJECTIVES
    assert_kind_of Array, @tester::JOB_NOUNS
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ffaker-2.23.0 test/test_job_fr.rb
ffaker-2.22.0 test/test_job_fr.rb
ffaker-2.21.0 test/test_job_fr.rb
ffaker-2.20.0 test/test_job_fr.rb
ffaker-2.19.0 test/test_job_fr.rb