Better assertion logic
This commit is contained in:
parent
425329bacd
commit
4e6f0af4ce
1 changed files with 4 additions and 4 deletions
|
|
@ -76,14 +76,14 @@ defmodule Pleroma.HTTPTest do
|
|||
|
||||
url_with_space = "https://tsundere.love/emoji/Pack 1/koronebless.png?foo=bar baz"
|
||||
|
||||
result = HTTP.get(url_with_space)
|
||||
{:ok, result} = HTTP.get(url_with_space)
|
||||
|
||||
assert result == {:ok, %Tesla.Env{status: 200, body: "emoji data"}}
|
||||
assert result.status == 200
|
||||
|
||||
properly_encoded_url = "https://tsundere.love/emoji/Pack%201/koronebless.png?foo=bar+baz"
|
||||
|
||||
result = HTTP.get(properly_encoded_url)
|
||||
{:ok, result} = HTTP.get(properly_encoded_url)
|
||||
|
||||
assert result == {:ok, %Tesla.Env{status: 200, body: "emoji data"}}
|
||||
assert result.status == 200
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue