Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在MINGW上获得窗户颜色的Rspec测试_Rspec_Ruby On Rails 3_Mingw_Ssh Agent - Fatal编程技术网

如何在MINGW上获得窗户颜色的Rspec测试

如何在MINGW上获得窗户颜色的Rspec测试,rspec,ruby-on-rails-3,mingw,ssh-agent,Rspec,Ruby On Rails 3,Mingw,Ssh Agent,我是Ruby的新手,只是想学习它,遵循 我正在运行GitBash MINGW for window,运行时(rspec 2.4.0) 我得到的答复是: You must use ANSICON 1.31 or later (http://adoxa.110mb.com/ansicon/) to use colour on Windows 。。。但是我很喜欢使用MINGW。如果我使用ANSICON,我似乎无法获得 ssh-add 为了工作,我得到了错误 Could not open a c

我是Ruby的新手,只是想学习它,遵循

我正在运行GitBash MINGW for window,运行时(rspec 2.4.0)

我得到的答复是:

You must use ANSICON 1.31 or later (http://adoxa.110mb.com/ansicon/) to use 
colour on Windows
。。。但是我很喜欢使用MINGW。如果我使用ANSICON,我似乎无法获得

ssh-add 
为了工作,我得到了错误

Could not open a connection to your authentication agent

我可以使用MINGW进行推送,使用ANSICON进行测试,但我更愿意将其全部放在一个控制台中

由于GitBash已经支持转义,您应该能够通过定义ANSICON环境变量来伪造RSpec/Ruby。不确定Ruby是否真的读取了它,但它的内容是“WxH(WxH)”,其中W&H是缓冲区的宽度和高度,W&H是窗口。

由于GitBash已经支持转义,您应该能够通过定义ANSICON环境变量来伪造RSpec/Ruby。不确定Ruby是否真的读取了它,但它的内容是“WxH(WxH)”,其中W&H是缓冲区的宽度和高度,W&H是窗口

Could not open a connection to your authentication agent