Sha256: 2789d846b4efc8a54ff8d9217d8be55bc6a8ebb49c694b61e4baa4db5b739fc2

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(
    FFakerTW::FoodPL,
    :food, :processed, :unprocessed, :vegetable, :fruit,
    :meat, :herb, :spice, :fermented, :diary, :preserves
  )

  def setup
    @tester = FFakerTW::FoodPL
  end

  def test_food
    assert_match(/\w+/, @tester.food)
  end

  def test_processed
    assert_match(/\w+/, @tester.processed)
  end

  def test_unprocessed
    assert_match(/\w+/, @tester.unprocessed)
  end

  def test_vegetable
    assert_include(@tester::VEGETABLES, @tester.vegetable)
  end

  def test_fruit
    assert_include(@tester::FRUITS, @tester.fruit)
  end

  def test_herb
    assert_include(@tester::HERBS, @tester.herb)
  end

  def test_spice
    assert_include(@tester::SPICES, @tester.spice)
  end

  def test_meat
    assert_include(@tester::MEATS, @tester.meat)
  end

  def test_fermented
    assert_include(@tester::FERMENTED, @tester.fermented)
  end

  def test_diary
    assert_include(@tester::DIARY, @tester.diary)
  end

  def test_preserves
    assert_include(@tester::PRESERVES, @tester.preserves)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffakerTW-0.1.0 test/test_food_pl.rb