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

Generate request specs when scaffold generator is used #2288

Merged
merged 4 commits into from Mar 13, 2020

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Mar 12, 2020

There are some important things to note when generating things, one, your project config will override defaults, even if thats non sensical (e.g. a project can generate controller and request specs here). Two, there are things Rails will generate out of your control.

I took a more minimal approach using rails helpers only and a bit of gsubing to get them to somewhere we'd like, and then had to play whack-a-mole on the tests. Apparently the as scaffolded api views don't work, I guess cause we use sequel lite?

edit still playing whack-a-mole

JonRowe and others added 4 commits March 12, 2020 09:33
Co-authored-by: Luka Lüdicke <klukasocial+github@gmail.com>
Co-authored-by: Luka Lüdicke <klukasocial+github@gmail.com>
Co-authored-by: Luka Lüdicke <klukasocial+github@gmail.com>
@JonRowe
Copy link
Member Author

JonRowe commented Mar 13, 2020

Fixes #2230

Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

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

Great job @klyonrad @JonRowe !

@pirj
Copy link
Member

pirj commented Mar 13, 2020

Changelog entry?

@JonRowe JonRowe merged commit 7ce0a76 into master Mar 13, 2020
@JonRowe JonRowe deleted the scaffold-request-specs branch March 13, 2020 09:07
JonRowe added a commit that referenced this pull request Mar 13, 2020
@JonRowe
Copy link
Member Author

JonRowe commented Mar 13, 2020

Added after the fact to prevent more builds 😂

JonRowe added a commit that referenced this pull request Mar 13, 2020
Generate request specs when scaffold generator is used
JonRowe added a commit that referenced this pull request Mar 13, 2020
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.

None yet

2 participants