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