Sha256: 574272596d8e1cb907e6618067b350e1329b4c6a166e543df6e8591c8f77c3ed
Contents?: true
Size: 953 Bytes
Versions: 4
Compression:
Stored size: 953 Bytes
Contents
# encoding: utf-8 require 'helper' class TestLorem < Test::Unit::TestCase def test_paragraph assert_match /[ a-z]+/, Faker::Lorem.paragraph end def test_sentence assert_match /[ a-z]+/, Faker::Lorem.sentence end def test_phrase assert_match /[ a-z]+/, Faker::Lorem.phrase end def test_paragraphs assert_match /[ a-z]+/, Faker::Lorem.paragraphs.join(" ") end def test_sentences assert_match /[ a-z]+/, Faker::Lorem.sentences.join(" ") end def test_phrases assert_match /[ a-z]+/, Faker::Lorem.phrases.join(" ") end def test_words assert_match /[ a-z]+/, Faker::Lorem.words.join(" ") end def test_word assert_match /[a-z]+/, Faker::Lorem.word end def test_characters assert_match /[a-z0-9]+/, Faker::Lorem.characters assert Faker::Lorem.characters().length == 255 assert Faker::Lorem.characters(10).length == 10 assert Faker::Lorem.characters(-1) == "" end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
ffaker-1.24.0 | test/test_lorem.rb |
ffakerer-1.0.2 | test/test_lorem.rb |
ffaker-1.23.0 | test/test_lorem.rb |
ffakerer-1.0.1 | test/test_lorem.rb |