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

Remove type metadata from templates #2730

Closed
wants to merge 1 commit into from

Conversation

r7kamura
Copy link
Contributor

@r7kamura r7kamura commented Feb 7, 2024

rspec-rails will generate spec/rails_helper.rb with config.infer_spec_type_from_file_location! enabled. So by default it assumes a project that does not explicitly specify type metadata.

https://github.com/rspec/rspec-rails/blob/06d05aba209565f5bc940aa9e67232c8616e5197/lib/generators/rspec/install/templates/spec/ rails_helper.rb#L78

Therefore, shouldn't the generators also generate a test file skeleton that does not explicitly specify type metadata?

@pirj
Copy link
Member

pirj commented Feb 7, 2024

#2507 (comment) we are more incluned to keep explicit types, and remove inferred.

@pirj pirj closed this Feb 7, 2024
@r7kamura r7kamura deleted the type-metatag-remove branch February 7, 2024 05:17
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