Acceptance test throttle Retry-After header

This commit is contained in:
Gonzalo Rodriguez 2018-03-20 10:24:25 -03:00
parent d3404a7a91
commit 5e0cd031b6
No known key found for this signature in database
GPG key ID: 5DB8B81B049B8AB1

View file

@ -16,6 +16,8 @@ describe "#throttle" do
get "/", {}, "REMOTE_ADDR" => "1.2.3.4"
assert_equal 429, last_response.status
assert_equal "60", last_response.headers["Retry-After"]
assert_equal "Retry later\n", last_response.body
get "/", {}, "REMOTE_ADDR" => "5.6.7.8"