Skip to content

Commit

Permalink
Merge pull request #306 from grzuy/acceptance_test_retry_after
Browse files Browse the repository at this point in the history
Acceptance test throttle Retry-After header
  • Loading branch information
grzuy authored Mar 20, 2018
2 parents d3404a7 + 5e0cd03 commit e87394d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/acceptance/throttling_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
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"

Expand Down

0 comments on commit e87394d

Please sign in to comment.