Sha256: 5ef9f9aeb7a4571937b2f92f4061a511e6ef472d05a0b86adc8095c8ba104f25
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffaker-1.25.0 | test/test_food.rb |