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