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

Replace __FILE__ with __dir__ and other minor chefstyle fixes #61

Merged
merged 3 commits into from
Sep 9, 2020

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Sep 9, 2020

A few new chefstyle rules to improve readability here.

Signed-off-by: Tim Smith tsmith@chef.io

A few new chefstyle rules to improve readability here.

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 requested review from a team as code owners September 9, 2020 06:41
@@ -18,7 +18,7 @@
#

$TESTING = true
$:.push File.join(File.dirname(__FILE__), "..", "lib")
$:.push File.join(__dir__, "..", "lib")
Copy link
Contributor

Choose a reason for hiding this comment

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

lib/ is automatically added to the load path in rspec so this is likely unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@phiggins can you make that a suggestion?

Signed-off-by: Tim Smith <tsmith@chef.io>

Co-authored-by: pete higgins <pete@peterhiggins.org>
spec/spec_helper.rb Outdated Show resolved Hide resolved
Signed-off-by: Tim Smith <tsmith@chef.io>

Co-authored-by: pete higgins <pete@peterhiggins.org>
@tas50 tas50 merged commit 7886fdc into master Sep 9, 2020
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