Skip to content

Commit fa7a7f3

Browse files
committed
Add missing spec for #2765
1 parent cb5d739 commit fa7a7f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/rspec/rails/matchers/have_http_status_spec.rb

+6
Original file line numberDiff line numberDiff line change
@@ -491,4 +491,10 @@ def create_response(opts = {})
491491
let(:code) { 555 }
492492
end
493493
end
494+
495+
context 'with deprecated rack status codes' do
496+
it 'supports the original names' do
497+
expect(create_response(status: 422)).to have_http_status(:unprocessable_entity)
498+
end
499+
end
494500
end

0 commit comments

Comments
 (0)