Sha256: 0577c8cb70f3d56897878f6602a0efc22f00c862ff83654a39f6e9c5cba96fc0

Contents?: true

Size: 572 Bytes

Versions: 10

Compression:

Stored size: 572 Bytes

Contents

# encoding: UTF-8

require 'helper'

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

  assert_methods_are_deterministic(
    FFaker::Food,
    :vegetable, :fruit, :meat, :herb_or_spice
  )

  def test_vegetable
    assert_match(/\A[-\/ íó'a-z0-9]+\z/i, FFaker::Food.vegetable)
  end

  def test_fruit
    assert_match(/\A[ a-z0-9]+\z/i, FFaker::Food.fruit)
  end

  def test_meat
    assert_match(/\A[, a-z0-9]+\z/i, FFaker::Food.meat)
  end

  def test_herb_or_spice
    assert_match(/\A[-, a-z0-9]+\z/i, FFaker::Food.herb_or_spice)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ffaker-2.11.0 test/test_food.rb
ffaker-2.10.0 test/test_food.rb
ffaker-2.9.0 test/test_food.rb
ffaker-2.8.1 test/test_food.rb
ffaker-2.8.0 test/test_food.rb
ffaker-2.7.0 test/test_food.rb
ffaker-2.6.0 test/test_food.rb
ffaker-2.5.0 test/test_food.rb
ffaker-2.4.0 test/test_food.rb
ffaker-2.3.0 test/test_food.rb