[rspec-users] rspec output not displaying properly in Windows

Andrew Pennebaker andrew.pennebaker at gmail.com
Fri Mar 8 14:38:42 UTC 2013


rspec's coloration displays incorrectly in Windows. Example:

C:\>rspec
...
←[36m     # ./lib/github_teams/authentication.rb:82:in `github_api'←[0m
←[36m     # ./lib/github_teams/authentication.rb:87:in `github'←[0m
←[36m     # ./lib/github_teams/team.rb:10:in `initialize'←[0m
←[36m     # ./spec/lib/github_teams/team_spec.rb:5:in `new'←[0m
←[36m     # ./spec/lib/github_teams/team_spec.rb:5:in `block (2 levels) in
<modu
le:GithubTeams>'←[0m
←[36m     # ./spec/lib/github_teams/team_spec.rb:15:in `block (3 levels) in
<mod
ule:GithubTeams>'←[0m

  17) GithubTeams::Team#initialize sets the organization to the default
from the
 oauth file if not specified
     ←[31mFailure/Error:←[0m ←[31mt = Team.new("test")←[0m
     ←[31mTypeError←[0m:
       ←[31mbind argument must be an instance of
GithubTeams::GithubEmployeeSync
←[0m
←[36m     # ./lib/github_teams/authentication.rb:82:in `new'←[0m
←[36m     # ./lib/github_teams/authentication.rb:82:in `github_api'←[0m
←[36m     # ./lib/github_teams/authentication.rb:87:in `github'←[0m
←[36m     # ./lib/github_teams/team.rb:10:in `initialize'←[0m
←[36m     # ./spec/lib/github_teams/team_spec.rb:10:in `new'←[0m
←[36m     # ./spec/lib/github_teams/team_spec.rb:10:in `block (3 levels) in
<mod
ule:GithubTeams>'←[0m

Finished in 0.01562 seconds

The terminal characters appear to be written for Linux tty's. This wacky
behavior is the same in Git Bash.

Coloration *is* available in Windows; can we make the coloration more
cross-platform compatible?

Or could we at least turn off coloration in Windows environments?

-- 
Cheers,

Andrew Pennebaker
www.yellosoft.us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20130308/513adff8/attachment.html>


More information about the rspec-users mailing list