Skip to content
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

Deprecate alchemy request helpers #1284

Merged
merged 4 commits into from
Aug 16, 2017

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Aug 14, 2017

There is generally no need to use this module. Instead, in a functional/controller test against a Alchemy controller, just use standard Rails functionality by including:

routes { Alchemy::Engine.routes }

and then use standard Rails test get, post etc methods.

For easy deprecations
@tvdeyen tvdeyen added this to the 4.0 milestone Aug 14, 2017
There is no need to use these helpers. Instead, in a functional/controller test against a Alchemy controller, just use standard Rails functionality by including:

    routes { Alchemy::Engine.routes }

And then use standard Rails test `get`, `post` etc methods.
The `xhr` request spec helper will be removed from Rails 5.1
@tvdeyen tvdeyen force-pushed the deprecate-alchemy-request-helpers branch from 89678f7 to cd92c1c Compare August 14, 2017 12:40
@tvdeyen tvdeyen requested a review from robinboening August 14, 2017 13:21
Copy link
Contributor

@mamhoff mamhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I especially like the addition of our own deprecation class!

@tvdeyen tvdeyen removed the request for review from robinboening August 16, 2017 10:12
@tvdeyen tvdeyen merged commit edc4b5e into AlchemyCMS:master Aug 16, 2017
@tvdeyen tvdeyen deleted the deprecate-alchemy-request-helpers branch August 16, 2017 10:13
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.

2 participants