File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ def build_ruby_cmd(options = {})
172172 requires << "#{ Path . spec_dir } /support/artifice/#{ artifice } .rb"
173173 end
174174
175- requires << " #{ Path . spec_dir } /support/ hax.rb"
175+ requires << hax
176176
177177 require_option = requires . map { |r | "-r#{ r } " }
178178
@@ -186,7 +186,7 @@ def gembin(cmd, options = {})
186186
187187 def gem_command ( command , options = { } )
188188 env = options [ :env ] || { }
189- env [ "RUBYOPT" ] = opt_add ( opt_add ( "-r#{ spec_dir } /support/ hax.rb " , env [ "RUBYOPT" ] ) , ENV [ "RUBYOPT" ] )
189+ env [ "RUBYOPT" ] = opt_add ( opt_add ( "-r#{ hax } " , env [ "RUBYOPT" ] ) , ENV [ "RUBYOPT" ] )
190190 options [ :env ] = env
191191
192192 # Sometimes `gem install` commands hang at dns resolution, which has a
Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ def man_dir
7575 @man_dir ||= lib_dir . join ( "bundler/man" )
7676 end
7777
78+ def hax
79+ @hax ||= spec_dir . join ( "support/hax.rb" )
80+ end
81+
7882 def tracked_files
7983 @tracked_files ||= git_ls_files ( tracked_files_glob )
8084 end
You can’t perform that action at this time.
0 commit comments