Sha256: 2bc8479e5f3ad254cd59d773b493b3890aa36034b9c04aed6878071b2c1cdaf0

Contents?: true

Size: 436 Bytes

Versions: 9

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

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

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

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

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