File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -1686,7 +1686,7 @@ yes-test-bundler: $(PREPARE_BUNDLER)
16861686 $(gnumake_recursive)$(XRUBY) \
16871687 -r./$(arch)-fake \
16881688 -e "exec(*ARGV)" -- \
1689- $(XRUBY) -C $(srcdir) -Ispec/bundler -Ispec/lib .bundle /bin/rspec \
1689+ $(XRUBY) -C $(srcdir) -Ispec/bundler -Ispec/lib spec /bin/rspec \
16901690 -r spec_helper $(RSPECOPTS) spec/bundler/$(BUNDLER_SPECS)
16911691no-test-bundler:
16921692
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env ruby
2+ # frozen_string_literal: true
3+
4+ require_relative "../bundler/support/setup"
5+
6+ Spec ::Rubygems . gem_load ( "rspec-core" , "rspec" )
Original file line number Diff line number Diff line change @@ -136,9 +136,11 @@ def sync_default_gems(gem)
136136 cp_r ( "#{ upstream } /bundler/spec" , "spec/bundler" )
137137 rm_rf ( "spec/bundler/bin" )
138138
139- parallel_tests_content = File . read ( "#{ upstream } /bundler/bin/parallel_rspec" ) . gsub ( "../spec" , "../bundler" )
140- File . write ( "spec/bin/parallel_rspec" , parallel_tests_content )
141- chmod ( "+x" , "spec/bin/parallel_rspec" )
139+ [ "parallel_rspec" , "rspec" ] . each do |binstub |
140+ content = File . read ( "#{ upstream } /bundler/bin/#{ binstub } " ) . gsub ( "../spec" , "../bundler" )
141+ File . write ( "spec/bin/#{ binstub } " , content )
142+ chmod ( "+x" , "spec/bin/#{ binstub } " )
143+ end
142144
143145 %w[ dev_gems test_gems rubocop_gems standard_gems ] . each do |gemfile |
144146 [ "rb.lock" , "rb" ] . each do |ext |
You can’t perform that action at this time.
0 commit comments