Sha256: 28ec57b30cebd9c34a3eda50f1a3e6489eae3be2d09f8fdc18e0f61d275209ac

Contents?: true

Size: 644 Bytes

Versions: 5

Compression:

Stored size: 644 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(
    FFaker::Skill,
    :tech_skill, :tech_skills, :specialty, :specialties
  )

  def test_tech_skill
    assert_match(/[a-z]+/i, FFaker::Skill.tech_skill)
  end

  def test_tech_skills
    tech_skills = FFaker::Skill.tech_skills
    assert_instance_of Array, tech_skills
  end

  def test_specialty
    assert_match(/[ a-z]+/i, FFaker::Skill.specialty)
  end

  def test_specialties
    specialties = FFaker::Skill.specialties
    assert_instance_of Array, specialties
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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