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

Add generator for test/test_helper.rb #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gabrieldeal
Copy link

Add a generator for test/test_helper.rb that only tries to generate the file if it does not already exist.

My project didn't have a test_helper file. I assumed it was supposed to be from some gem and spent too much time trying to figure out what gem before I realized rails generate new was supposed to have created it.

Only try to generate it if it does not already exist.
@stuarthannig
Copy link

+1

Had spec_helper but didn't want to use that.

Without test_helper the benchmark won't print results.

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