Skip to content

Commit

Permalink
Fix a mistake in a spec name (#2012)
Browse files Browse the repository at this point in the history
Followup: #2006

I renamed the wrong spec.

Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
  • Loading branch information
casperisfine and byroot committed Jan 16, 2023
1 parent 8c33750 commit 8e28099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spec_method_override.rb
Expand Up @@ -106,14 +106,14 @@ def app
env[Rack::RACK_ERRORS].read.must_include 'Bad request content body'
end

it "not modify REQUEST_METHOD for POST requests when the params are unparseable" do
it "not modify REQUEST_METHOD for POST requests when the params are unparseable because too deep" do
env = Rack::MockRequest.env_for("/", method: "POST", input: ("[a]" * 36) + "=1")
app.call env

env["REQUEST_METHOD"].must_equal "POST"
end

it "not modify REQUEST_METHOD for POST requests when the params are unparseable because too deep" do
it "not modify REQUEST_METHOD for POST requests when the params are unparseable" do
env = Rack::MockRequest.env_for("/", method: "POST", input: "(%bad-params%)")
app.call env

Expand Down

0 comments on commit 8e28099

Please sign in to comment.