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

Update Consultation management workflow #139

Merged
merged 4 commits into from
Dec 12, 2016

Conversation

danguita
Copy link
Contributor

@danguita danguita commented Dec 12, 2016

Connects to #120.

What does this PR do?

This PR slightly updates the Consultation management workflow by redirecting back to the edit action when performing an update request.

Digging a bit deeper, it also prepares the testing environment for Rails 5.0+ Controller testing, which is now based in ActionDispatch::IntegrationTest. To do so, we're adding a bunch of helper methods to let managing both Admin and User sessions. They are just available by inheriting your controller tests from the GobiertoControllerTest class.

How should this be manually tested?

This could be tested by submitting a Consultation update and checking that the request gets redirected to the same Consultation edit URL showing the proper flash message.

i.e.: http:https://gobierto.dev/admin/budgets/consultations/<consultation_id>/edit.

@danguita danguita changed the title Update the Consultation management workflow Update Consultation management workflow Dec 12, 2016
@ferblape
Copy link
Member

👍 works as expected

@ferblape ferblape merged commit ca358e6 into master Dec 12, 2016
@danguita danguita deleted the 120-consultation-management-workflow branch December 12, 2016 07:35
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.

None yet

2 participants