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

Resolves move controller specs to request specs #5349

Conversation

LeGorge
Copy link
Contributor

@LeGorge LeGorge commented Nov 12, 2023

What github issue is this PR for, if any?

Resolves #4129

What changed, and why?

Migrated all the remaining controller specs to request specs. The only ones left are concerns and ApplicationController specs which do not make sense to wright as request specs. As well as one overwrite of the ApplicationController on EmacipationsController.

Improved the emancipations specs to both account for what was tested in the controller spec and be better maintainable. Removed a bunch of specs here that are already tested as policy specs as well.

How will this affect user permissions?

  • no effect

How is this tested? (please write tests!) 💖💪

  • does not apply

Screenshots please :)

  • does not apply

Feelings gif (optional)

It took a while guys, since my first PR on this, but this spec migration is finally finished!! 🎉

@github-actions github-actions bot added ruby Pull requests that update Ruby code Tests! 🎉💖👏 labels Nov 12, 2023
@mattzollinhofer
Copy link
Contributor

I didn't read through the details but I just wanted to say Good Effort! Phew, working through specs isn't always easy.

@littleforest littleforest merged commit 7fec630 into rubyforgood:main Nov 14, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code Tests! 🎉💖👏
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move controller specs to request specs
3 participants