Skip to content

Commit

Permalink
Update Rakefile
Browse files Browse the repository at this point in the history
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
  • Loading branch information
eregon and kou authored Nov 27, 2023
1 parent fe290a4 commit 5fd530a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ else
task :compile
end
Rake::TestTask.new(:test) do |t|
ENV["RUBYOPT"] = "-I" + [*(extask.lib_dir if extask), "test/lib"].join(File::PATH_SEPARATOR)
t.libs << extask.lib_dir if extask
if extask
ENV["RUBYOPT"] = "-I" + [extask.lib_dir, "test/lib"].join(File::PATH_SEPARATOR)
t.libs << extask.lib_dir
else
ENV["RUBYOPT"] = "-Itest/lib"
end
t.libs << "test/lib"
t.ruby_opts << "-rhelper"
t.test_files = FileList["test/**/test_*.rb"]
Expand Down

0 comments on commit 5fd530a

Please sign in to comment.