Sha256: 21a99fbcc9d2d6aa5c4f67778edf619c14f1a8ec01c1a50303d2dadf55396896

Contents?: true

Size: 636 Bytes

Versions: 3

Compression:

Stored size: 636 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestBaconIpsum < Test::Unit::TestCase

  def test_paragraph
    assert_match /1\+|[ a-z]+/i, FFaker::BaconIpsum.paragraph
  end

  def test_sentence
    assert_match /1\+|[ a-z]+/i, FFaker::BaconIpsum.sentence
  end

  def test_paragraphs
    assert_match /1\+|[ a-z]+/i, FFaker::BaconIpsum.paragraphs.join(" ")
  end

  def test_sentences
    assert_match /1\+|[ a-z]+/i, FFaker::BaconIpsum.sentences.join(" ")
  end

  def test_words
    assert_match /1\+|[ a-z]+/i, FFaker::BaconIpsum.words.join(" ")
  end

  def test_word
    assert_match /1\+|[a-z]+/i, FFaker::BaconIpsum.word
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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