Skip to content

Commit

Permalink
what about this?
Browse files Browse the repository at this point in the history
  • Loading branch information
jarthod committed Jul 27, 2022
1 parent e7df0bd commit aef7db0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/addressable/uri_spec.rb
Expand Up @@ -5993,9 +5993,8 @@ def to_str
end

it "should not fail with UTF-8 incompatible string" do
expect(Addressable::URI.unencode_component(
"/M%E9thode/non/authoris\xE9e?param=\xFC".b
)).to eq("/M\xE9thode/non/authoris\xE9e?param=\xFC")
url = "/M%E9/\xE9?p=\xFC".b
expect(Addressable::URI.unencode_component(url)).to eq("/M\xE9/\xE9?p=\xFC")
end

it "should result in correct percent encoded sequence as a URI" do
Expand Down

0 comments on commit aef7db0

Please sign in to comment.