diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-06-16 14:10:25 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-06-29 14:44:25 -0700 |
commit | 50aeb126498788eb766a33304e4b6c8d58b2d6b7 (patch) | |
tree | 8c7ca9c193d66772e391fd5ec2735da755183ecd /spec | |
parent | d35e54d5338e35407db194290feece410c8eb517 (diff) | |
download | bundler-50aeb126498788eb766a33304e4b6c8d58b2d6b7.tar.gz |
Add --no-color class option to Bundler::CLI
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/helpers.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index 468fd0fca1..d870bbf09e 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -46,10 +46,11 @@ module Spec def bundle(cmd, options = {}) expect_err = options.delete(:expect_err) exit_status = options.delete(:exit_status) + options["no-color"] = true unless options.key?("no-color") env = (options.delete(:env) || {}).map{|k,v| "#{k}='#{v}' "}.join args = options.map do |k,v| - v == true ? " --#{k}" : " --#{k} #{v}" + v == true ? " --#{k}" : " --#{k} #{v}" if v end.join gemfile = File.expand_path('../../../bin/bundle', __FILE__) cmd = "#{env}#{Gem.ruby} -I#{lib} #{gemfile} #{cmd}#{args}" |