Sha256: 84a4b23fa8f4065812b5a4dd67f33bd1293a53fa01da6673cbedad2ef3db715e

Contents?: true

Size: 722 Bytes

Versions: 2

Compression:

Stored size: 722 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffaker-1.22.1 test/test_lorem.rb
ffaker-1.22.0 test/test_lorem.rb