Skip to content

Commit 98a466f

Browse files
authored
Update test_helper.rb
Signed-off-by: Justin Kenyon <[email protected]>
1 parent 4d94176 commit 98a466f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,15 @@ def convert_from_real_to_query_safe(string)
252252
duplicate = string.dup.to_s
253253

254254
UNSAFE_TO_SAFE_STRING_MAPPINGS.keys.each_with_object(duplicate) do |key, new_string|
255-
new_string.gsub!(key, UNSAFE_TO_SAFE_STRING_MAPPINGS[key])
255+
new_string = new_string.gsub(key, UNSAFE_TO_SAFE_STRING_MAPPINGS[key])
256256
end
257257
end
258258

259259
def convert_from_query_safe_to_real(string)
260260
duplicate = string.dup.to_s
261261

262262
SAFE_TO_UNSAFE_STRING_MAPPINGS.keys.each_with_object(duplicate) do |key, new_string|
263-
new_string.gsub!(key, SAFE_TO_UNSAFE_STRING_MAPPINGS[key])
263+
new_string = new_string.gsub(key, SAFE_TO_UNSAFE_STRING_MAPPINGS[key])
264264
end
265265
end
266266

0 commit comments

Comments
 (0)