Skip to content

Commit

Permalink
Add missing spec for #2765
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Jun 19, 2024
1 parent 158af83 commit 32d0413
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/rspec/rails/matchers/have_http_status_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 32d0413

Please sign in to comment.