Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 9b29513

Browse files
committed
Dup string to avoid future frozen value from symbols
1 parent 7d2735f commit 9b29513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/core/drb.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def add_full_description(argv)
9191
def add_filter(argv, name, hash)
9292
hash.each_pair do |k, v|
9393
next if CONDITIONAL_FILTERS.include?(k)
94-
tag = name == :inclusion ? k.to_s : "~#{k}".dup
94+
tag = name == :inclusion ? k.to_s.dup : "~#{k}".dup
9595
tag << ":#{v}" if v.is_a?(String)
9696
argv << "--tag" << tag
9797
end unless hash.empty?

0 commit comments

Comments
 (0)