Skip to content

Commit

Permalink
fix: Rack renamed 422 status name
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraichen committed Jun 30, 2024
1 parent bbda23b commit a9079fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/restify_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
# Because we forgot to send a "name" the server complains
# with an error code that will lead to a raised error.

expect(e.status).to eq :unprocessable_entity
expect(e.status).to eq :unprocessable_content
expect(e.code).to eq 422
expect(e.errors).to eq 'name' => ["can't be blank"]
end
Expand Down Expand Up @@ -200,7 +200,7 @@

expect { create_user_promise.value! }.to \
raise_error(Restify::ClientError) do |e|
expect(e.status).to eq :unprocessable_entity
expect(e.status).to eq :unprocessable_content
expect(e.code).to eq 422
expect(e.errors).to eq 'name' => ["can't be blank"]
end
Expand Down

0 comments on commit a9079fe

Please sign in to comment.