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

Infer the spec type for generator specs #2597

Merged
merged 1 commit into from Apr 23, 2022
Merged

Conversation

jasonkarns
Copy link
Contributor

Generator specs are generated to spec/generator

Spec-type inferrence (based on file location) is not presently active for generator specs.

This adds :generator spec type to the mapping for inference by file location.

Generator specs are [generated to spec/generator](https://github.com/rspec/rspec-rails/blob/6f8e3ab154a1562919ff1c08b8d19ae5ff6152e9/lib/generators/rspec/generator/generator_generator.rb#L12)

Spec-type inferrence (based on file location) is not presently active for generator specs.

This adds `:generator ` spec type to the mapping for inference by file location.
@JonRowe JonRowe merged commit 5869721 into rspec:main Apr 23, 2022
@JonRowe
Copy link
Member

JonRowe commented Apr 23, 2022

Thanks, I'm merging this for completeness and its simple, but at some point this functionality will go away as its much more preferred to tag specs manually as its less problematic.

JonRowe added a commit that referenced this pull request Apr 24, 2022
JonRowe added a commit that referenced this pull request Apr 24, 2022
Infer the spec type for generator specs
JonRowe added a commit that referenced this pull request Apr 24, 2022
JonRowe added a commit that referenced this pull request Apr 24, 2022
Infer the spec type for generator specs
JonRowe added a commit that referenced this pull request Apr 24, 2022
@jasonkarns jasonkarns deleted the patch-1 branch July 28, 2022 18:47
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