Sha256: c9c2e988bf7c38d11c4f867929a09ad7d622751db5c88c8855a8e46ee4280f42

Contents?: true

Size: 546 Bytes

Versions: 8

Compression:

Stored size: 546 Bytes

Contents

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_paragraphs
    assert_match /[ a-z]+/, Faker::Lorem.paragraphs.join(" ")
  end

  def test_sentences
    assert_match /[ a-z]+/, Faker::Lorem.sentences.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

8 entries across 8 versions & 1 rubygems

Version Path
ffaker-1.9.1 test/test_lorem.rb
ffaker-1.8.1 test/test_lorem.rb
ffaker-1.8.0 test/test_lorem.rb
ffaker-1.7.0 test/test_lorem.rb
ffaker-1.6.0 test/test_lorem.rb
ffaker-1.5.0 test/test_lorem.rb
ffaker-1.4.0 test/test_lorem.rb
ffaker-1.3.0 test/test_lorem.rb