Skip to content

Conversation

@nanobowers
Copy link
Contributor

Adds a script that can be used to check that require_relative for spec_helper is in each *_spec.rb file. Having the require in each file is helpful so each spec can be easily run standalone with ruby from the command line.

This is in response to ruby/spec#992 per @eregon 's request.

Note that this is a simple check for "require_relative .*spec_helper" in each *_spec.rb file and it would incorrectly fail the case where a *_spec.rb file required another file which required spec_helper.

Copy link
Member

@eregon eregon left a comment

Choose a reason for hiding this comment

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

Thanks!

@eregon eregon merged commit 838ee0c into ruby:master Jan 17, 2023
eregon added a commit to ruby/spec that referenced this pull request Jan 17, 2023
seven1m pushed a commit to seven1m/ruby_spec that referenced this pull request Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants