Sha256: 5536081fbe322e8daeda70bf1fc8c056d93adba6fb180951a27c786e59d7c6ce

Contents?: true

Size: 811 Bytes

Versions: 10

Compression:

Stored size: 811 Bytes

Contents

# encoding: utf-8

require '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

10 entries across 10 versions & 1 rubygems

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