add_random_words

in spec/spec_helper.rb [81:91]


def add_random_words(string, count = 5)
  words = string.dup.split
  ipsum = File.read(fixture_path('ipsum.txt')).split
  count.times do
    word = ipsum[Random.rand(ipsum.length)]
    index = Random.rand(words.length)
    words.insert(index, word)
  end
  words.join(' ')
end