Sha256: 8d7fcc870d1c6a5d12fc88bbdb22c22417e01ab494a3954e42086b02a92fdd3c

Contents?: true

Size: 953 Bytes

Versions: 3

Compression:

Stored size: 953 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestLoremFR < Test::Unit::TestCase
  def test_paragraph
    assert_match /\A[ -.àâéèêîôùûa-z]+\z/i, FFaker::LoremFR.paragraph
  end

  def test_sentence
    assert_match /\A[ -.àâéèêîôùûa-z]+\z/i, FFaker::LoremFR.sentence
  end

  def test_phrase
    assert_match /\A[ -.àâéèêîôùûa-z]+\z/i, FFaker::LoremFR.phrase
  end

  def test_paragraphsLoremFR
    assert_match /\A[ -.àâéèêîôùûa-z]+\z/i, FFaker::LoremFR.paragraphs.join(" ")
  end

  def test_sentences
    assert_match /\A[ -.àâéèêîôùûa-z]+\z/i, FFaker::LoremFR.sentences.join(" ")
  end

  def test_phrases
    assert_match /\A[ -.àâéèêîôùûa-z]+\z/i, FFaker::LoremFR.phrases.join(" ")
  end

  def test_words
    assert_match /\A[ -àâéèêîôùûa-z]+\z/i, FFaker::LoremFR.words.join(" ")
  end

  def test_word
    assert_match /\A[-àâéèêîôùûa-z]+\z/i, FFaker::LoremFR.word
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ffaker-2.2.0 test/test_lorem_fr.rb
ffaker-2.1.0 test/test_lorem_fr.rb
ffaker-2.0.0 test/test_lorem_fr.rb