lib/faker/movies/star_wars.rb in faker-2.14.0 vs lib/faker/movies/star_wars.rb in faker-2.15.0

- old
+ new

@@ -117,11 +117,11 @@ # # @faker.version 1.6.2 def wookiee_sentence sentence = sample(wookiee_words).capitalize - rand(0..10).times { sentence += ' ' + sample(wookiee_words) } + rand(0..10).times { sentence += " #{sample(wookiee_words)}" } sentence + sample(['.', '?', '!']) end ## @@ -156,10 +156,10 @@ end raise ArgumentError, "Character for quotes can be left blank or #{quoted_characters.keys.join(', ')}" unless quoted_characters.key?(character.to_sym) end - fetch('star_wars.quotes.' + character) + fetch("star_wars.quotes.#{character}") end def call_numbers fetch_all('star_wars.call_numbers') end