Skip to content

Commit

Permalink
Merge pull request #218 from Shopify/rwstauner/load-paths
Browse files Browse the repository at this point in the history
Support multiple -I args
  • Loading branch information
rwstauner committed Jun 14, 2023
2 parents 99b701a + 55e662a commit 90f9578
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ruby/lib/minitest/queue/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def parser
EOS
opts.separator ""
opts.on('-IPATHS', help) do |paths|
self.load_paths = paths
self.load_paths = [load_paths, paths].compact.join(':')
end

help = <<~EOS
Expand Down
12 changes: 12 additions & 0 deletions ruby/test/minitest/queue/runner_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true
require 'minitest/queue/runner'
require 'test_helper'

module Minitest::Queue
class RunnerTest < Minitest::Test
def test_multiple_load_paths
runner = Runner.new(["-Ilib:test", "-Ielse"])
assert_equal("lib:test:else", runner.send(:load_paths))
end
end
end

0 comments on commit 90f9578

Please sign in to comment.