From 32d041322dc18984e0e225476a825188c4878102 Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Wed, 19 Jun 2024 10:04:22 +0100 Subject: [PATCH] Add missing spec for #2765 --- spec/rspec/rails/matchers/have_http_status_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/rspec/rails/matchers/have_http_status_spec.rb b/spec/rspec/rails/matchers/have_http_status_spec.rb index 002c805be..5d75690c7 100644 --- a/spec/rspec/rails/matchers/have_http_status_spec.rb +++ b/spec/rspec/rails/matchers/have_http_status_spec.rb @@ -491,4 +491,10 @@ def create_response(opts = {}) let(:code) { 555 } end end + + context 'with deprecated rack status codes' do + it 'supports the original names' do + expect(create_response(status: 422)).to have_http_status(:unprocessable_entity) + end + end end