Sha256: 36ebc78af88d6b5d7a742134b78acbafc5d6f3bf0da7c273274fc958803b87bb

Contents?: true

Size: 803 Bytes

Versions: 10

Compression:

Stored size: 803 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestBaconIpsum < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(
    FFaker::BaconIpsum,
    :paragraph, :sentence, :paragraphs, :sentences, :words, :word
  )

  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

10 entries across 10 versions & 1 rubygems

Version Path
ffaker-2.11.0 test/test_bacon_ipsum.rb
ffaker-2.10.0 test/test_bacon_ipsum.rb
ffaker-2.9.0 test/test_bacon_ipsum.rb
ffaker-2.8.1 test/test_bacon_ipsum.rb
ffaker-2.8.0 test/test_bacon_ipsum.rb
ffaker-2.7.0 test/test_bacon_ipsum.rb
ffaker-2.6.0 test/test_bacon_ipsum.rb
ffaker-2.5.0 test/test_bacon_ipsum.rb
ffaker-2.4.0 test/test_bacon_ipsum.rb
ffaker-2.3.0 test/test_bacon_ipsum.rb