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

Implement check to prevent duplicate job naming #2496

Merged
merged 2 commits into from Apr 20, 2021
Merged

Implement check to prevent duplicate job naming #2496

merged 2 commits into from Apr 20, 2021

Conversation

ghost
Copy link

@ghost ghost commented Apr 20, 2021

Description

When generating a new job with:

    rails g job mailer_job

Rails will not append another _job to the Job-Name or the file.

This pr tries to align the creation of the spec file with the creation of the job file and checks for the file suffix before appending another _job.

Example

Setup

	rails g job sms_sending_job

Before

	spec/jobs/sms_sending_job_job.rb

After

	spec/jobs/sms_sending_job.rb

@JonRowe JonRowe merged commit 66a0bc0 into rspec:main Apr 20, 2021
@JonRowe
Copy link
Member

JonRowe commented Apr 20, 2021

Thanks!

JonRowe added a commit that referenced this pull request Apr 20, 2021
JonRowe pushed a commit that referenced this pull request Apr 21, 2021
* Implement check to prevent duplicate job naming
JonRowe added a commit that referenced this pull request Apr 21, 2021
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

1 participant