Skip to content

Move both controller and request specs on controller move#175

Open
Envek wants to merge 1 commit intorubyatscale:mainfrom
Envek:feat/move-request-specs-too
Open

Move both controller and request specs on controller move#175
Envek wants to merge 1 commit intorubyatscale:mainfrom
Envek:feat/move-request-specs-too

Conversation

@Envek
Copy link

@Envek Envek commented Mar 2, 2026

Fixes #174

In Packs::Private::FileMoveOperation I've changed method spec_file_move_operation to spec_file_move_operations (returning array) because controllers can have both regular controller specs and request specs and we probably want to move both! (And I have both in a real app I have at hand)
Also that should be more future proof even though the method itself is way too specific (maybe this is the time to implement some strategy pattern mentioned in code comments above? 🤔)

  • I bumped the gem version (or don't need to) 💎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

When moving a Controller, should Request Tests should move automatically too?

1 participant