Skip to content

Commit

Permalink
test: change reserved delimiters to resolvable url
Browse files Browse the repository at this point in the history
  • Loading branch information
luqven committed Apr 16, 2021
1 parent efc732f commit 40ec089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/units/path_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def test_relative_path_with_params
end

def test_file_path_with_reserved_delimiters
url = "https://demo.imgix.net/%20%3C%3E%5B%5D%7B%7D%7C%5C%5C%5E%25.jpg?h=200&w=200&s=c53e7dc75b2d8fb70006f12357881622"
path = client.path("/ <>[]{}|\\\\^%.jpg").h(200).w(200)
url = "https://demo.imgix.net/%20%3C%3E%5B%5D%7B%7D%7C%5C%5E%25.jpg?h=200&w=200&s=1731846fd046c84270d052b1152b0cfa"
path = client.path("/ <>[]{}|\\^%.jpg").h(200).w(200)
assert_equal url, path.to_url
end

Expand Down

0 comments on commit 40ec089

Please sign in to comment.