Skip to content

Remove the version check in have_http_status #1965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2018
Merged

Remove the version check in have_http_status #1965

merged 1 commit into from
Nov 14, 2018

Conversation

wbreeze
Copy link
Contributor

@wbreeze wbreeze commented Mar 12, 2018

The successful?, server_error?, and not_found? methods for ActionDispatch::TestResponse have existed in Rails for a very long time. It isn't necessary to check for Rails 5.2 or greater in order to use them.

This is an improvement on #1951 which has been merged.

The successful?, server_error?, and not_found? methods for
ActionDispatch::TestResponse have existed in Rails for a very long time.
It isn't necessary to check for Rails 5.2 or greater in order to use them.
@wbreeze wbreeze changed the title Comment-out the version check in have_http_status Remove the version check in have_http_status Mar 13, 2018
@wbreeze
Copy link
Contributor Author

wbreeze commented Mar 13, 2018

@JonRowe So happy to be able to do this.

@wbreeze wbreeze closed this Nov 14, 2018
@JonRowe JonRowe reopened this Nov 14, 2018
@JonRowe JonRowe merged commit 80afb90 into rspec:master Nov 14, 2018
@JonRowe
Copy link
Member

JonRowe commented Nov 14, 2018

Thanks, sorry this slipped through the cracks

@benoittgt
Copy link
Member

Thanks!

benoittgt pushed a commit to benoittgt/rspec-rails that referenced this pull request May 1, 2019
The successful?, server_error?, and not_found? methods for
ActionDispatch::TestResponse have existed in Rails for a very long time.
It isn't necessary to check for Rails 5.2 or greater in order to use them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants