Sha256: aaf5c583a73862daf703c021ef290624e4a8ca14e30b34d0a7f1ef5319f479be

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

# frozen_string_literal: true

require 'helper'

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

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

  def setup
    @tester = FFaker::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
ffaker-2.18.0 test/test_food_pl.rb