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"