mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	cli_spec.rb: prefer BUNDLE_RUBY
* spec/bundler/bundler/cli_spec.rb: prefer BUNDLE_RUBY over env hack. on macOS 10.11 or later, some system commands, e.g. /bin/sh and /usr/bin/env, clear DYLD_LIBRARY_PATH environment variable which is necessary to run not-yet installed command. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									42c2f3ee8d
								
							
						
					
					
						commit
						73adee9d6c
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -15,7 +15,8 @@ RSpec.describe "bundle executable" do | |||
| 
 | ||||
|   it "looks for a binary and executes it if it's named bundler-<task>" do | ||||
|     File.open(tmp("bundler-testtasks"), "w", 0o755) do |f| | ||||
|       f.puts "#!/usr/bin/env ruby\nputs 'Hello, world'\n" | ||||
|       ruby = ENV['BUNDLE_RUBY'] || "/usr/bin/env ruby" | ||||
|       f.puts "#!#{ruby}\nputs 'Hello, world'\n" | ||||
|     end | ||||
| 
 | ||||
|     with_path_added(tmp) do | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 nobu
						nobu