• Peter Leitzen's avatar
    Add RuboCop for `have_gitlab_http_status(:symbol)` · 53b58da9
    Peter Leitzen authored
        # bad
        expect(response).to have_http_status(200)
        expect(response).to have_http_status(:ok)
        expect(response).to have_gitlab_http_status(200)
    
        # good
        expect(response).to have_gitlab_http_status(:ok)
    
    Our "Testing best practices" already suggests to prefer
    `have_gitlab_http_status` over `have_http_status`.
    53b58da9
have_gitlab_http_status.rb 2.99 KB