Sha256: b320c2b7a7ed269f52be20d643030902bf7c6550c959e383e205aebbcffc2f86

Contents?: true

Size: 878 Bytes

Versions: 9

Compression:

Stored size: 878 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(
    FFakerTW::HealthcareIpsum,
    :paragraph, :paragraphs, :sentence, :sentences, :word, :words
  )

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

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

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

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

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