Sha256: 413dc326d3799ca0128f84f4de0e90c78ace7d99eee4b5cae6ae099a8c017f96

Contents?: true

Size: 428 Bytes

Versions: 7

Compression:

Stored size: 428 Bytes

Contents

# encoding: UTF-8

require 'helper'

class TestFakerFood < Test::Unit::TestCase
  def test_vegetable
    assert_match /\A[-\/ íó'a-z0-9]+\z/i, Faker::Food.vegetable
  end

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

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

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/test/test_food.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/test/test_food.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/test/test_food.rb
ffaker-1.32.1 test/test_food.rb
ffaker-1.32.0 test/test_food.rb
ffaker-1.31.0 test/test_food.rb
ffaker-1.30.0 test/test_food.rb