From 5e0cd031b66651033ea8148c829fca00cd142b4c Mon Sep 17 00:00:00 2001 From: Gonzalo Rodriguez Date: Tue, 20 Mar 2018 10:24:25 -0300 Subject: [PATCH] Acceptance test throttle Retry-After header --- spec/acceptance/throttling_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/acceptance/throttling_spec.rb b/spec/acceptance/throttling_spec.rb index e157f50..2ad4605 100644 --- a/spec/acceptance/throttling_spec.rb +++ b/spec/acceptance/throttling_spec.rb @@ -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"