Skip to content

Placements controller coverage#6817

Merged
compwron merged 2 commits intorubyforgood:mainfrom
hexdevs:sb-placements-controller-coverage
Apr 5, 2026
Merged

Placements controller coverage#6817
compwron merged 2 commits intorubyforgood:mainfrom
hexdevs:sb-placements-controller-coverage

Conversation

@stefannibrasil
Copy link
Copy Markdown
Contributor

@stefannibrasil stefannibrasil commented Apr 1, 2026

What github issue is this PR for, if any?

Closes #6816

What changed, and why?

  • The PlacementsController is a full CRUD for Youth placement records but only had a pending controller placeholder spec. This adds coverage for all actions.
  • Remove unused generate action from PlacementsController. This action is not defined anywhere at the controller level. Removing it to keep things tidy and clean up a standardrb todo item.

There are system tests for Placements: https://github.com/rubyforgood/casa/tree/main/spec/system/placements but the request specs are good unit tests to have anyway.

This action is not defined anywhere in the controller
level. Removing it to keep things tidy and clean up
a standardrb todo item.
@github-actions github-actions bot added ruby Pull requests that update Ruby code Tests! 🎉💖👏 labels Apr 1, 2026
@stefannibrasil stefannibrasil force-pushed the sb-placements-controller-coverage branch from 1d48808 to e21f187 Compare April 1, 2026 22:34
The PlacementsController is a full CRUD for Youth
placement records but only has a pending
controller placeholder spec.
This commit adds coverage for it.
@stefannibrasil stefannibrasil force-pushed the sb-placements-controller-coverage branch from e21f187 to 6eae19c Compare April 1, 2026 22:40
@stefannibrasil stefannibrasil marked this pull request as ready for review April 1, 2026 22:43
Copy link
Copy Markdown
Collaborator

@compwron compwron left a comment

Choose a reason for hiding this comment

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

:)

@compwron compwron merged commit 9ff149a into rubyforgood:main Apr 5, 2026
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.

Add coverage for PlacementsController

2 participants