Sha256: e7a91edb04b6b50ae5e42e5beba1a9f9b6717f461ec8807a6f5e97928eb3e52f

Contents?: true

Size: 421 Bytes

Versions: 1

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

require 'helper'
class TestFreedomIpsum < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(
    FFaker::FreedomIpsum,
    :word, :words
  )

  TEST_REGEX = /[a-z0-9 -]+/i.freeze

  def test_words
    assert_match(TEST_REGEX, FFaker::FreedomIpsum.words.join(' '))
  end

  def test_word
    assert_match(TEST_REGEX, FFaker::FreedomIpsum.word)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_freedom_ipsum.rb