Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 402 Bytes

RSpec-Rails-HaveHttpStatus.md

File metadata and controls

21 lines (13 loc) · 402 Bytes

Pattern: Missing use of have_http_status

Issue: -

Description

Checks that tests use have_http_status instead of equality matchers.

Examples

# bad
expect(response.status).to be(200)

# good
expect(response).to have_http_status(200)

Further Reading