Skip to content

Commit

Permalink
Merge pull request #2500 from mattr/issue/fix-ruby-3-specs
Browse files Browse the repository at this point in the history
Fix: Duplicate array before concatenating
  • Loading branch information
koic authored Jun 21, 2022
2 parents 38e150a + 594c055 commit 9e54d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/faker/default/test_faker_coffee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def setup
@varieties = Faker::Base.fetch_all('coffee.variety')
blend_name_words_one = Faker::Base.fetch_all('coffee.name_1')
blend_name_words_two = Faker::Base.fetch_all('coffee.name_2')
@name_words = blend_name_words_one.concat(blend_name_words_two)
@name_words = blend_name_words_one.dup.concat(blend_name_words_two)
end

def test_origin
Expand Down

0 comments on commit 9e54d59

Please sign in to comment.