Sha256: 717d821e2f050b6eca9c6a5b1495186529c218f87063d4ef1fa4fa308c47b652

Contents?: true

Size: 624 Bytes

Versions: 15

Compression:

Stored size: 624 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

15 entries across 15 versions & 1 rubygems

Version Path
ffaker-1.21.0 test/test_hipster_ipsum.rb
ffaker-1.20.0 test/test_hipster_ipsum.rb
ffaker-1.19.0 test/test_hipster_ipsum.rb
ffaker-1.18.0 test/test_hipster_ipsum.rb
ffaker-1.17.0 test/test_hipster_ipsum.rb
ffaker-1.16.2 test/test_hipster_ipsum.rb
ffaker-1.16.1 test/test_hipster_ipsum.rb
ffaker-1.16.0 test/test_hipster_ipsum.rb
ffaker-1.15.0 test/test_hipster_ipsum.rb
ffaker-1.14.0 test/test_hipster_ipsum.rb
ffaker-1.13.0 test/test_hipster_ipsum.rb
ffaker-1.12.1 test/test_hipster_ipsum.rb
ffaker-1.12.0 test/test_hipster_ipsum.rb
ffaker-1.11.0 test/test_hipster_ipsum.rb
ffaker-1.10.1 test/test_hipster_ipsum.rb