Sha256: 2cd15f3da2b5ec638fa40833075e8b98a67173570e79b2c552c5b1f7195c885c

Contents?: true

Size: 838 Bytes

Versions: 9

Compression:

Stored size: 838 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

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

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

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

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

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffakerTW-1.8.0 test/test_bacon_ipsum.rb
ffakerTW-1.7.0 test/test_bacon_ipsum.rb
ffakerTW-1.6.0 test/test_bacon_ipsum.rb
ffakerTW-1.5.0 test/test_bacon_ipsum.rb
ffakerTW-1.4.0 test/test_bacon_ipsum.rb
ffakerTW-1.3.0 test/test_bacon_ipsum.rb
ffakerTW-1.2.0 test/test_bacon_ipsum.rb
ffakerTW-1.1.0 test/test_bacon_ipsum.rb
ffakerTW-0.1.0 test/test_bacon_ipsum.rb