spec/spec_helper.rb in licensee-9.14.1 vs spec/spec_helper.rb in licensee-9.15.0

- old
+ new

@@ -78,21 +78,21 @@ Mustache.render license.content_for_mustache, field_values end # Add random words to the end of a license to test similarity tollerances def add_random_words(string, count = 5) - words = string.dup.split(' ') - ipsum = File.read(fixture_path('ipsum.txt')).split(' ') + 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 # Init git dir -# Note: we disable gpgsign and restore it to its original setting to avoid +# NOTE: we disable gpgsign and restore it to its original setting to avoid # Signing commits during tests and slowing down / breaking specs def git_init(path) Dir.chdir path do `git init` `git config --local commit.gpgsign false`