Skip to content

Some Errors Are Awkward to Test with Request Specs #2024

@jherdman

Description

@jherdman

What Ruby, Rails and RSpec versions are you using?

Ruby version: 2.4.1p111
Rails version: 5.1.3
Rspec version: 3.8

Observed behaviour

In a request spec, an example that results in a 404 raises an error.

Expected behaviour

I should be able to opt into having a 404 response returned. In Controller Specs I can call render_views to achieve this behaviour.

Can you provide an example app?

I can if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions