-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hello,
Thanks for your work on in-parallel. However, I see that whilst running the tests, a require call is being made relative to the directory from spec/ to lib/:
in-parallel/spec/in_paralell_spec.rb
Line 2 in faaea5c
| require_relative('../lib/in_parallel') |
To know more why, refer this: https://docs.rubocop.org/rubocop-packaging/cops_packaging.html#require-relative-hardcoding-lib-rationale
Here's the patch to fix this:
Description: Fix autopkgtest.
Author: Utkarsh Gupta <utkarsh@debian.org>
Bug-Debian: https://bugs.debian.org/979700
--- a/spec/in-paralell_spec.rb
+++ b/spec/in-paralell_spec.rb
@@ -1,5 +1,6 @@
require 'rspec'
-require_relative('../lib/in_parallel')
+require 'in_parallel'
+
include InParallel
TMP_FILE = Dir.mktmpdir + 'test_file.txt'
Should you need help, let me know!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels