return 429 for too many requests instead of 421

This commit is contained in:
Albert Yi
2016-10-18 13:32:41 -07:00
parent b17cd5bffc
commit 2424f24fcd
4 changed files with 16 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ class PostsControllerTest < ActionController::TestCase
end
get :index, {:format => "json", :login => @user.name, :api_key => @user.api_key.key}
assert_response 421
assert_response 429
end
end