Sha256: ab74cc0edd3daf038e36192cf570472320dc0797b1b569d364baedaf54d91fca
Contents?: true
Size: 869 Bytes
Versions: 9
Compression:
Stored size: 869 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestHipsterIpsum < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::HipsterIpsum, :paragraph, :paragraphs, :sentence, :sentences, :word, :words ) TEST_REGEX = /\+1|[ a-z]+/i.freeze def test_paragraph assert_match(TEST_REGEX, FFakerTW::HipsterIpsum.paragraph) end def test_sentence assert_match(TEST_REGEX, FFakerTW::HipsterIpsum.sentence) end def test_paragraphs assert_match(TEST_REGEX, FFakerTW::HipsterIpsum.paragraphs.join(' ')) end def test_sentences assert_match(TEST_REGEX, FFakerTW::HipsterIpsum.sentences.join(' ')) end def test_words assert_match(TEST_REGEX, FFakerTW::HipsterIpsum.words.join(' ')) end def test_word assert_match(TEST_REGEX, FFakerTW::HipsterIpsum.word) end end
Version data entries
9 entries across 9 versions & 1 rubygems