tests: fix referer spoofing test.

This commit is contained in:
evazion
2022-03-18 17:26:40 -05:00
parent c6e528a073
commit f0cd6227c3

View File

@@ -155,7 +155,7 @@ class DanbooruHttpTest < ActiveSupport::TestCase
response = Danbooru::Http.use(:spoof_referrer).get(httpbin_url("anything"))
assert_equal(200, response.status)
assert_equal("https://nghttp2.org", response.parse.dig("headers", "Referer"))
assert_equal(httpbin_url("anything"), response.parse.dig("headers", "Referer"))
end
end