Skip to content

Commit 418dad0

Browse files
committed
expand path for it test's -I so it works fine across JRubies
1 parent 85b4360 commit 418dad0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Rakefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ namespace :integration do
6060
unless File.exist?(File.join(it_path, 'Gemfile.lock'))
6161
raise "bundle not installed, run `rake integration:install'"
6262
end
63-
loader = "ARGV.each { |f| require f }"
64-
test_files = FileList['src/test/integration/*_test.rb'].to_a
65-
test_files.map! { |path| path.sub('src/test/integration/', '') }
66-
lib = [ 'lib', 'src/test/integration' ]
67-
ruby "-I#{lib.join(':')} -e \"#{loader}\" #{test_files.map { |f| "\"#{f}\"" }.join(' ')}"
63+
loader = "ARGV.each { |f| require f }" ; lib = [ 'lib', it_path ]
64+
test_files = FileList['src/test/integration/*_test.rb'].map { |path| path.sub('src/test/integration/', '') }
65+
ruby "-I#{lib.join(':')} -C src/test/integration -e \"#{loader}\" #{test_files.map { |f| "\"#{f}\"" }.join(' ')}"
6866
end
6967
end

0 commit comments

Comments
 (0)