Skip to content

Commit

Permalink
Fix bizarre libs path issue
Browse files Browse the repository at this point in the history
When __dir__ contains a folder/directory containing a `:`, then the path gets mangled at some point. I could not figure out why, but adding the relative path works just fine (and, in fact, `t.libs` contains just `"lib"` which also is a relative path -- so it is consistent).
  • Loading branch information
denisdefreyne committed Sep 29, 2024
1 parent 7d1a172 commit 6b565e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adsf-live/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
t.test_files = Dir[__dir__ + '/test/**/test_*.rb']
t.libs << (__dir__ + '/test')
t.libs << 'test'
t.verbose = false
t.warning = false # TODO: turn this back on when rack-livereload is fixed
end
Expand Down
2 changes: 1 addition & 1 deletion adsf/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
t.test_files = Dir[__dir__ + '/test/**/test_*.rb']
t.libs << (__dir__ + '/test')
t.libs << 'test'
t.verbose = false
end

Expand Down

0 comments on commit 6b565e3

Please sign in to comment.