Skip to content

Commit

Permalink
expand path for it test's -I so it works fine across JRubies
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Nov 5, 2016
1 parent 85b4360 commit 418dad0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ namespace :integration do
unless File.exist?(File.join(it_path, 'Gemfile.lock'))
raise "bundle not installed, run `rake integration:install'"
end
loader = "ARGV.each { |f| require f }"
test_files = FileList['src/test/integration/*_test.rb'].to_a
test_files.map! { |path| path.sub('src/test/integration/', '') }
lib = [ 'lib', 'src/test/integration' ]
ruby "-I#{lib.join(':')} -e \"#{loader}\" #{test_files.map { |f| "\"#{f}\"" }.join(' ')}"
loader = "ARGV.each { |f| require f }" ; lib = [ 'lib', it_path ]
test_files = FileList['src/test/integration/*_test.rb'].map { |path| path.sub('src/test/integration/', '') }
ruby "-I#{lib.join(':')} -C src/test/integration -e \"#{loader}\" #{test_files.map { |f| "\"#{f}\"" }.join(' ')}"
end
end

0 comments on commit 418dad0

Please sign in to comment.