Sha256: e40b0c0014ec9e3d23d1afe12f065d0e152581b32e599ccbb83b6ebf8339b998

Contents?: true

Size: 545 Bytes

Versions: 6

Compression:

Stored size: 545 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

6 entries across 6 versions & 1 rubygems

Version Path
ffaker-1.14.0 test/test_lorem.rb
ffaker-1.13.0 test/test_lorem.rb
ffaker-1.12.1 test/test_lorem.rb
ffaker-1.12.0 test/test_lorem.rb
ffaker-1.11.0 test/test_lorem.rb
ffaker-1.10.1 test/test_lorem.rb