wrest
wrest copied to clipboard
2 Uris with different order of parameters should be equal.
Uri.new("http://localhost:3000/type=bottle&owner=kai") should == Uri.new("http://localhost:3000/owner=kai&type=bottle")
Also shouldn't the hashes too match even if the order of the query parameters are different?
Uri.new("http://localhost:3000/type=bottle&owner=kai").hash should == Uri.new("http://localhost:3000/owner=kai&type=bottle").hash