Skip to content

Dynamic object name in test helper#165

Open
woller wants to merge 2 commits into
pantographe:mainfrom
woller:dynamic-object-name-in-test-helper
Open

Dynamic object name in test helper#165
woller wants to merge 2 commits into
pantographe:mainfrom
woller:dynamic-object-name-in-test-helper

Conversation

@woller

@woller woller commented Jul 18, 2024

Copy link
Copy Markdown

Instead of hard coding :useras the object name in the supplied test_helper, this PR checks if the class of the object passed to form_with responds to model_name and uses the param key from there. If it does not respond, it defaults to user.

@nicolas-brousse
nicolas-brousse requested review from Spone and nicolas-brousse and removed request for Spone July 18, 2024 13:16
@Spone

Spone commented Jul 19, 2024

Copy link
Copy Markdown
Collaborator

Great! Can you please add a changelog entry?

Also, can we add a test that uses this new behavior?

@Spone

Spone commented Jun 5, 2025

Copy link
Copy Markdown
Collaborator

@woller can you rebase? We fixed CI in main.

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.

2 participants