Sha256: c81ef4d2858411dff50ea7fab2829c40117a24804f1441c97cdfab4604ab6003

Contents?: true

Size: 430 Bytes

Versions: 3

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

Version Path
ffaker-2.21.0 test/test_freedom_ipsum.rb
ffaker-2.20.0 test/test_freedom_ipsum.rb
ffaker-2.19.0 test/test_freedom_ipsum.rb