Sha256: 233e69fa5ce194e524853c20fa6d1e3ec89241ccf4cc3dc7a69ac07473de65e8
Contents?: true
Size: 996 Bytes
Versions: 2
Compression:
Stored size: 996 Bytes
Contents
= Committee == Committee/RedundantResponseStatusAssertions |=== | Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed | Pending | Yes | Yes | 0.1 | - |=== Check for validation of redundant response HTTP status codes. === Examples [source,ruby] ---- # bad it 'something' do subject expect(response).to have_http_status 400 assert_schema_conform(400) end # good it 'something' do subject assert_schema_conform(400) end ---- == Committee/UnspecifiedExpectedStatus |=== | Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed | Pending | Yes | Yes | 0.1 | - |=== Check if the status code is specified as an argument to the method of the Committee where the expected response status code is required. === Examples [source,ruby] ---- # bad it 'something' do subject expect(response).to have_http_status 400 assert_schema_conform end # good it 'something' do subject assert_schema_conform(400) end ----
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-committee-0.1.1 | docs/modules/ROOT/pages/cops_committee.adoc |
rubocop-committee-0.1.0 | docs/modules/ROOT/pages/cops_committee.adoc |