Skip to content

Commit

Permalink
Update test_helper.rb
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Kenyon <[email protected]>
  • Loading branch information
kenyonj authored Feb 5, 2025
1 parent 4d94176 commit 98a466f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,15 @@ def convert_from_real_to_query_safe(string)
duplicate = string.dup.to_s

UNSAFE_TO_SAFE_STRING_MAPPINGS.keys.each_with_object(duplicate) do |key, new_string|
new_string.gsub!(key, UNSAFE_TO_SAFE_STRING_MAPPINGS[key])
new_string = new_string.gsub(key, UNSAFE_TO_SAFE_STRING_MAPPINGS[key])
end
end

def convert_from_query_safe_to_real(string)
duplicate = string.dup.to_s

SAFE_TO_UNSAFE_STRING_MAPPINGS.keys.each_with_object(duplicate) do |key, new_string|
new_string.gsub!(key, SAFE_TO_UNSAFE_STRING_MAPPINGS[key])
new_string = new_string.gsub(key, SAFE_TO_UNSAFE_STRING_MAPPINGS[key])
end
end

Expand Down

0 comments on commit 98a466f

Please sign in to comment.