Sha256: 25ae0468b08295765fe1933c64a6b556bb7a64de56d2e0f32222830b4626ad17

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

require 'helper'

class TestHipsterIpsum < Test::Unit::TestCase

  def test_paragraph
    assert_match /1\+|[ a-z]+/i, Faker::HipsterIpsum.paragraph
  end

  def test_sentence
    assert_match /1\+|[ a-z]+/i, Faker::HipsterIpsum.sentence
  end

  def test_paragraphs
    assert_match /1\+|[ a-z]+/i, Faker::HipsterIpsum.paragraphs.join(" ")
  end

  def test_sentences
    assert_match /1\+|[ a-z]+/i, Faker::HipsterIpsum.sentences.join(" ")
  end

  def test_words
    assert_match /1\+|[ a-z]+/i, Faker::HipsterIpsum.words.join(" ")
  end

  def test_word
    assert_match /1\+|[a-z]+/i, Faker::HipsterIpsum.word
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffaker-1.9.1 test/test_hipster_ipsum.rb