Skip to content

Commit

Permalink
Dup string to avoid future frozen value from symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Nov 20, 2024
1 parent 7d2735f commit 9b29513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/core/drb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def add_full_description(argv)
def add_filter(argv, name, hash)
hash.each_pair do |k, v|
next if CONDITIONAL_FILTERS.include?(k)
tag = name == :inclusion ? k.to_s : "~#{k}".dup
tag = name == :inclusion ? k.to_s.dup : "~#{k}".dup
tag << ":#{v}" if v.is_a?(String)
argv << "--tag" << tag
end unless hash.empty?
Expand Down

0 comments on commit 9b29513

Please sign in to comment.