Sha256: eb1dd162dfeddb2b169b397b3dea108bdf4d41756e98b64e2cdd674adda091ac

Contents?: true

Size: 815 Bytes

Versions: 7

Compression:

Stored size: 815 Bytes

Contents

# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_bacon_ipsum.rb
ffaker-2.17.0 test/test_bacon_ipsum.rb
ffaker-2.16.0 test/test_bacon_ipsum.rb
ffaker-2.15.0 test/test_bacon_ipsum.rb
ffaker-2.14.0 test/test_bacon_ipsum.rb
ffaker-2.13.0 test/test_bacon_ipsum.rb
ffaker-2.12.0 test/test_bacon_ipsum.rb