Search code examples
rubyshouldatestunit

Why am I not getting colors with shoulda and test::unit?


I have 2 identical ruby setups. One of them is a VM of ubuntu running inside of windows. The other is a native ubuntu install. On the VM, my Test::Unit output is colored with green, yellow, and red.

Both of them are running ruby-1.9.2-p180, installed through rvm. Both of them have exactly the same gems installed, as verified by bundle install. The code is exactly the same, because the source is stored in a dropbox folder. I have verified the $LOAD_PATH is exactly the same. Both consoles are capable of displaying color, because both display green when running bundle install.

What other possibilities are there?


Solution

  • I'd guess that you have different TERM environment variables inside the VM than you do outside the VM.