Sha256: d4db4c3112cfde9a4510cc613fe7db7eebf32ba499ced5aadac7f665ee663fd2

Contents?: true

Size: 643 Bytes

Versions: 7

Compression:

Stored size: 643 Bytes

Contents

# encoding: utf-8

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

7 entries across 7 versions & 2 rubygems

Version Path
ffaker-1.25.0 test/test_hipster_ipsum.rb
ffaker-1.24.0 test/test_hipster_ipsum.rb
ffakerer-1.0.2 test/test_hipster_ipsum.rb
ffaker-1.23.0 test/test_hipster_ipsum.rb
ffakerer-1.0.1 test/test_hipster_ipsum.rb
ffaker-1.22.1 test/test_hipster_ipsum.rb
ffaker-1.22.0 test/test_hipster_ipsum.rb