Sha256: 293037ada08fbc3f77b5a2dfec51239b0844114eefffebd504c2683119cd2fd9

Contents?: true

Size: 832 Bytes

Versions: 5

Compression:

Stored size: 832 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

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

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

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

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

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

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ffaker-2.23.0 test/test_dizzle_ipsum.rb
ffaker-2.22.0 test/test_dizzle_ipsum.rb
ffaker-2.21.0 test/test_dizzle_ipsum.rb
ffaker-2.20.0 test/test_dizzle_ipsum.rb
ffaker-2.19.0 test/test_dizzle_ipsum.rb