Move specs in volunteers_controller_spec to volunteers_spec #4447
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What github issue is this PR for, if any?
Part of #4129
Not closing yet as there will be more on the way.
What changed, and why?
The
volunteers_controller_spec
file was removed and all of its specs moved tovolunteers_spec
Most of it was already being tested in other places, so I only added whatever was missing
describe "PATCH /deactivate"
I took the liberty of improving the volunteers edit action:
How will this affect user permissions?
How is this tested? (please write tests!) 💖💪
Screenshots please :)
Feedback please? (optional)
request
, for example:volunteers_spec
tovolunteers_request_spec
That would follow rspec's standard naming convention and avoid a wrong connection to
volunteer_spec
which is the model one.I'm not sure if that's already planned, because some files are named that way, but I chose to follow the instructions from here: https://github.com/rubyforgood/casa/blob/main/doc/architecture-decisions/0008-controller-specs.txt